Class NetworkAttachmentConnectedEndpoint.Builder (1.88.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
Type Description
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
Name Description
values Iterable<String>

The secondaryIpCidrRanges to add.

Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkAttachmentConnectedEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The secondaryIpCidrRanges to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the secondaryIpCidrRanges to add.

Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

build()

public NetworkAttachmentConnectedEndpoint build()
Returns
Type Description
NetworkAttachmentConnectedEndpoint

buildPartial()

public NetworkAttachmentConnectedEndpoint buildPartial()
Returns
Type Description
NetworkAttachmentConnectedEndpoint

clear()

public NetworkAttachmentConnectedEndpoint.Builder clear()
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NetworkAttachmentConnectedEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkAttachmentConnectedEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
NetworkAttachmentConnectedEndpoint.Builder

This builder for chaining.

clone()

public NetworkAttachmentConnectedEndpoint.Builder clone()
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder
Overrides

getDefaultInstanceForType()

public NetworkAttachmentConnectedEndpoint getDefaultInstanceForType()
Returns
Type Description
NetworkAttachmentConnectedEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of secondaryIpCidrRanges.

getSecondaryIpCidrRangesList()

public ProtocolStringList getSecondaryIpCidrRangesList()

Alias IP ranges from the same subnetwork.

repeated string secondary_ip