Class NetworkAttachmentConnectedEndpoint.Builder (1.44.0)

public static final class NetworkAttachmentConnectedEndpoint.Builder extends GeneratedMessageV3.Builder<NetworkAttachmentConnectedEndpoint.Builder> implements NetworkAttachmentConnectedEndpointOrBuilder

[Output Only] A connection connected to this network attachment.

Protobuf type google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSecondaryIpCidrRanges(Iterable<String> values)

public NetworkAttachmentConnectedEndpoint.Builder addAllSecondaryIpCidrRanges(Iterable<String> values)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
NameDescription
valuesIterable<String>

The secondaryIpCidrRanges to add.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkAttachmentConnectedEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

addSecondaryIpCidrRanges(String value)

public NetworkAttachmentConnectedEndpoint.Builder addSecondaryIpCidrRanges(String value)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
NameDescription
valueString

The secondaryIpCidrRanges to add.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

addSecondaryIpCidrRangesBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder addSecondaryIpCidrRangesBytes(ByteString value)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
NameDescription
valueByteString

The bytes of the secondaryIpCidrRanges to add.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

build()

public NetworkAttachmentConnectedEndpoint build()
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint

buildPartial()

public NetworkAttachmentConnectedEndpoint buildPartial()
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint

clear()

public NetworkAttachmentConnectedEndpoint.Builder clear()
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NetworkAttachmentConnectedEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

clearIpAddress()

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

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
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkAttachmentConnectedEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

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
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearSecondaryIpCidrRanges()

public NetworkAttachmentConnectedEndpoint.Builder clearSecondaryIpCidrRanges()

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearStatus()

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

This builder for chaining.

clearSubnetwork()

public NetworkAttachmentConnectedEndpoint.Builder clearSubnetwork()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearSubnetworkCidrRange()

public NetworkAttachmentConnectedEndpoint.Builder clearSubnetworkCidrRange()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clone()

public NetworkAttachmentConnectedEndpoint.Builder clone()
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

getDefaultInstanceForType()

public NetworkAttachmentConnectedEndpoint getDefaultInstanceForType()
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

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;

Returns
TypeDescription
String

The ipv6Address.

getIpv6AddressBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for ipv6Address.

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;

Returns
TypeDescription
String

The projectIdOrNum.

getProjectIdOrNumBytes()

public ByteString getProjectIdOrNumBytes()

The project id or number of the interface to which the IP was assigned.

optional string project_id_or_num = 349783336;

Returns
TypeDescription
ByteString

The bytes for projectIdOrNum.

getSecondaryIpCidrRanges(int index)

public String getSecondaryIpCidrRanges(int index)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The secondaryIpCidrRanges at the given index.

getSecondaryIpCidrRangesBytes(int index)

public ByteString getSecondaryIpCidrRangesBytes(int index)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the secondaryIpCidrRanges at the given index.

getSecondaryIpCidrRangesCount()

public int getSecondaryIpCidrRangesCount()

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Returns
TypeDescription
int

The count of secondaryIpCidrRanges.

getSecondaryIpCidrRangesList()

public ProtocolStringList getSecondaryIpCidrRangesList()

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Returns
TypeDescription
ProtocolStringList

A list containing the secondaryIpCidrRanges.

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;

Returns
TypeDescription
String

The status.

getStatusBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for status.

getSubnetwork()

public String getSubnetwork()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
TypeDescription
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
TypeDescription
ByteString

The bytes for subnetwork.

getSubnetworkCidrRange()

public String getSubnetworkCidrRange()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
TypeDescription
String

The subnetworkCidrRange.

getSubnetworkCidrRangeBytes()

public ByteString getSubnetworkCidrRangeBytes()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
TypeDescription
ByteString

The bytes for subnetworkCidrRange.

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;

Returns
TypeDescription
boolean

Whether the ipAddress field is set.

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;

Returns
TypeDescription
boolean

Whether the ipv6Address field is set.

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;

Returns
TypeDescription
boolean

Whether the projectIdOrNum field is set.

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;

Returns
TypeDescription
boolean

Whether the status field is set.

hasSubnetwork()

public boolean hasSubnetwork()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
TypeDescription
boolean

Whether the subnetwork field is set.

hasSubnetworkCidrRange()

public boolean hasSubnetworkCidrRange()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
TypeDescription
boolean

Whether the subnetworkCidrRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkAttachmentConnectedEndpoint other)

public NetworkAttachmentConnectedEndpoint.Builder mergeFrom(NetworkAttachmentConnectedEndpoint other)
Parameter
NameDescription
otherNetworkAttachmentConnectedEndpoint
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkAttachmentConnectedEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkAttachmentConnectedEndpoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkAttachmentConnectedEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkAttachmentConnectedEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

setIpAddress(String value)

public NetworkAttachmentConnectedEndpoint.Builder setIpAddress(String 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;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder setIpAddressBytes(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;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setIpv6Address(String value)

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;

Parameter
NameDescription
valueString

The ipv6Address to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setIpv6AddressBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder setIpv6AddressBytes(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;

Parameter
NameDescription
valueByteString

The bytes for ipv6Address to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setProjectIdOrNum(String value)

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;

Parameter
NameDescription
valueString

The projectIdOrNum to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setProjectIdOrNumBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder setProjectIdOrNumBytes(ByteString value)

The project id or number of the interface to which the IP was assigned.

optional string project_id_or_num = 349783336;

Parameter
NameDescription
valueByteString

The bytes for projectIdOrNum to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkAttachmentConnectedEndpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides

setSecondaryIpCidrRanges(int index, String value)

public NetworkAttachmentConnectedEndpoint.Builder setSecondaryIpCidrRanges(int index, String value)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The secondaryIpCidrRanges to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setStatus(String value)

public NetworkAttachmentConnectedEndpoint.Builder setStatus(String 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;

Parameter
NameDescription
valueString

The status to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder setStatusBytes(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;

Parameter
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setSubnetwork(String value)

public NetworkAttachmentConnectedEndpoint.Builder setSubnetwork(String value)

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Parameter
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkBytes(ByteString value)

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Parameter
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setSubnetworkCidrRange(String value)

public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkCidrRange(String value)

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Parameter
NameDescription
valueString

The subnetworkCidrRange to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setSubnetworkCidrRangeBytes(ByteString value)

public NetworkAttachmentConnectedEndpoint.Builder setSubnetworkCidrRangeBytes(ByteString value)

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Parameter
NameDescription
valueByteString

The bytes for subnetworkCidrRange to set.

Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkAttachmentConnectedEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkAttachmentConnectedEndpoint.Builder
Overrides