Class 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.GeneratedMessageV3.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.v1.LinkedInterconnectAttachments
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public LinkedInterconnectAttachments.Builder addUris​(String value)
         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

        public LinkedInterconnectAttachments.Builder addAllUris​(Iterable<String> values)
         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

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