Class FirewallEndpointAssociation.Builder (0.94.0)

public static final class FirewallEndpointAssociation.Builder extends GeneratedMessage.Builder<FirewallEndpointAssociation.Builder> implements FirewallEndpointAssociationOrBuilder

Message describing Association object

Protobuf type google.cloud.networksecurity.v1.FirewallEndpointAssociation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FirewallEndpointAssociation build()
Returns
Type Description
FirewallEndpointAssociation

buildPartial()

public FirewallEndpointAssociation buildPartial()
Returns
Type Description
FirewallEndpointAssociation

clear()

public FirewallEndpointAssociation.Builder clear()
Returns
Type Description
FirewallEndpointAssociation.Builder
Overrides

clearCreateTime()

public FirewallEndpointAssociation.Builder clearCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallEndpointAssociation.Builder

clearDisabled()

public FirewallEndpointAssociation.Builder clearDisabled()

Optional. Whether the association is disabled. True indicates that traffic won't be intercepted

bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearFirewallEndpoint()

public FirewallEndpointAssociation.Builder clearFirewallEndpoint()

Required. The URL of the FirewallEndpoint that is being associated.

string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearLabels()

public FirewallEndpointAssociation.Builder clearLabels()
Returns
Type Description
FirewallEndpointAssociation.Builder

clearName()

public FirewallEndpointAssociation.Builder clearName()

Immutable. Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearNetwork()

public FirewallEndpointAssociation.Builder clearNetwork()

Required. The URL of the network that is being associated.

string network = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearReconciling()

public FirewallEndpointAssociation.Builder clearReconciling()

Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.

bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearState()

public FirewallEndpointAssociation.Builder clearState()

Output only. Current state of the association.

.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearTlsInspectionPolicy()

public FirewallEndpointAssociation.Builder clearTlsInspectionPolicy()

Optional. The URL of the TlsInspectionPolicy that is being associated.

string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

clearUpdateTime()

public FirewallEndpointAssociation.Builder clearUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallEndpointAssociation.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public FirewallEndpointAssociation getDefaultInstanceForType()
Returns
Type Description
FirewallEndpointAssociation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisabled()

public boolean getDisabled()

Optional. Whether the association is disabled. True indicates that traffic won't be intercepted

bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disabled.

getFirewallEndpoint()

public String getFirewallEndpoint()

Required. The URL of the FirewallEndpoint that is being associated.

string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The firewallEndpoint.

getFirewallEndpointBytes()

public ByteString getFirewallEndpointBytes()

Required. The URL of the FirewallEndpoint that is being associated.

string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for firewallEndpoint.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Immutable. Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Required. The URL of the network that is being associated.

string network = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The URL of the network that is being associated.

string network = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for network.

getReconciling()

public boolean getReconciling()

Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.

bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The reconciling.

getState()

public FirewallEndpointAssociation.State getState()

Output only. Current state of the association.

.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallEndpointAssociation.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the association.

.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTlsInspectionPolicy()

public String getTlsInspectionPolicy()

Optional. The URL of the TlsInspectionPolicy that is being associated.

string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The tlsInspectionPolicy.

getTlsInspectionPolicyBytes()

public ByteString getTlsInspectionPolicyBytes()

Optional. The URL of the TlsInspectionPolicy that is being associated.

string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for tlsInspectionPolicy.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public FirewallEndpointAssociation.Builder mergeCreateTime(Timestamp value)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FirewallEndpointAssociation.Builder

mergeFrom(FirewallEndpointAssociation other)

public FirewallEndpointAssociation.Builder mergeFrom(FirewallEndpointAssociation other)
Parameter
Name Description
other FirewallEndpointAssociation
Returns
Type Description
FirewallEndpointAssociation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FirewallEndpointAssociation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallEndpointAssociation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FirewallEndpointAssociation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FirewallEndpointAssociation.Builder
Overrides

mergeUpdateTime(Timestamp value)

public FirewallEndpointAssociation.Builder mergeUpdateTime(Timestamp value)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FirewallEndpointAssociation.Builder

putAllLabels(Map<String,String> values)

public FirewallEndpointAssociation.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
FirewallEndpointAssociation.Builder

putLabels(String key, String value)

public FirewallEndpointAssociation.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
FirewallEndpointAssociation.Builder

removeLabels(String key)

public FirewallEndpointAssociation.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
FirewallEndpointAssociation.Builder

setCreateTime(Timestamp value)

public FirewallEndpointAssociation.Builder setCreateTime(Timestamp value)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FirewallEndpointAssociation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public FirewallEndpointAssociation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FirewallEndpointAssociation.Builder

setDisabled(boolean value)

public FirewallEndpointAssociation.Builder setDisabled(boolean value)

Optional. Whether the association is disabled. True indicates that traffic won't be intercepted

bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disabled to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setFirewallEndpoint(String value)

public FirewallEndpointAssociation.Builder setFirewallEndpoint(String value)

Required. The URL of the FirewallEndpoint that is being associated.

string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The firewallEndpoint to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setFirewallEndpointBytes(ByteString value)

public FirewallEndpointAssociation.Builder setFirewallEndpointBytes(ByteString value)

Required. The URL of the FirewallEndpoint that is being associated.

string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for firewallEndpoint to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setName(String value)

public FirewallEndpointAssociation.Builder setName(String value)

Immutable. Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FirewallEndpointAssociation.Builder setNameBytes(ByteString value)

Immutable. Identifier. name of resource

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setNetwork(String value)

public FirewallEndpointAssociation.Builder setNetwork(String value)

Required. The URL of the network that is being associated.

string network = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The network to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public FirewallEndpointAssociation.Builder setNetworkBytes(ByteString value)

Required. The URL of the network that is being associated.

string network = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setReconciling(boolean value)

public FirewallEndpointAssociation.Builder setReconciling(boolean value)

Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.

bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The reconciling to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setState(FirewallEndpointAssociation.State value)

public FirewallEndpointAssociation.Builder setState(FirewallEndpointAssociation.State value)

Output only. Current state of the association.

.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FirewallEndpointAssociation.State

The state to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setStateValue(int value)

public FirewallEndpointAssociation.Builder setStateValue(int value)

Output only. Current state of the association.

.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setTlsInspectionPolicy(String value)

public FirewallEndpointAssociation.Builder setTlsInspectionPolicy(String value)

Optional. The URL of the TlsInspectionPolicy that is being associated.

string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The tlsInspectionPolicy to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setTlsInspectionPolicyBytes(ByteString value)

public FirewallEndpointAssociation.Builder setTlsInspectionPolicyBytes(ByteString value)

Optional. The URL of the TlsInspectionPolicy that is being associated.

string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for tlsInspectionPolicy to set.

Returns
Type Description
FirewallEndpointAssociation.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public FirewallEndpointAssociation.Builder setUpdateTime(Timestamp value)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FirewallEndpointAssociation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public FirewallEndpointAssociation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FirewallEndpointAssociation.Builder