Class NetworkAttachmentConnectedEndpoint.Builder

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

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

      public NetworkAttachmentConnectedEndpoint 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 NetworkAttachmentConnectedEndpoint buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public NetworkAttachmentConnectedEndpoint.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<NetworkAttachmentConnectedEndpoint.Builder>
      Throws:
      IOException
    • hasIpAddress

      public boolean hasIpAddress()
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Specified by:
      hasIpAddress in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public String getIpAddress()
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Specified by:
      getIpAddress in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Specified by:
      getIpAddressBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public NetworkAttachmentConnectedEndpoint.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • hasIpv6Address

      public boolean hasIpv6Address()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Specified by:
      hasIpv6Address in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the ipv6Address field is set.
    • getIpv6Address

      public String getIpv6Address()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6Address in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The ipv6Address.
    • getIpv6AddressBytes

      public com.google.protobuf.ByteString getIpv6AddressBytes()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6AddressBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for ipv6Address.
    • setIpv6Address

      public NetworkAttachmentConnectedEndpoint.Builder setIpv6Address(String value)
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Parameters:
      value - The ipv6Address to set.
      Returns:
      This builder for chaining.
    • clearIpv6Address

      public NetworkAttachmentConnectedEndpoint.Builder clearIpv6Address()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Returns:
      This builder for chaining.
    • setIpv6AddressBytes

      public NetworkAttachmentConnectedEndpoint.Builder setIpv6AddressBytes(com.google.protobuf.ByteString value)
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Parameters:
      value - The bytes for ipv6Address to set.
      Returns:
      This builder for chaining.
    • hasProjectIdOrNum

      public boolean hasProjectIdOrNum()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      hasProjectIdOrNum in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the projectIdOrNum field is set.
    • getProjectIdOrNum

      public String getProjectIdOrNum()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      getProjectIdOrNum in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The projectIdOrNum.
    • getProjectIdOrNumBytes

      public com.google.protobuf.ByteString getProjectIdOrNumBytes()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      getProjectIdOrNumBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for projectIdOrNum.
    • setProjectIdOrNum

      public NetworkAttachmentConnectedEndpoint.Builder setProjectIdOrNum(String value)
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Parameters:
      value - The projectIdOrNum to set.
      Returns:
      This builder for chaining.
    • clearProjectIdOrNum

      public NetworkAttachmentConnectedEndpoint.Builder clearProjectIdOrNum()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Returns:
      This builder for chaining.
    • setProjectIdOrNumBytes

      public NetworkAttachmentConnectedEndpoint.Builder setProjectIdOrNumBytes(com.google.protobuf.ByteString value)
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Parameters:
      value - The bytes for projectIdOrNum to set.
      Returns:
      This builder for chaining.
    • getSecondaryIpCidrRangesList

      public com.google.protobuf.ProtocolStringList getSecondaryIpCidrRangesList()
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRangesList in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      A list containing the secondaryIpCidrRanges.
    • getSecondaryIpCidrRangesCount

      public int getSecondaryIpCidrRangesCount()
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRangesCount in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The count of secondaryIpCidrRanges.
    • getSecondaryIpCidrRanges

      public String getSecondaryIpCidrRanges(int index)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRanges in interface NetworkAttachmentConnectedEndpointOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The secondaryIpCidrRanges at the given index.
    • getSecondaryIpCidrRangesBytes

      public com.google.protobuf.ByteString getSecondaryIpCidrRangesBytes(int index)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRangesBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the secondaryIpCidrRanges at the given index.
    • setSecondaryIpCidrRanges

      public NetworkAttachmentConnectedEndpoint.Builder setSecondaryIpCidrRanges(int index, String value)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Parameters:
      index - The index to set the value at.
      value - The secondaryIpCidrRanges to set.
      Returns:
      This builder for chaining.
    • addSecondaryIpCidrRanges

      public NetworkAttachmentConnectedEndpoint.Builder addSecondaryIpCidrRanges(String value)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Parameters:
      value - The secondaryIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • addAllSecondaryIpCidrRanges

      public NetworkAttachmentConnectedEndpoint.Builder addAllSecondaryIpCidrRanges(Iterable<String> values)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Parameters:
      values - The secondaryIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • clearSecondaryIpCidrRanges

      public NetworkAttachmentConnectedEndpoint.Builder clearSecondaryIpCidrRanges()
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Returns:
      This builder for chaining.
    • addSecondaryIpCidrRangesBytes

      public NetworkAttachmentConnectedEndpoint.Builder addSecondaryIpCidrRangesBytes(com.google.protobuf.ByteString value)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Parameters:
      value - The bytes of the secondaryIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • hasServiceClassId

      public boolean hasServiceClassId()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Specified by:
      hasServiceClassId in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the serviceClassId field is set.
    • getServiceClassId

      public String getServiceClassId()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Specified by:
      getServiceClassId in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The serviceClassId.
    • getServiceClassIdBytes

      public com.google.protobuf.ByteString getServiceClassIdBytes()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Specified by:
      getServiceClassIdBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for serviceClassId.
    • setServiceClassId

      public NetworkAttachmentConnectedEndpoint.Builder setServiceClassId(String value)
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Parameters:
      value - The serviceClassId to set.
      Returns:
      This builder for chaining.
    • clearServiceClassId

      public NetworkAttachmentConnectedEndpoint.Builder clearServiceClassId()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Returns:
      This builder for chaining.
    • setServiceClassIdBytes

      public NetworkAttachmentConnectedEndpoint.Builder setServiceClassIdBytes(com.google.protobuf.ByteString value)
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Parameters:
      value - The bytes for serviceClassId to set.
      Returns:
      This builder for chaining.
    • hasStatus

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

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

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

       The status of a connected endpoint to this network 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 network attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public NetworkAttachmentConnectedEndpoint.Builder setStatusBytes(com.google.protobuf.ByteString value)
       The status of a connected endpoint to this network 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.
    • hasSubnetwork

      public boolean hasSubnetwork()
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Specified by:
      hasSubnetwork in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the subnetwork field is set.
    • getSubnetwork

      public String getSubnetwork()
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Specified by:
      getSubnetwork in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Specified by:
      getSubnetworkBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      public NetworkAttachmentConnectedEndpoint.Builder setSubnetwork(String value)
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • clearSubnetwork

       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Returns:
      This builder for chaining.
    • setSubnetworkBytes

      public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • hasSubnetworkCidrRange

      public boolean hasSubnetworkCidrRange()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Specified by:
      hasSubnetworkCidrRange in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the subnetworkCidrRange field is set.
    • getSubnetworkCidrRange

      public String getSubnetworkCidrRange()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Specified by:
      getSubnetworkCidrRange in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The subnetworkCidrRange.
    • getSubnetworkCidrRangeBytes

      public com.google.protobuf.ByteString getSubnetworkCidrRangeBytes()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Specified by:
      getSubnetworkCidrRangeBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for subnetworkCidrRange.
    • setSubnetworkCidrRange

      public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkCidrRange(String value)
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Parameters:
      value - The subnetworkCidrRange to set.
      Returns:
      This builder for chaining.
    • clearSubnetworkCidrRange

      public NetworkAttachmentConnectedEndpoint.Builder clearSubnetworkCidrRange()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Returns:
      This builder for chaining.
    • setSubnetworkCidrRangeBytes

      public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkCidrRangeBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Parameters:
      value - The bytes for subnetworkCidrRange to set.
      Returns:
      This builder for chaining.