Class ServiceAttachmentConnectedEndpoint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ServiceAttachmentConnectedEndpoint.Builder>
com.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint.Builder
All Implemented Interfaces:
ServiceAttachmentConnectedEndpointOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ServiceAttachmentConnectedEndpoint

public static final class ServiceAttachmentConnectedEndpoint.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServiceAttachmentConnectedEndpoint.Builder> implements ServiceAttachmentConnectedEndpointOrBuilder
 [Output Only] A connection connected to this service attachment.
 
Protobuf type google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint
  • 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<ServiceAttachmentConnectedEndpoint.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<ServiceAttachmentConnectedEndpoint.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<ServiceAttachmentConnectedEndpoint.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public ServiceAttachmentConnectedEndpoint.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<ServiceAttachmentConnectedEndpoint.Builder>
      Throws:
      IOException
    • hasConsumerNetwork

      public boolean hasConsumerNetwork()
       The url of the consumer network.
       
      optional string consumer_network = 254357221;
      Specified by:
      hasConsumerNetwork in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the consumerNetwork field is set.
    • getConsumerNetwork

      public String getConsumerNetwork()
       The url of the consumer network.
       
      optional string consumer_network = 254357221;
      Specified by:
      getConsumerNetwork in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The consumerNetwork.
    • getConsumerNetworkBytes

      public com.google.protobuf.ByteString getConsumerNetworkBytes()
       The url of the consumer network.
       
      optional string consumer_network = 254357221;
      Specified by:
      getConsumerNetworkBytes in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for consumerNetwork.
    • setConsumerNetwork

      public ServiceAttachmentConnectedEndpoint.Builder setConsumerNetwork(String value)
       The url of the consumer network.
       
      optional string consumer_network = 254357221;
      Parameters:
      value - The consumerNetwork to set.
      Returns:
      This builder for chaining.
    • clearConsumerNetwork

      public ServiceAttachmentConnectedEndpoint.Builder clearConsumerNetwork()
       The url of the consumer network.
       
      optional string consumer_network = 254357221;
      Returns:
      This builder for chaining.
    • setConsumerNetworkBytes

      public ServiceAttachmentConnectedEndpoint.Builder setConsumerNetworkBytes(com.google.protobuf.ByteString value)
       The url of the consumer network.
       
      optional string consumer_network = 254357221;
      Parameters:
      value - The bytes for consumerNetwork to set.
      Returns:
      This builder for chaining.
    • hasEndpoint

      public boolean hasEndpoint()
       The url of a connected endpoint.
       
      optional string endpoint = 130489749;
      Specified by:
      hasEndpoint in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the endpoint field is set.
    • getEndpoint

      public String getEndpoint()
       The url of a connected endpoint.
       
      optional string endpoint = 130489749;
      Specified by:
      getEndpoint in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       The url of a connected endpoint.
       
      optional string endpoint = 130489749;
      Specified by:
      getEndpointBytes in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

       The url of a connected endpoint.
       
      optional string endpoint = 130489749;
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

       The url of a connected endpoint.
       
      optional string endpoint = 130489749;
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public ServiceAttachmentConnectedEndpoint.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       The url of a connected endpoint.
       
      optional string endpoint = 130489749;
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • hasEndpointWithId

      public boolean hasEndpointWithId()
       The url of a connected endpoint with resource id.
       
      optional string endpoint_with_id = 444867210;
      Specified by:
      hasEndpointWithId in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the endpointWithId field is set.
    • getEndpointWithId

      public String getEndpointWithId()
       The url of a connected endpoint with resource id.
       
      optional string endpoint_with_id = 444867210;
      Specified by:
      getEndpointWithId in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The endpointWithId.
    • getEndpointWithIdBytes

      public com.google.protobuf.ByteString getEndpointWithIdBytes()
       The url of a connected endpoint with resource id.
       
      optional string endpoint_with_id = 444867210;
      Specified by:
      getEndpointWithIdBytes in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for endpointWithId.
    • setEndpointWithId

      public ServiceAttachmentConnectedEndpoint.Builder setEndpointWithId(String value)
       The url of a connected endpoint with resource id.
       
      optional string endpoint_with_id = 444867210;
      Parameters:
      value - The endpointWithId to set.
      Returns:
      This builder for chaining.
    • clearEndpointWithId

      public ServiceAttachmentConnectedEndpoint.Builder clearEndpointWithId()
       The url of a connected endpoint with resource id.
       
      optional string endpoint_with_id = 444867210;
      Returns:
      This builder for chaining.
    • setEndpointWithIdBytes

      public ServiceAttachmentConnectedEndpoint.Builder setEndpointWithIdBytes(com.google.protobuf.ByteString value)
       The url of a connected endpoint with resource id.
       
      optional string endpoint_with_id = 444867210;
      Parameters:
      value - The bytes for endpointWithId to set.
      Returns:
      This builder for chaining.
    • getNatIpsList

      public com.google.protobuf.ProtocolStringList getNatIpsList()
       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Specified by:
      getNatIpsList in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      A list containing the natIps.
    • getNatIpsCount

      public int getNatIpsCount()
       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Specified by:
      getNatIpsCount in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The count of natIps.
    • getNatIps

      public String getNatIps(int index)
       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Specified by:
      getNatIps in interface ServiceAttachmentConnectedEndpointOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The natIps at the given index.
    • getNatIpsBytes

      public com.google.protobuf.ByteString getNatIpsBytes(int index)
       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Specified by:
      getNatIpsBytes in interface ServiceAttachmentConnectedEndpointOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the natIps at the given index.
    • setNatIps

      public ServiceAttachmentConnectedEndpoint.Builder setNatIps(int index, String value)
       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Parameters:
      index - The index to set the value at.
      value - The natIps to set.
      Returns:
      This builder for chaining.
    • addNatIps

       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Parameters:
      value - The natIps to add.
      Returns:
      This builder for chaining.
    • addAllNatIps

       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Parameters:
      values - The natIps to add.
      Returns:
      This builder for chaining.
    • clearNatIps

       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Returns:
      This builder for chaining.
    • addNatIpsBytes

      public ServiceAttachmentConnectedEndpoint.Builder addNatIpsBytes(com.google.protobuf.ByteString value)
       NAT IPs of the connected PSC endpoint and those of other endpoints
       propagated from it.
       
      repeated string nat_ips = 117635086;
      Parameters:
      value - The bytes of the natIps to add.
      Returns:
      This builder for chaining.
    • hasPropagatedConnectionCount

      public boolean hasPropagatedConnectionCount()
       The number of consumer Network Connectivity Center spokes that the
       connected Private Service Connect endpoint has propagated to.
       
      optional uint32 propagated_connection_count = 324594130;
      Specified by:
      hasPropagatedConnectionCount in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the propagatedConnectionCount field is set.
    • getPropagatedConnectionCount

      public int getPropagatedConnectionCount()
       The number of consumer Network Connectivity Center spokes that the
       connected Private Service Connect endpoint has propagated to.
       
      optional uint32 propagated_connection_count = 324594130;
      Specified by:
      getPropagatedConnectionCount in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The propagatedConnectionCount.
    • setPropagatedConnectionCount

      public ServiceAttachmentConnectedEndpoint.Builder setPropagatedConnectionCount(int value)
       The number of consumer Network Connectivity Center spokes that the
       connected Private Service Connect endpoint has propagated to.
       
      optional uint32 propagated_connection_count = 324594130;
      Parameters:
      value - The propagatedConnectionCount to set.
      Returns:
      This builder for chaining.
    • clearPropagatedConnectionCount

      public ServiceAttachmentConnectedEndpoint.Builder clearPropagatedConnectionCount()
       The number of consumer Network Connectivity Center spokes that the
       connected Private Service Connect endpoint has propagated to.
       
      optional uint32 propagated_connection_count = 324594130;
      Returns:
      This builder for chaining.
    • hasPscConnectionId

      public boolean hasPscConnectionId()
       The PSC connection id of the connected endpoint.
       
      optional uint64 psc_connection_id = 292082397;
      Specified by:
      hasPscConnectionId in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the pscConnectionId field is set.
    • getPscConnectionId

      public long getPscConnectionId()
       The PSC connection id of the connected endpoint.
       
      optional uint64 psc_connection_id = 292082397;
      Specified by:
      getPscConnectionId in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The pscConnectionId.
    • setPscConnectionId

      public ServiceAttachmentConnectedEndpoint.Builder setPscConnectionId(long value)
       The PSC connection id of the connected endpoint.
       
      optional uint64 psc_connection_id = 292082397;
      Parameters:
      value - The pscConnectionId to set.
      Returns:
      This builder for chaining.
    • clearPscConnectionId

      public ServiceAttachmentConnectedEndpoint.Builder clearPscConnectionId()
       The PSC connection id of the connected endpoint.
       
      optional uint64 psc_connection_id = 292082397;
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       The status of a connected endpoint to this service attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       The status of a connected endpoint to this service attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       The status of a connected endpoint to this service attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface ServiceAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for status.
    • setStatus

       The status of a connected endpoint to this service attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

       The status of a connected endpoint to this service attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public ServiceAttachmentConnectedEndpoint.Builder setStatusBytes(com.google.protobuf.ByteString value)
       The status of a connected endpoint to this service attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.