Class ServiceConnectionPolicy.PscConnection (0.14.1)

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

Information about a specific Private Service Connect connection.

Protobuf type google.events.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
TypeDescription
int

CONSUMER_FORWARDING_RULE_FIELD_NUMBER

public static final int CONSUMER_FORWARDING_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

CONSUMER_TARGET_PROJECT_FIELD_NUMBER

public static final int CONSUMER_TARGET_PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_TYPE_FIELD_NUMBER

public static final int ERROR_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

GCE_OPERATION_FIELD_NUMBER

public static final int GCE_OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_CONNECTION_ID_FIELD_NUMBER

public static final int PSC_CONNECTION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServiceConnectionPolicy.PscConnection getDefaultInstance()
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection

getDescriptor()

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

newBuilder()

public static ServiceConnectionPolicy.PscConnection.Builder newBuilder()
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

newBuilder(ServiceConnectionPolicy.PscConnection prototype)

public static ServiceConnectionPolicy.PscConnection.Builder newBuilder(ServiceConnectionPolicy.PscConnection prototype)
Parameter
NameDescription
prototypeServiceConnectionPolicy.PscConnection
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

parseDelimitedFrom(InputStream input)

public static ServiceConnectionPolicy.PscConnection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ServiceConnectionPolicy.PscConnection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServiceConnectionPolicy.PscConnection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ServiceConnectionPolicy.PscConnection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionPolicy.PscConnection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getConsumerAddress()

public String getConsumerAddress()

The resource reference of the consumer address.

string consumer_address = 3;

Returns
TypeDescription
String

The consumerAddress.

getConsumerAddressBytes()

public ByteString getConsumerAddressBytes()

The resource reference of the consumer address.

string consumer_address = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for consumerForwardingRule.

getConsumerTargetProject()

public String getConsumerTargetProject()

The project where the PSC connection is created.

string consumer_target_project = 7;

Returns
TypeDescription
String

The consumerTargetProject.

getConsumerTargetProjectBytes()

public ByteString getConsumerTargetProjectBytes()

The project where the PSC connection is created.

string consumer_target_project = 7;

Returns
TypeDescription
ByteString

The bytes for consumerTargetProject.

getDefaultInstanceForType()

public ServiceConnectionPolicy.PscConnection getDefaultInstanceForType()
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection

getError()

public Status getError()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getErrorType()

public ConnectionErrorType getErrorType()

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

.google.events.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4;

Returns
TypeDescription
ConnectionErrorType

The errorType.

getErrorTypeValue()

public int getErrorTypeValue()

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

.google.events.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4;

Returns
TypeDescription
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
TypeDescription
String

The gceOperation.

getGceOperationBytes()

public ByteString getGceOperationBytes()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Returns
TypeDescription
ByteString

The bytes for gceOperation.

getParserForType()

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

getPscConnectionId()

public String getPscConnectionId()

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Returns
TypeDescription
String

The pscConnectionId.

getPscConnectionIdBytes()

public ByteString getPscConnectionIdBytes()

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Returns
TypeDescription
ByteString

The bytes for pscConnectionId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public ServiceConnectionPolicy.State getState()

State of the PSC Connection

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

Returns
TypeDescription
ServiceConnectionPolicy.State

The state.

getStateValue()

public int getStateValue()

State of the PSC Connection

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasError()

public boolean hasError()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
TypeDescription
boolean

Whether the error field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ServiceConnectionPolicy.PscConnection.Builder newBuilderForType()
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServiceConnectionPolicy.PscConnection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ServiceConnectionPolicy.PscConnection.Builder toBuilder()
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException