Class NetworkConfig.Consumer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Consumer.Builder>
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.Builder
All Implemented Interfaces:
NetworkConfig.ConsumerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NetworkConfig.Consumer

public static final class NetworkConfig.Consumer.Builder extends com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Consumer.Builder> implements NetworkConfig.ConsumerOrBuilder
 Contains information of the customer's network configurations.

 Next available ID: 5
 
Protobuf type google.cloud.metastore.v1beta.NetworkConfig.Consumer
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Consumer.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Consumer.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Consumer.Builder>
    • getDefaultInstanceForType

      public NetworkConfig.Consumer getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NetworkConfig.Consumer build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NetworkConfig.Consumer buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NetworkConfig.Consumer.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkConfig.Consumer.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Consumer.Builder>
    • mergeFrom

      public NetworkConfig.Consumer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkConfig.Consumer.Builder>
      Throws:
      IOException
    • getVpcResourceCase

      public NetworkConfig.Consumer.VpcResourceCase getVpcResourceCase()
      Specified by:
      getVpcResourceCase in interface NetworkConfig.ConsumerOrBuilder
    • clearVpcResource

      public NetworkConfig.Consumer.Builder clearVpcResource()
    • 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) = { ... }
      Specified by:
      hasSubnetwork in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      Whether the subnetwork field is set.
    • 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) = { ... }
      Specified by:
      getSubnetwork in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getSubnetworkBytes in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      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) = { ... }
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setSubnetworkBytes

      public NetworkConfig.Consumer.Builder setSubnetworkBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getEndpointUri in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      The endpointUri.
    • getEndpointUriBytes

      public com.google.protobuf.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];
      Specified by:
      getEndpointUriBytes in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      The bytes for endpointUri.
    • setEndpointUri

      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];
      Parameters:
      value - The endpointUri to set.
      Returns:
      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:
      This builder for chaining.
    • setEndpointUriBytes

      public NetworkConfig.Consumer.Builder setEndpointUriBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for endpointUri to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getEndpointLocation in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      The endpointLocation.
    • getEndpointLocationBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getEndpointLocationBytes in interface NetworkConfig.ConsumerOrBuilder
      Returns:
      The bytes for endpointLocation.
    • setEndpointLocation

      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) = { ... }
      Parameters:
      value - The endpointLocation to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setEndpointLocationBytes

      public NetworkConfig.Consumer.Builder setEndpointLocationBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for endpointLocation to set.
      Returns:
      This builder for chaining.