Class NetworkAttachment.Builder

  • All Implemented Interfaces:
    NetworkAttachmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    NetworkAttachment

    public static final class NetworkAttachment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
    implements NetworkAttachmentOrBuilder
     NetworkAttachments A network attachment resource ...
     
    Protobuf type google.cloud.compute.v1.NetworkAttachment
    • 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<NetworkAttachment.Builder>
      • clear

        public NetworkAttachment.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.GeneratedMessageV3.Builder<NetworkAttachment.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<NetworkAttachment.Builder>
      • getDefaultInstanceForType

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

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

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

        public NetworkAttachment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • setField

        public NetworkAttachment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • clearField

        public NetworkAttachment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • clearOneof

        public NetworkAttachment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • setRepeatedField

        public NetworkAttachment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • addRepeatedField

        public NetworkAttachment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • mergeFrom

        public NetworkAttachment.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<NetworkAttachment.Builder>
      • isInitialized

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

        public NetworkAttachment.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<NetworkAttachment.Builder>
        Throws:
        IOException
      • getConnectionEndpointsCount

        public int getConnectionEndpointsCount()
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
        Specified by:
        getConnectionEndpointsCount in interface NetworkAttachmentOrBuilder
      • setConnectionEndpoints

        public NetworkAttachment.Builder setConnectionEndpoints​(int index,
                                                                NetworkAttachmentConnectedEndpoint value)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • setConnectionEndpoints

        public NetworkAttachment.Builder setConnectionEndpoints​(int index,
                                                                NetworkAttachmentConnectedEndpoint.Builder builderForValue)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addConnectionEndpoints

        public NetworkAttachment.Builder addConnectionEndpoints​(NetworkAttachmentConnectedEndpoint value)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addConnectionEndpoints

        public NetworkAttachment.Builder addConnectionEndpoints​(int index,
                                                                NetworkAttachmentConnectedEndpoint value)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addConnectionEndpoints

        public NetworkAttachment.Builder addConnectionEndpoints​(NetworkAttachmentConnectedEndpoint.Builder builderForValue)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addConnectionEndpoints

        public NetworkAttachment.Builder addConnectionEndpoints​(int index,
                                                                NetworkAttachmentConnectedEndpoint.Builder builderForValue)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addAllConnectionEndpoints

        public NetworkAttachment.Builder addAllConnectionEndpoints​(Iterable<? extends NetworkAttachmentConnectedEndpoint> values)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • clearConnectionEndpoints

        public NetworkAttachment.Builder clearConnectionEndpoints()
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • removeConnectionEndpoints

        public NetworkAttachment.Builder removeConnectionEndpoints​(int index)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • getConnectionEndpointsBuilder

        public NetworkAttachmentConnectedEndpoint.Builder getConnectionEndpointsBuilder​(int index)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addConnectionEndpointsBuilder

        public NetworkAttachmentConnectedEndpoint.Builder addConnectionEndpointsBuilder()
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • addConnectionEndpointsBuilder

        public NetworkAttachmentConnectedEndpoint.Builder addConnectionEndpointsBuilder​(int index)
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • getConnectionEndpointsBuilderList

        public List<NetworkAttachmentConnectedEndpoint.Builder> getConnectionEndpointsBuilderList()
         [Output Only] An array of connections for all the producers connected to this network attachment.
         
        repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
      • hasConnectionPreference

        public boolean hasConnectionPreference()
        
         Check the ConnectionPreference enum for the list of possible values.
         
        optional string connection_preference = 285818076;
        Specified by:
        hasConnectionPreference in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the connectionPreference field is set.
      • getConnectionPreference

        public String getConnectionPreference()
        
         Check the ConnectionPreference enum for the list of possible values.
         
        optional string connection_preference = 285818076;
        Specified by:
        getConnectionPreference in interface NetworkAttachmentOrBuilder
        Returns:
        The connectionPreference.
      • getConnectionPreferenceBytes

        public com.google.protobuf.ByteString getConnectionPreferenceBytes()
        
         Check the ConnectionPreference enum for the list of possible values.
         
        optional string connection_preference = 285818076;
        Specified by:
        getConnectionPreferenceBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for connectionPreference.
      • setConnectionPreference

        public NetworkAttachment.Builder setConnectionPreference​(String value)
        
         Check the ConnectionPreference enum for the list of possible values.
         
        optional string connection_preference = 285818076;
        Parameters:
        value - The connectionPreference to set.
        Returns:
        This builder for chaining.
      • clearConnectionPreference

        public NetworkAttachment.Builder clearConnectionPreference()
        
         Check the ConnectionPreference enum for the list of possible values.
         
        optional string connection_preference = 285818076;
        Returns:
        This builder for chaining.
      • setConnectionPreferenceBytes

        public NetworkAttachment.Builder setConnectionPreferenceBytes​(com.google.protobuf.ByteString value)
        
         Check the ConnectionPreference enum for the list of possible values.
         
        optional string connection_preference = 285818076;
        Parameters:
        value - The bytes for connectionPreference to set.
        Returns:
        This builder for chaining.
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public String getCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface NetworkAttachmentOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

        public com.google.protobuf.ByteString getCreationTimestampBytes()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • setCreationTimestamp

        public NetworkAttachment.Builder setCreationTimestamp​(String value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The creationTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreationTimestamp

        public NetworkAttachment.Builder clearCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Returns:
        This builder for chaining.
      • setCreationTimestampBytes

        public NetworkAttachment.Builder setCreationTimestampBytes​(com.google.protobuf.ByteString value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The bytes for creationTimestamp to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        hasDescription in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface NetworkAttachmentOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescriptionBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public NetworkAttachment.Builder setDescription​(String value)
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public NetworkAttachment.Builder clearDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public NetworkAttachment.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasFingerprint

        public boolean hasFingerprint()
         Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
         
        optional string fingerprint = 234678500;
        Specified by:
        hasFingerprint in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • getFingerprint

        public String getFingerprint()
         Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
         
        optional string fingerprint = 234678500;
        Specified by:
        getFingerprint in interface NetworkAttachmentOrBuilder
        Returns:
        The fingerprint.
      • getFingerprintBytes

        public com.google.protobuf.ByteString getFingerprintBytes()
         Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
         
        optional string fingerprint = 234678500;
        Specified by:
        getFingerprintBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for fingerprint.
      • setFingerprint

        public NetworkAttachment.Builder setFingerprint​(String value)
         Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
         
        optional string fingerprint = 234678500;
        Parameters:
        value - The fingerprint to set.
        Returns:
        This builder for chaining.
      • clearFingerprint

        public NetworkAttachment.Builder clearFingerprint()
         Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
         
        optional string fingerprint = 234678500;
        Returns:
        This builder for chaining.
      • setFingerprintBytes

        public NetworkAttachment.Builder setFingerprintBytes​(com.google.protobuf.ByteString value)
         Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
         
        optional string fingerprint = 234678500;
        Parameters:
        value - The bytes for fingerprint to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         [Output Only] The unique identifier for the resource type. The server generates this identifier.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] The unique identifier for the resource type. The server generates this identifier.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface NetworkAttachmentOrBuilder
        Returns:
        The id.
      • setId

        public NetworkAttachment.Builder setId​(long value)
         [Output Only] The unique identifier for the resource type. The server generates this identifier.
         
        optional uint64 id = 3355;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public NetworkAttachment.Builder clearId()
         [Output Only] The unique identifier for the resource type. The server generates this identifier.
         
        optional uint64 id = 3355;
        Returns:
        This builder for chaining.
      • hasKind

        public boolean hasKind()
         [Output Only] Type of the resource.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the kind field is set.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] Type of the resource.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public NetworkAttachment.Builder setKind​(String value)
         [Output Only] Type of the resource.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public NetworkAttachment.Builder clearKind()
         [Output Only] Type of the resource.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public NetworkAttachment.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output Only] Type of the resource.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Specified by:
        getName in interface NetworkAttachmentOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for name.
      • setName

        public NetworkAttachment.Builder setName​(String value)
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public NetworkAttachment.Builder clearName()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Returns:
        This builder for chaining.
      • setNameBytes

        public NetworkAttachment.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
         
        optional string name = 3373707;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNetwork

        public boolean hasNetwork()
         [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
         
        optional string network = 232872494;
        Specified by:
        hasNetwork in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the network field is set.
      • getNetwork

        public String getNetwork()
         [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
         
        optional string network = 232872494;
        Specified by:
        getNetwork in interface NetworkAttachmentOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
         
        optional string network = 232872494;
        Specified by:
        getNetworkBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public NetworkAttachment.Builder setNetwork​(String value)
         [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
         
        optional string network = 232872494;
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public NetworkAttachment.Builder clearNetwork()
         [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
         
        optional string network = 232872494;
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public NetworkAttachment.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
         
        optional string network = 232872494;
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getProducerAcceptListsList

        public com.google.protobuf.ProtocolStringList getProducerAcceptListsList()
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Specified by:
        getProducerAcceptListsList in interface NetworkAttachmentOrBuilder
        Returns:
        A list containing the producerAcceptLists.
      • getProducerAcceptListsCount

        public int getProducerAcceptListsCount()
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Specified by:
        getProducerAcceptListsCount in interface NetworkAttachmentOrBuilder
        Returns:
        The count of producerAcceptLists.
      • getProducerAcceptLists

        public String getProducerAcceptLists​(int index)
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Specified by:
        getProducerAcceptLists in interface NetworkAttachmentOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The producerAcceptLists at the given index.
      • getProducerAcceptListsBytes

        public com.google.protobuf.ByteString getProducerAcceptListsBytes​(int index)
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Specified by:
        getProducerAcceptListsBytes in interface NetworkAttachmentOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the producerAcceptLists at the given index.
      • setProducerAcceptLists

        public NetworkAttachment.Builder setProducerAcceptLists​(int index,
                                                                String value)
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Parameters:
        index - The index to set the value at.
        value - The producerAcceptLists to set.
        Returns:
        This builder for chaining.
      • addProducerAcceptLists

        public NetworkAttachment.Builder addProducerAcceptLists​(String value)
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Parameters:
        value - The producerAcceptLists to add.
        Returns:
        This builder for chaining.
      • addAllProducerAcceptLists

        public NetworkAttachment.Builder addAllProducerAcceptLists​(Iterable<String> values)
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Parameters:
        values - The producerAcceptLists to add.
        Returns:
        This builder for chaining.
      • clearProducerAcceptLists

        public NetworkAttachment.Builder clearProducerAcceptLists()
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Returns:
        This builder for chaining.
      • addProducerAcceptListsBytes

        public NetworkAttachment.Builder addProducerAcceptListsBytes​(com.google.protobuf.ByteString value)
         Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_accept_lists = 202804523;
        Parameters:
        value - The bytes of the producerAcceptLists to add.
        Returns:
        This builder for chaining.
      • getProducerRejectListsList

        public com.google.protobuf.ProtocolStringList getProducerRejectListsList()
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Specified by:
        getProducerRejectListsList in interface NetworkAttachmentOrBuilder
        Returns:
        A list containing the producerRejectLists.
      • getProducerRejectListsCount

        public int getProducerRejectListsCount()
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Specified by:
        getProducerRejectListsCount in interface NetworkAttachmentOrBuilder
        Returns:
        The count of producerRejectLists.
      • getProducerRejectLists

        public String getProducerRejectLists​(int index)
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Specified by:
        getProducerRejectLists in interface NetworkAttachmentOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The producerRejectLists at the given index.
      • getProducerRejectListsBytes

        public com.google.protobuf.ByteString getProducerRejectListsBytes​(int index)
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Specified by:
        getProducerRejectListsBytes in interface NetworkAttachmentOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the producerRejectLists at the given index.
      • setProducerRejectLists

        public NetworkAttachment.Builder setProducerRejectLists​(int index,
                                                                String value)
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Parameters:
        index - The index to set the value at.
        value - The producerRejectLists to set.
        Returns:
        This builder for chaining.
      • addProducerRejectLists

        public NetworkAttachment.Builder addProducerRejectLists​(String value)
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Parameters:
        value - The producerRejectLists to add.
        Returns:
        This builder for chaining.
      • addAllProducerRejectLists

        public NetworkAttachment.Builder addAllProducerRejectLists​(Iterable<String> values)
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Parameters:
        values - The producerRejectLists to add.
        Returns:
        This builder for chaining.
      • clearProducerRejectLists

        public NetworkAttachment.Builder clearProducerRejectLists()
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Returns:
        This builder for chaining.
      • addProducerRejectListsBytes

        public NetworkAttachment.Builder addProducerRejectListsBytes​(com.google.protobuf.ByteString value)
         Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
         
        repeated string producer_reject_lists = 4112002;
        Parameters:
        value - The bytes of the producerRejectLists to add.
        Returns:
        This builder for chaining.
      • hasRegion

        public boolean hasRegion()
         [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
         
        optional string region = 138946292;
        Specified by:
        hasRegion in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the region field is set.
      • getRegion

        public String getRegion()
         [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
         
        optional string region = 138946292;
        Specified by:
        getRegion in interface NetworkAttachmentOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.ByteString getRegionBytes()
         [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
         
        optional string region = 138946292;
        Specified by:
        getRegionBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public NetworkAttachment.Builder setRegion​(String value)
         [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
         
        optional string region = 138946292;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public NetworkAttachment.Builder clearRegion()
         [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
         
        optional string region = 138946292;
        Returns:
        This builder for chaining.
      • setRegionBytes

        public NetworkAttachment.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
         
        optional string region = 138946292;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLink

        public String getSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface NetworkAttachmentOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for selfLink.
      • setSelfLink

        public NetworkAttachment.Builder setSelfLink​(String value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The selfLink to set.
        Returns:
        This builder for chaining.
      • clearSelfLink

        public NetworkAttachment.Builder clearSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        public NetworkAttachment.Builder setSelfLinkBytes​(com.google.protobuf.ByteString value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • hasSelfLinkWithId

        public boolean hasSelfLinkWithId()
         [Output Only] Server-defined URL for this resource's resource id.
         
        optional string self_link_with_id = 44520962;
        Specified by:
        hasSelfLinkWithId in interface NetworkAttachmentOrBuilder
        Returns:
        Whether the selfLinkWithId field is set.
      • getSelfLinkWithId

        public String getSelfLinkWithId()
         [Output Only] Server-defined URL for this resource's resource id.
         
        optional string self_link_with_id = 44520962;
        Specified by:
        getSelfLinkWithId in interface NetworkAttachmentOrBuilder
        Returns:
        The selfLinkWithId.
      • getSelfLinkWithIdBytes

        public com.google.protobuf.ByteString getSelfLinkWithIdBytes()
         [Output Only] Server-defined URL for this resource's resource id.
         
        optional string self_link_with_id = 44520962;
        Specified by:
        getSelfLinkWithIdBytes in interface NetworkAttachmentOrBuilder
        Returns:
        The bytes for selfLinkWithId.
      • setSelfLinkWithId

        public NetworkAttachment.Builder setSelfLinkWithId​(String value)
         [Output Only] Server-defined URL for this resource's resource id.
         
        optional string self_link_with_id = 44520962;
        Parameters:
        value - The selfLinkWithId to set.
        Returns:
        This builder for chaining.
      • clearSelfLinkWithId

        public NetworkAttachment.Builder clearSelfLinkWithId()
         [Output Only] Server-defined URL for this resource's resource id.
         
        optional string self_link_with_id = 44520962;
        Returns:
        This builder for chaining.
      • setSelfLinkWithIdBytes

        public NetworkAttachment.Builder setSelfLinkWithIdBytes​(com.google.protobuf.ByteString value)
         [Output Only] Server-defined URL for this resource's resource id.
         
        optional string self_link_with_id = 44520962;
        Parameters:
        value - The bytes for selfLinkWithId to set.
        Returns:
        This builder for chaining.
      • getSubnetworksList

        public com.google.protobuf.ProtocolStringList getSubnetworksList()
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Specified by:
        getSubnetworksList in interface NetworkAttachmentOrBuilder
        Returns:
        A list containing the subnetworks.
      • getSubnetworksCount

        public int getSubnetworksCount()
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Specified by:
        getSubnetworksCount in interface NetworkAttachmentOrBuilder
        Returns:
        The count of subnetworks.
      • getSubnetworks

        public String getSubnetworks​(int index)
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Specified by:
        getSubnetworks in interface NetworkAttachmentOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The subnetworks at the given index.
      • getSubnetworksBytes

        public com.google.protobuf.ByteString getSubnetworksBytes​(int index)
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Specified by:
        getSubnetworksBytes in interface NetworkAttachmentOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the subnetworks at the given index.
      • setSubnetworks

        public NetworkAttachment.Builder setSubnetworks​(int index,
                                                        String value)
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Parameters:
        index - The index to set the value at.
        value - The subnetworks to set.
        Returns:
        This builder for chaining.
      • addSubnetworks

        public NetworkAttachment.Builder addSubnetworks​(String value)
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Parameters:
        value - The subnetworks to add.
        Returns:
        This builder for chaining.
      • addAllSubnetworks

        public NetworkAttachment.Builder addAllSubnetworks​(Iterable<String> values)
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Parameters:
        values - The subnetworks to add.
        Returns:
        This builder for chaining.
      • clearSubnetworks

        public NetworkAttachment.Builder clearSubnetworks()
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Returns:
        This builder for chaining.
      • addSubnetworksBytes

        public NetworkAttachment.Builder addSubnetworksBytes​(com.google.protobuf.ByteString value)
         An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
         
        repeated string subnetworks = 415853125;
        Parameters:
        value - The bytes of the subnetworks to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NetworkAttachment.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>
      • mergeUnknownFields

        public final NetworkAttachment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkAttachment.Builder>