Class NetworkConfig.Consumer.Builder (2.52.0)

public static final class NetworkConfig.Consumer.Builder extends GeneratedMessageV3.Builder<NetworkConfig.Consumer.Builder> implements NetworkConfig.ConsumerOrBuilder

Contains information of the customer's network configurations.

Next available ID: 5

Protobuf type google.cloud.metastore.v1.NetworkConfig.Consumer

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Consumer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

build()

public NetworkConfig.Consumer build()
Returns
Type Description
NetworkConfig.Consumer

buildPartial()

public NetworkConfig.Consumer buildPartial()
Returns
Type Description
NetworkConfig.Consumer

clear()

public NetworkConfig.Consumer.Builder clear()
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

clearEndpointLocation()

public NetworkConfig.Consumer.Builder clearEndpointLocation()

Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.

string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

clearEndpointUri()

public NetworkConfig.Consumer.Builder clearEndpointUri()

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkConfig.Consumer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConfig.Consumer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

clearSubnetwork()

public NetworkConfig.Consumer.Builder clearSubnetwork()

Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:

projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}

string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

clearVpcResource()

public NetworkConfig.Consumer.Builder clearVpcResource()
Returns
Type Description
NetworkConfig.Consumer.Builder

clone()

public NetworkConfig.Consumer.Builder clone()
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

getDefaultInstanceForType()

public NetworkConfig.Consumer getDefaultInstanceForType()
Returns
Type Description
NetworkConfig.Consumer

getDescriptorForType()

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

getEndpointLocation()

public String getEndpointLocation()

Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.

string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The endpointLocation.

getEndpointLocationBytes()

public ByteString getEndpointLocationBytes()

Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.

string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for endpointLocation.

getEndpointUri()

public String getEndpointUri()

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The endpointUri.

getEndpointUriBytes()

public ByteString getEndpointUriBytes()

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for endpointUri.

getSubnetwork()

public String getSubnetwork()

Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:

projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}

string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:

projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}

string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for subnetwork.

getVpcResourceCase()

public NetworkConfig.Consumer.VpcResourceCase getVpcResourceCase()
Returns
Type Description
NetworkConfig.Consumer.VpcResourceCase

hasSubnetwork()

public boolean hasSubnetwork()

Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:

projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}

string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkConfig.Consumer other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Consumer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

setEndpointLocation(String value)

public NetworkConfig.Consumer.Builder setEndpointLocation(String value)

Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.

string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The endpointLocation to set.

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

setEndpointLocationBytes(ByteString value)

public NetworkConfig.Consumer.Builder setEndpointLocationBytes(ByteString value)

Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.

string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for endpointLocation to set.

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

setEndpointUri(String value)

public NetworkConfig.Consumer.Builder setEndpointUri(String value)

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The endpointUri to set.

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

setEndpointUriBytes(ByteString value)

public NetworkConfig.Consumer.Builder setEndpointUriBytes(ByteString value)

Output only. The URI of the endpoint used to access the metastore service.

string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for endpointUri to set.

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Consumer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkConfig.Consumer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides

setSubnetwork(String value)

public NetworkConfig.Consumer.Builder setSubnetwork(String value)

Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:

projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}

string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public NetworkConfig.Consumer.Builder setSubnetworkBytes(ByteString value)

Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:

projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}

string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
NetworkConfig.Consumer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Consumer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkConfig.Consumer.Builder
Overrides