Class ServiceAttachmentConnectedEndpoint.Builder (1.93.0)

public static final class ServiceAttachmentConnectedEndpoint.Builder extends GeneratedMessage.Builder<ServiceAttachmentConnectedEndpoint.Builder> implements ServiceAttachmentConnectedEndpointOrBuilder

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

Protobuf type google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNatIps(Iterable<String> values)

public ServiceAttachmentConnectedEndpoint.Builder addAllNatIps(Iterable<String> values)

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Parameter
Name Description
values Iterable<String>

The natIps to add.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

addNatIps(String value)

public ServiceAttachmentConnectedEndpoint.Builder addNatIps(String value)

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Parameter
Name Description
value String

The natIps to add.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

addNatIpsBytes(ByteString value)

public ServiceAttachmentConnectedEndpoint.Builder addNatIpsBytes(ByteString value)

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Parameter
Name Description
value ByteString

The bytes of the natIps to add.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

build()

public ServiceAttachmentConnectedEndpoint build()
Returns
Type Description
ServiceAttachmentConnectedEndpoint

buildPartial()

public ServiceAttachmentConnectedEndpoint buildPartial()
Returns
Type Description
ServiceAttachmentConnectedEndpoint

clear()

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

clearConsumerNetwork()

public ServiceAttachmentConnectedEndpoint.Builder clearConsumerNetwork()

The url of the consumer network.

optional string consumer_network = 254357221;

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearEndpoint()

public ServiceAttachmentConnectedEndpoint.Builder clearEndpoint()

The url of a connected endpoint.

optional string endpoint = 130489749;

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearNatIps()

public ServiceAttachmentConnectedEndpoint.Builder clearNatIps()

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

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
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearPscConnectionId()

public ServiceAttachmentConnectedEndpoint.Builder clearPscConnectionId()

The PSC connection id of the connected endpoint.

optional uint64 psc_connection_id = 292082397;

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

clearStatus()

public ServiceAttachmentConnectedEndpoint.Builder 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
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

getConsumerNetwork()

public String getConsumerNetwork()

The url of the consumer network.

optional string consumer_network = 254357221;

Returns
Type Description
String

The consumerNetwork.

getConsumerNetworkBytes()

public ByteString getConsumerNetworkBytes()

The url of the consumer network.

optional string consumer_network = 254357221;

Returns
Type Description
ByteString

The bytes for consumerNetwork.

getDefaultInstanceForType()

public ServiceAttachmentConnectedEndpoint getDefaultInstanceForType()
Returns
Type Description
ServiceAttachmentConnectedEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpoint()

public String getEndpoint()

The url of a connected endpoint.

optional string endpoint = 130489749;

Returns
Type Description
String

The endpoint.

getEndpointBytes()

public ByteString getEndpointBytes()

The url of a connected endpoint.

optional string endpoint = 130489749;

Returns
Type Description
ByteString

The bytes for endpoint.

getNatIps(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The natIps at the given index.

getNatIpsBytes(int index)

public ByteString getNatIpsBytes(int index)

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the natIps at the given index.

getNatIpsCount()

public int getNatIpsCount()

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Returns
Type Description
int

The count of natIps.

getNatIpsList()

public ProtocolStringList getNatIpsList()

NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.

repeated string nat_ips = 117635086;

Returns
Type Description
ProtocolStringList

A list containing the natIps.

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;

Returns
Type Description
int

The propagatedConnectionCount.

getPscConnectionId()

public long getPscConnectionId()

The PSC connection id of the connected endpoint.

optional uint64 psc_connection_id = 292082397;

Returns
Type Description
long

The pscConnectionId.

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;

Returns
Type Description
String

The status.

getStatusBytes()

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

Returns
Type Description
ByteString

The bytes for status.

hasConsumerNetwork()

public boolean hasConsumerNetwork()

The url of the consumer network.

optional string consumer_network = 254357221;

Returns
Type Description
boolean

Whether the consumerNetwork field is set.

hasEndpoint()

public boolean hasEndpoint()

The url of a connected endpoint.

optional string endpoint = 130489749;

Returns
Type Description
boolean

Whether the endpoint field is set.

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;

Returns
Type Description
boolean

Whether the propagatedConnectionCount field is set.

hasPscConnectionId()

public boolean hasPscConnectionId()

The PSC connection id of the connected endpoint.

optional uint64 psc_connection_id = 292082397;

Returns
Type Description
boolean

Whether the pscConnectionId field is set.

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;

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceAttachmentConnectedEndpoint other)

public ServiceAttachmentConnectedEndpoint.Builder mergeFrom(ServiceAttachmentConnectedEndpoint other)
Parameter
Name Description
other ServiceAttachmentConnectedEndpoint
Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceAttachmentConnectedEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceAttachmentConnectedEndpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder
Overrides

setConsumerNetwork(String value)

public ServiceAttachmentConnectedEndpoint.Builder setConsumerNetwork(String value)

The url of the consumer network.

optional string consumer_network = 254357221;

Parameter
Name Description
value String

The consumerNetwork to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setConsumerNetworkBytes(ByteString value)

public ServiceAttachmentConnectedEndpoint.Builder setConsumerNetworkBytes(ByteString value)

The url of the consumer network.

optional string consumer_network = 254357221;

Parameter
Name Description
value ByteString

The bytes for consumerNetwork to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setEndpoint(String value)

public ServiceAttachmentConnectedEndpoint.Builder setEndpoint(String value)

The url of a connected endpoint.

optional string endpoint = 130489749;

Parameter
Name Description
value String

The endpoint to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

public ServiceAttachmentConnectedEndpoint.Builder setEndpointBytes(ByteString value)

The url of a connected endpoint.

optional string endpoint = 130489749;

Parameter
Name Description
value ByteString

The bytes for endpoint to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setNatIps(int index, String value)

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

The index to set the value at.

value String

The natIps to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setPropagatedConnectionCount(int value)

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;

Parameter
Name Description
value int

The propagatedConnectionCount to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setPscConnectionId(long value)

public ServiceAttachmentConnectedEndpoint.Builder setPscConnectionId(long value)

The PSC connection id of the connected endpoint.

optional uint64 psc_connection_id = 292082397;

Parameter
Name Description
value long

The pscConnectionId to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setStatus(String value)

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

Parameter
Name Description
value String

The status to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.

setStatusBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

This builder for chaining.