Class LinkedInterconnectAttachments.Builder

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

public static final class LinkedInterconnectAttachments.Builder extends com.google.protobuf.GeneratedMessage.Builder<LinkedInterconnectAttachments.Builder> implements LinkedInterconnectAttachmentsOrBuilder
 A collection of VLAN attachment resources. These resources should
 be redundant attachments that all advertise the same prefixes to Google
 Cloud. Alternatively, in active/passive configurations, all attachments
 should be capable of advertising the same prefixes.
 
Protobuf type google.cloud.networkconnectivity.v1beta.LinkedInterconnectAttachments
  • 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<LinkedInterconnectAttachments.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<LinkedInterconnectAttachments.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<LinkedInterconnectAttachments.Builder>
    • getDefaultInstanceForType

      public LinkedInterconnectAttachments 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

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

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

      public LinkedInterconnectAttachments.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<LinkedInterconnectAttachments.Builder>
      Throws:
      IOException
    • getUrisList

      public com.google.protobuf.ProtocolStringList getUrisList()
       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getUrisList in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      A list containing the uris.
    • getUrisCount

      public int getUrisCount()
       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getUrisCount in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      The count of uris.
    • getUris

      public String getUris(int index)
       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getUris in interface LinkedInterconnectAttachmentsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The uris at the given index.
    • getUrisBytes

      public com.google.protobuf.ByteString getUrisBytes(int index)
       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getUrisBytes in interface LinkedInterconnectAttachmentsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the uris at the given index.
    • setUris

      public LinkedInterconnectAttachments.Builder setUris(int index, String value)
       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The uris to set.
      Returns:
      This builder for chaining.
    • addUris

       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The uris to add.
      Returns:
      This builder for chaining.
    • addAllUris

       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The uris to add.
      Returns:
      This builder for chaining.
    • clearUris

       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addUrisBytes

      public LinkedInterconnectAttachments.Builder addUrisBytes(com.google.protobuf.ByteString value)
       The URIs of linked interconnect attachment resources
       
      repeated string uris = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the uris to add.
      Returns:
      This builder for chaining.
    • getSiteToSiteDataTransfer

      public boolean getSiteToSiteDataTransfer()
       A value that controls whether site-to-site data transfer is enabled for
       these resources. Data transfer is available only in [supported
       locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
       
      bool site_to_site_data_transfer = 2;
      Specified by:
      getSiteToSiteDataTransfer in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      The siteToSiteDataTransfer.
    • setSiteToSiteDataTransfer

      public LinkedInterconnectAttachments.Builder setSiteToSiteDataTransfer(boolean value)
       A value that controls whether site-to-site data transfer is enabled for
       these resources. Data transfer is available only in [supported
       locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
       
      bool site_to_site_data_transfer = 2;
      Parameters:
      value - The siteToSiteDataTransfer to set.
      Returns:
      This builder for chaining.
    • clearSiteToSiteDataTransfer

      public LinkedInterconnectAttachments.Builder clearSiteToSiteDataTransfer()
       A value that controls whether site-to-site data transfer is enabled for
       these resources. Data transfer is available only in [supported
       locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
       
      bool site_to_site_data_transfer = 2;
      Returns:
      This builder for chaining.
    • getVpcNetwork

      public String getVpcNetwork()
       Output only. The VPC network where these VLAN attachments are located.
       
      string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getVpcNetwork in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      The vpcNetwork.
    • getVpcNetworkBytes

      public com.google.protobuf.ByteString getVpcNetworkBytes()
       Output only. The VPC network where these VLAN attachments are located.
       
      string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getVpcNetworkBytes in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      The bytes for vpcNetwork.
    • setVpcNetwork

      public LinkedInterconnectAttachments.Builder setVpcNetwork(String value)
       Output only. The VPC network where these VLAN attachments are located.
       
      string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The vpcNetwork to set.
      Returns:
      This builder for chaining.
    • clearVpcNetwork

      public LinkedInterconnectAttachments.Builder clearVpcNetwork()
       Output only. The VPC network where these VLAN attachments are located.
       
      string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setVpcNetworkBytes

      public LinkedInterconnectAttachments.Builder setVpcNetworkBytes(com.google.protobuf.ByteString value)
       Output only. The VPC network where these VLAN attachments are located.
       
      string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for vpcNetwork to set.
      Returns:
      This builder for chaining.
    • getIncludeImportRangesList

      public com.google.protobuf.ProtocolStringList getIncludeImportRangesList()
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeImportRangesList in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      A list containing the includeImportRanges.
    • getIncludeImportRangesCount

      public int getIncludeImportRangesCount()
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeImportRangesCount in interface LinkedInterconnectAttachmentsOrBuilder
      Returns:
      The count of includeImportRanges.
    • getIncludeImportRanges

      public String getIncludeImportRanges(int index)
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeImportRanges in interface LinkedInterconnectAttachmentsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includeImportRanges at the given index.
    • getIncludeImportRangesBytes

      public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index)
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeImportRangesBytes in interface LinkedInterconnectAttachmentsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includeImportRanges at the given index.
    • setIncludeImportRanges

      public LinkedInterconnectAttachments.Builder setIncludeImportRanges(int index, String value)
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The includeImportRanges to set.
      Returns:
      This builder for chaining.
    • addIncludeImportRanges

      public LinkedInterconnectAttachments.Builder addIncludeImportRanges(String value)
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The includeImportRanges to add.
      Returns:
      This builder for chaining.
    • addAllIncludeImportRanges

      public LinkedInterconnectAttachments.Builder addAllIncludeImportRanges(Iterable<String> values)
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The includeImportRanges to add.
      Returns:
      This builder for chaining.
    • clearIncludeImportRanges

      public LinkedInterconnectAttachments.Builder clearIncludeImportRanges()
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addIncludeImportRangesBytes

      public LinkedInterconnectAttachments.Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value)
       Optional. Hub routes fully encompassed by include import ranges are
       included during import from hub.
       
      repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the includeImportRanges to add.
      Returns:
      This builder for chaining.