Class NetworkConfig.Consumer.Builder (2.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Consumer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkConfig.Consumer.Builder
Overrides

build()

public NetworkConfig.Consumer build()
Returns
TypeDescription
NetworkConfig.Consumer

buildPartial()

public NetworkConfig.Consumer buildPartial()
Returns
TypeDescription
NetworkConfig.Consumer

clear()

public NetworkConfig.Consumer.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkConfig.Consumer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkConfig.Consumer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkConfig.Consumer.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConfig.Consumer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NetworkConfig.Consumer.Builder

This builder for chaining.

clearVpcResource()

public NetworkConfig.Consumer.Builder clearVpcResource()
Returns
TypeDescription
NetworkConfig.Consumer.Builder

clone()

public NetworkConfig.Consumer.Builder clone()
Returns
TypeDescription
NetworkConfig.Consumer.Builder
Overrides

getDefaultInstanceForType()

public NetworkConfig.Consumer getDefaultInstanceForType()
Returns
TypeDescription
NetworkConfig.Consumer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for subnetwork.

getVpcResourceCase()

public NetworkConfig.Consumer.VpcResourceCase getVpcResourceCase()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkConfig.Consumer other)

public NetworkConfig.Consumer.Builder mergeFrom(NetworkConfig.Consumer other)
Parameter
NameDescription
otherNetworkConfig.Consumer
Returns
TypeDescription
NetworkConfig.Consumer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkConfig.Consumer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig.Consumer.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkConfig.Consumer.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkConfig.Consumer.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Consumer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The endpointLocation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for endpointLocation to set.

Returns
TypeDescription
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
NameDescription
valueString

The endpointUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for endpointUri to set.

Returns
TypeDescription
NetworkConfig.Consumer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Consumer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
NetworkConfig.Consumer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Consumer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkConfig.Consumer.Builder
Overrides