Class NetworkAttachment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkAttachment.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<NetworkAttachment.Builder> implements NetworkAttachmentOrBuilder
 NetworkAttachments
 A network attachment resource ...
 
Protobuf type google.cloud.compute.v1.NetworkAttachment
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public NetworkAttachment.Builder mergeFrom(NetworkAttachment other)
    • isInitialized

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

      public List<NetworkAttachmentConnectedEndpoint> getConnectionEndpointsList()
       Output only. [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:
      getConnectionEndpointsList in interface NetworkAttachmentOrBuilder
    • getConnectionEndpointsCount

      public int getConnectionEndpointsCount()
       Output only. [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
    • getConnectionEndpoints

      public NetworkAttachmentConnectedEndpoint getConnectionEndpoints(int index)
       Output only. [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:
      getConnectionEndpoints in interface NetworkAttachmentOrBuilder
    • setConnectionEndpoints

      public NetworkAttachment.Builder setConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint value)
       Output only. [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. [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. [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. [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. [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. [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. [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. [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. [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. [Output Only] An array of connections for all the producers connected
       to this network attachment.
       
      repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
    • getConnectionEndpointsOrBuilder

      public NetworkAttachmentConnectedEndpointOrBuilder getConnectionEndpointsOrBuilder(int index)
       Output only. [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:
      getConnectionEndpointsOrBuilder in interface NetworkAttachmentOrBuilder
    • getConnectionEndpointsOrBuilderList

      public List<? extends NetworkAttachmentConnectedEndpointOrBuilder> getConnectionEndpointsOrBuilderList()
       Output only. [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:
      getConnectionEndpointsOrBuilderList in interface NetworkAttachmentOrBuilder
    • addConnectionEndpointsBuilder

      public NetworkAttachmentConnectedEndpoint.Builder addConnectionEndpointsBuilder()
       Output only. [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. [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. [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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public NetworkAttachment.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Creation timestamp inRFC3339
       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. [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. [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. [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. [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. [Output Only] Type of the resource.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface NetworkAttachmentOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface NetworkAttachmentOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [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. [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. [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. [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 withRFC1035.
       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 withRFC1035.
       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 withRFC1035.
       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 withRFC1035.
       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 withRFC1035.
       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 withRFC1035.
       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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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.