Class FirewallEndpoint.AssociationReference.Builder (0.94.0)

public static final class FirewallEndpoint.AssociationReference.Builder extends GeneratedMessage.Builder<FirewallEndpoint.AssociationReference.Builder> implements FirewallEndpoint.AssociationReferenceOrBuilder

This is a subset of the FirewallEndpointAssociation message, containing fields to be used by the consumer.

Protobuf type google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference

Static Methods

getDescriptor()

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

Methods

build()

public FirewallEndpoint.AssociationReference build()
Returns
Type Description
FirewallEndpoint.AssociationReference

buildPartial()

public FirewallEndpoint.AssociationReference buildPartial()
Returns
Type Description
FirewallEndpoint.AssociationReference

clear()

public FirewallEndpoint.AssociationReference.Builder clear()
Returns
Type Description
FirewallEndpoint.AssociationReference.Builder
Overrides

clearName()

public FirewallEndpoint.AssociationReference.Builder clearName()

Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
FirewallEndpoint.AssociationReference.Builder

This builder for chaining.

clearNetwork()

public FirewallEndpoint.AssociationReference.Builder clearNetwork()

Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.

string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
FirewallEndpoint.AssociationReference.Builder

This builder for chaining.

getDefaultInstanceForType()

public FirewallEndpoint.AssociationReference getDefaultInstanceForType()
Returns
Type Description
FirewallEndpoint.AssociationReference

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.

string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.

string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FirewallEndpoint.AssociationReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public FirewallEndpoint.AssociationReference.Builder setName(String value)

Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FirewallEndpoint.AssociationReference.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FirewallEndpoint.AssociationReference.Builder setNameBytes(ByteString value)

Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FirewallEndpoint.AssociationReference.Builder

This builder for chaining.

setNetwork(String value)

public FirewallEndpoint.AssociationReference.Builder setNetwork(String value)

Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.

string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
FirewallEndpoint.AssociationReference.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public FirewallEndpoint.AssociationReference.Builder setNetworkBytes(ByteString value)

Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.

string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
FirewallEndpoint.AssociationReference.Builder

This builder for chaining.