Class ForwardingRuleServiceDirectoryRegistration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ForwardingRuleServiceDirectoryRegistration.Builder>
com.google.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration.Builder
All Implemented Interfaces:
ForwardingRuleServiceDirectoryRegistrationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ForwardingRuleServiceDirectoryRegistration

public static final class ForwardingRuleServiceDirectoryRegistration.Builder extends com.google.protobuf.GeneratedMessage.Builder<ForwardingRuleServiceDirectoryRegistration.Builder> implements ForwardingRuleServiceDirectoryRegistrationOrBuilder
 Describes the auto-registration of the forwarding rule to Service Directory.
 The region and project of the Service Directory resource generated from
 this registration will be the same as this forwarding rule.
 
Protobuf type google.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration
  • 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<ForwardingRuleServiceDirectoryRegistration.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<ForwardingRuleServiceDirectoryRegistration.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<ForwardingRuleServiceDirectoryRegistration.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ForwardingRuleServiceDirectoryRegistration.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<ForwardingRuleServiceDirectoryRegistration.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<ForwardingRuleServiceDirectoryRegistration.Builder>
    • mergeFrom

      public ForwardingRuleServiceDirectoryRegistration.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<ForwardingRuleServiceDirectoryRegistration.Builder>
      Throws:
      IOException
    • hasNamespace

      public boolean hasNamespace()
       Service Directory namespace to register the forwarding rule under.
       
      optional string namespace = 178476379;
      Specified by:
      hasNamespace in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      Whether the namespace field is set.
    • getNamespace

      public String getNamespace()
       Service Directory namespace to register the forwarding rule under.
       
      optional string namespace = 178476379;
      Specified by:
      getNamespace in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Service Directory namespace to register the forwarding rule under.
       
      optional string namespace = 178476379;
      Specified by:
      getNamespaceBytes in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

       Service Directory namespace to register the forwarding rule under.
       
      optional string namespace = 178476379;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

       Service Directory namespace to register the forwarding rule under.
       
      optional string namespace = 178476379;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public ForwardingRuleServiceDirectoryRegistration.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       Service Directory namespace to register the forwarding rule under.
       
      optional string namespace = 178476379;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • hasService

      public boolean hasService()
       Service Directory service to register the forwarding rule under.
       
      optional string service = 373540533;
      Specified by:
      hasService in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      Whether the service field is set.
    • getService

      public String getService()
       Service Directory service to register the forwarding rule under.
       
      optional string service = 373540533;
      Specified by:
      getService in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Service Directory service to register the forwarding rule under.
       
      optional string service = 373540533;
      Specified by:
      getServiceBytes in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      The bytes for service.
    • setService

       Service Directory service to register the forwarding rule under.
       
      optional string service = 373540533;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

       Service Directory service to register the forwarding rule under.
       
      optional string service = 373540533;
      Returns:
      This builder for chaining.
    • setServiceBytes

      public ForwardingRuleServiceDirectoryRegistration.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Service Directory service to register the forwarding rule under.
       
      optional string service = 373540533;
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • hasServiceDirectoryRegion

      public boolean hasServiceDirectoryRegion()
       [Optional] Service Directory region to register this global forwarding
       rule under. Default to "us-central1". Only used for PSC for Google APIs.
       All PSC for Google APIs forwarding rules on the same network should use
       the same Service Directory region.
       
      optional string service_directory_region = 74030416;
      Specified by:
      hasServiceDirectoryRegion in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      Whether the serviceDirectoryRegion field is set.
    • getServiceDirectoryRegion

      public String getServiceDirectoryRegion()
       [Optional] Service Directory region to register this global forwarding
       rule under. Default to "us-central1". Only used for PSC for Google APIs.
       All PSC for Google APIs forwarding rules on the same network should use
       the same Service Directory region.
       
      optional string service_directory_region = 74030416;
      Specified by:
      getServiceDirectoryRegion in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      The serviceDirectoryRegion.
    • getServiceDirectoryRegionBytes

      public com.google.protobuf.ByteString getServiceDirectoryRegionBytes()
       [Optional] Service Directory region to register this global forwarding
       rule under. Default to "us-central1". Only used for PSC for Google APIs.
       All PSC for Google APIs forwarding rules on the same network should use
       the same Service Directory region.
       
      optional string service_directory_region = 74030416;
      Specified by:
      getServiceDirectoryRegionBytes in interface ForwardingRuleServiceDirectoryRegistrationOrBuilder
      Returns:
      The bytes for serviceDirectoryRegion.
    • setServiceDirectoryRegion

      public ForwardingRuleServiceDirectoryRegistration.Builder setServiceDirectoryRegion(String value)
       [Optional] Service Directory region to register this global forwarding
       rule under. Default to "us-central1". Only used for PSC for Google APIs.
       All PSC for Google APIs forwarding rules on the same network should use
       the same Service Directory region.
       
      optional string service_directory_region = 74030416;
      Parameters:
      value - The serviceDirectoryRegion to set.
      Returns:
      This builder for chaining.
    • clearServiceDirectoryRegion

      public ForwardingRuleServiceDirectoryRegistration.Builder clearServiceDirectoryRegion()
       [Optional] Service Directory region to register this global forwarding
       rule under. Default to "us-central1". Only used for PSC for Google APIs.
       All PSC for Google APIs forwarding rules on the same network should use
       the same Service Directory region.
       
      optional string service_directory_region = 74030416;
      Returns:
      This builder for chaining.
    • setServiceDirectoryRegionBytes

      public ForwardingRuleServiceDirectoryRegistration.Builder setServiceDirectoryRegionBytes(com.google.protobuf.ByteString value)
       [Optional] Service Directory region to register this global forwarding
       rule under. Default to "us-central1". Only used for PSC for Google APIs.
       All PSC for Google APIs forwarding rules on the same network should use
       the same Service Directory region.
       
      optional string service_directory_region = 74030416;
      Parameters:
      value - The bytes for serviceDirectoryRegion to set.
      Returns:
      This builder for chaining.