Class ServiceConnectionPolicy.PscConnection (1.61.0)

public static final class ServiceConnectionPolicy.PscConnection extends GeneratedMessageV3 implements ServiceConnectionPolicy.PscConnectionOrBuilder

Information about a specific Private Service Connect connection.

Protobuf type google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ServiceConnectionPolicy.PscConnection

Static Fields

CONSUMER_ADDRESS_FIELD_NUMBER

public static final int CONSUMER_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

CONSUMER_FORWARDING_RULE_FIELD_NUMBER

public static final int CONSUMER_FORWARDING_RULE_FIELD_NUMBER
Field Value
Type Description
int

CONSUMER_TARGET_PROJECT_FIELD_NUMBER

public static final int CONSUMER_TARGET_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
Type Description
int

ERROR_INFO_FIELD_NUMBER

public static final int ERROR_INFO_FIELD_NUMBER
Field Value
Type Description
int

ERROR_TYPE_FIELD_NUMBER

public static final int ERROR_TYPE_FIELD_NUMBER
Field Value
Type Description
int

GCE_OPERATION_FIELD_NUMBER

public static final int GCE_OPERATION_FIELD_NUMBER
Field Value
Type Description
int

IP_VERSION_FIELD_NUMBER

public static final int IP_VERSION_FIELD_NUMBER
Field Value
Type Description
int

PRODUCER_INSTANCE_ID_FIELD_NUMBER

public static final int PRODUCER_INSTANCE_ID_FIELD_NUMBER
Field Value
Type Description
int

PRODUCER_INSTANCE_METADATA_FIELD_NUMBER

public static final int PRODUCER_INSTANCE_METADATA_FIELD_NUMBER
Field Value
Type Description
int

PSC_CONNECTION_ID_FIELD_NUMBER

public static final int PSC_CONNECTION_ID_FIELD_NUMBER
Field Value
Type Description
int

SELECTED_SUBNETWORK_FIELD_NUMBER

public static final int SELECTED_SUBNETWORK_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_CLASS_FIELD_NUMBER

public static final int SERVICE_CLASS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ServiceConnectionPolicy.PscConnection getDefaultInstance()
Returns
Type Description
ServiceConnectionPolicy.PscConnection

getDescriptor()

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

newBuilder()

public static ServiceConnectionPolicy.PscConnection.Builder newBuilder()
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

newBuilder(ServiceConnectionPolicy.PscConnection prototype)

public static ServiceConnectionPolicy.PscConnection.Builder newBuilder(ServiceConnectionPolicy.PscConnection prototype)
Parameter
Name Description
prototype ServiceConnectionPolicy.PscConnection
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

parseDelimitedFrom(InputStream input)

public static ServiceConnectionPolicy.PscConnection parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ServiceConnectionPolicy.PscConnection parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServiceConnectionPolicy.PscConnection parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ServiceConnectionPolicy.PscConnection parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConnection
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ServiceConnectionPolicy.PscConnection> parser()
Returns
Type Description
Parser<PscConnection>

Methods

containsProducerInstanceMetadata(String key)

public boolean containsProducerInstanceMetadata(String key)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConsumerAddress()

public String getConsumerAddress()

The resource reference of the consumer address.

string consumer_address = 3;

Returns
Type Description
String

The consumerAddress.

getConsumerAddressBytes()

public ByteString getConsumerAddressBytes()

The resource reference of the consumer address.

string consumer_address = 3;

Returns
Type Description
ByteString

The bytes for consumerAddress.

getConsumerForwardingRule()

public String getConsumerForwardingRule()

The resource reference of the PSC Forwarding Rule within the consumer VPC.

string consumer_forwarding_rule = 2;

Returns
Type Description
String

The consumerForwardingRule.

getConsumerForwardingRuleBytes()

public ByteString getConsumerForwardingRuleBytes()

The resource reference of the PSC Forwarding Rule within the consumer VPC.

string consumer_forwarding_rule = 2;

Returns
Type Description
ByteString

The bytes for consumerForwardingRule.

getConsumerTargetProject()

public String getConsumerTargetProject()

The project where the PSC connection is created.

string consumer_target_project = 7;

Returns
Type Description
String

The consumerTargetProject.

getConsumerTargetProjectBytes()

public ByteString getConsumerTargetProjectBytes()

The project where the PSC connection is created.

string consumer_target_project = 7;

Returns
Type Description
ByteString

The bytes for consumerTargetProject.

getDefaultInstanceForType()

public ServiceConnectionPolicy.PscConnection getDefaultInstanceForType()
Returns
Type Description
ServiceConnectionPolicy.PscConnection

getError() (deprecated)

public Status getError()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=765

The most recent error during operating this connection. Deprecated, please use error_info instead.

.google.rpc.Status error = 5 [deprecated = true];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorInfo()

public ErrorInfo getErrorInfo()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfo

The errorInfo.

getErrorInfoOrBuilder()

public ErrorInfoOrBuilder getErrorInfoOrBuilder()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfoOrBuilder

getErrorOrBuilder() (deprecated)

public StatusOrBuilder getErrorOrBuilder()

The most recent error during operating this connection. Deprecated, please use error_info instead.

.google.rpc.Status error = 5 [deprecated = true];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getErrorType() (deprecated)

public ConnectionErrorType getErrorType()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761

The error type indicates whether the error is consumer facing, producer facing or system internal.

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];

Returns
Type Description
ConnectionErrorType

The errorType.

getErrorTypeValue() (deprecated)

public int getErrorTypeValue()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761

The error type indicates whether the error is consumer facing, producer facing or system internal.

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for errorType.

getGceOperation()

public String getGceOperation()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Returns
Type Description
String

The gceOperation.

getGceOperationBytes()

public ByteString getGceOperationBytes()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Returns
Type Description
ByteString

The bytes for gceOperation.

getIpVersion()

public IPVersion getIpVersion()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;

Returns
Type Description
IPVersion

The ipVersion.

getIpVersionValue()

public int getIpVersionValue()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;

Returns
Type Description
int

The enum numeric value on the wire for ipVersion.

getParserForType()

public Parser<ServiceConnectionPolicy.PscConnection> getParserForType()
Returns
Type Description
Parser<PscConnection>
Overrides

getProducerInstanceId() (deprecated)

public String getProducerInstanceId()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The producerInstanceId.

getProducerInstanceIdBytes() (deprecated)

public ByteString getProducerInstanceIdBytes()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for producerInstanceId.

getProducerInstanceMetadata() (deprecated)

public Map<String,String> getProducerInstanceMetadata()
Returns
Type Description
Map<String,String>

getProducerInstanceMetadataCount()

public int getProducerInstanceMetadataCount()

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

getProducerInstanceMetadataMap()

public Map<String,String> getProducerInstanceMetadataMap()

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Map<String,String>

getProducerInstanceMetadataOrDefault(String key, String defaultValue)

public String getProducerInstanceMetadataOrDefault(String key, String defaultValue)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getProducerInstanceMetadataOrThrow(String key)

public String getProducerInstanceMetadataOrThrow(String key)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
String

getPscConnectionId()

public String getPscConnectionId()

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Returns
Type Description
String

The pscConnectionId.

getPscConnectionIdBytes()

public ByteString getPscConnectionIdBytes()

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Returns
Type Description
ByteString

The bytes for pscConnectionId.

getSelectedSubnetwork()

public String getSelectedSubnetwork()

Output only. The URI of the subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The selectedSubnetwork.

getSelectedSubnetworkBytes()

public ByteString getSelectedSubnetworkBytes()

Output only. The URI of the subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for selectedSubnetwork.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceClass()

public String getServiceClass()

Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.

string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceClass.

getServiceClassBytes()

public ByteString getServiceClassBytes()

Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.

string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceClass.

getState()

public ServiceConnectionPolicy.State getState()

State of the PSC Connection

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;

Returns
Type Description
ServiceConnectionPolicy.State

The state.

getStateValue()

public int getStateValue()

State of the PSC Connection

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasError() (deprecated)

public boolean hasError()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=765

The most recent error during operating this connection. Deprecated, please use error_info instead.

.google.rpc.Status error = 5 [deprecated = true];

Returns
Type Description
boolean

Whether the error field is set.

hasErrorInfo()

public boolean hasErrorInfo()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the errorInfo field is set.

hasIpVersion()

public boolean hasIpVersion()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;

Returns
Type Description
boolean

Whether the ipVersion field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ServiceConnectionPolicy.PscConnection.Builder newBuilderForType()
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServiceConnectionPolicy.PscConnection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ServiceConnectionPolicy.PscConnection.Builder toBuilder()
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException