Class PolicyBasedRoute.InterconnectAttachment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.InterconnectAttachment.Builder>
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment.Builder
All Implemented Interfaces:
PolicyBasedRoute.InterconnectAttachmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyBasedRoute.InterconnectAttachment

public static final class PolicyBasedRoute.InterconnectAttachment.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.InterconnectAttachment.Builder> implements PolicyBasedRoute.InterconnectAttachmentOrBuilder
 InterconnectAttachment that this route applies to.
 
Protobuf type google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.InterconnectAttachment
  • 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<PolicyBasedRoute.InterconnectAttachment.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<PolicyBasedRoute.InterconnectAttachment.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<PolicyBasedRoute.InterconnectAttachment.Builder>
    • getDefaultInstanceForType

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

      public PolicyBasedRoute.InterconnectAttachment.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<PolicyBasedRoute.InterconnectAttachment.Builder>
      Throws:
      IOException
    • getRegion

      public String getRegion()
       Optional. Cloud region to install this policy-based route on interconnect
       attachment. Use `all` to install it on all interconnect attachments.
       
      string region = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegion in interface PolicyBasedRoute.InterconnectAttachmentOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Optional. Cloud region to install this policy-based route on interconnect
       attachment. Use `all` to install it on all interconnect attachments.
       
      string region = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegionBytes in interface PolicyBasedRoute.InterconnectAttachmentOrBuilder
      Returns:
      The bytes for region.
    • setRegion

       Optional. Cloud region to install this policy-based route on interconnect
       attachment. Use `all` to install it on all interconnect attachments.
       
      string region = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

       Optional. Cloud region to install this policy-based route on interconnect
       attachment. Use `all` to install it on all interconnect attachments.
       
      string region = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRegionBytes

      public PolicyBasedRoute.InterconnectAttachment.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Optional. Cloud region to install this policy-based route on interconnect
       attachment. Use `all` to install it on all interconnect attachments.
       
      string region = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.