Class ServiceConnectionPolicy.PscConnection.Builder (0.16.0)

public static final class ServiceConnectionPolicy.PscConnection.Builder extends GeneratedMessageV3.Builder<ServiceConnectionPolicy.PscConnection.Builder> implements ServiceConnectionPolicy.PscConnectionOrBuilder

Information about a specific Private Service Connect connection.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.PscConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ServiceConnectionPolicy.PscConnection.Builder clear()
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

clearConsumerAddress()

public ServiceConnectionPolicy.PscConnection.Builder clearConsumerAddress()

The resource reference of the consumer address.

string consumer_address = 3;

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearConsumerForwardingRule()

public ServiceConnectionPolicy.PscConnection.Builder clearConsumerForwardingRule()

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

string consumer_forwarding_rule = 2;

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearConsumerTargetProject()

public ServiceConnectionPolicy.PscConnection.Builder clearConsumerTargetProject()

The project where the PSC connection is created.

string consumer_target_project = 7;

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearError()

public ServiceConnectionPolicy.PscConnection.Builder clearError()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

clearErrorType()

public ServiceConnectionPolicy.PscConnection.Builder clearErrorType()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionPolicy.PscConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

clearGceOperation()

public ServiceConnectionPolicy.PscConnection.Builder clearGceOperation()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionPolicy.PscConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

clearPscConnectionId()

public ServiceConnectionPolicy.PscConnection.Builder clearPscConnectionId()

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearState()

public ServiceConnectionPolicy.PscConnection.Builder clearState()

State of the PSC Connection

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

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clone()

public ServiceConnectionPolicy.PscConnection.Builder clone()
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
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

getDescriptorForType()

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

getError()

public Status getError()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

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

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.

getState()

public ServiceConnectionPolicy.State getState()

State of the PSC Connection

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

Returns
Type Description
ServiceConnectionPolicy.State

The state.

getStateValue()

public int getStateValue()

State of the PSC Connection

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

Returns
Type Description
int

The enum numeric value on the wire for state.

hasError()

public boolean hasError()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
Type Description
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public ServiceConnectionPolicy.PscConnection.Builder mergeError(Status value)

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

mergeFrom(ServiceConnectionPolicy.PscConnection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

setConsumerAddress(String value)

public ServiceConnectionPolicy.PscConnection.Builder setConsumerAddress(String value)

The resource reference of the consumer address.

string consumer_address = 3;

Parameter
Name Description
value String

The consumerAddress to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setConsumerAddressBytes(ByteString value)

public ServiceConnectionPolicy.PscConnection.Builder setConsumerAddressBytes(ByteString value)

The resource reference of the consumer address.

string consumer_address = 3;

Parameter
Name Description
value ByteString

The bytes for consumerAddress to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setConsumerForwardingRule(String value)

public ServiceConnectionPolicy.PscConnection.Builder setConsumerForwardingRule(String value)

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

string consumer_forwarding_rule = 2;

Parameter
Name Description
value String

The consumerForwardingRule to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setConsumerForwardingRuleBytes(ByteString value)

public ServiceConnectionPolicy.PscConnection.Builder setConsumerForwardingRuleBytes(ByteString value)

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

string consumer_forwarding_rule = 2;

Parameter
Name Description
value ByteString

The bytes for consumerForwardingRule to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setConsumerTargetProject(String value)

public ServiceConnectionPolicy.PscConnection.Builder setConsumerTargetProject(String value)

The project where the PSC connection is created.

string consumer_target_project = 7;

Parameter
Name Description
value String

The consumerTargetProject to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setConsumerTargetProjectBytes(ByteString value)

public ServiceConnectionPolicy.PscConnection.Builder setConsumerTargetProjectBytes(ByteString value)

The project where the PSC connection is created.

string consumer_target_project = 7;

Parameter
Name Description
value ByteString

The bytes for consumerTargetProject to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setError(Status value)

public ServiceConnectionPolicy.PscConnection.Builder setError(Status value)

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

setError(Status.Builder builderForValue)

public ServiceConnectionPolicy.PscConnection.Builder setError(Status.Builder builderForValue)

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

setErrorType(ConnectionErrorType value)

public ServiceConnectionPolicy.PscConnection.Builder setErrorType(ConnectionErrorType value)

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

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

Parameter
Name Description
value ConnectionErrorType

The errorType to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setErrorTypeValue(int value)

public ServiceConnectionPolicy.PscConnection.Builder setErrorTypeValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for errorType to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.PscConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

setGceOperation(String value)

public ServiceConnectionPolicy.PscConnection.Builder setGceOperation(String value)

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Parameter
Name Description
value String

The gceOperation to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setGceOperationBytes(ByteString value)

public ServiceConnectionPolicy.PscConnection.Builder setGceOperationBytes(ByteString value)

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Parameter
Name Description
value ByteString

The bytes for gceOperation to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setPscConnectionId(String value)

public ServiceConnectionPolicy.PscConnection.Builder setPscConnectionId(String value)

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Parameter
Name Description
value String

The pscConnectionId to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setPscConnectionIdBytes(ByteString value)

public ServiceConnectionPolicy.PscConnection.Builder setPscConnectionIdBytes(ByteString value)

The PSC connection id of the PSC forwarding rule.

string psc_connection_id = 8;

Parameter
Name Description
value ByteString

The bytes for pscConnectionId to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

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

public ServiceConnectionPolicy.PscConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides

setState(ServiceConnectionPolicy.State value)

public ServiceConnectionPolicy.PscConnection.Builder setState(ServiceConnectionPolicy.State value)

State of the PSC Connection

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

Parameter
Name Description
value ServiceConnectionPolicy.State

The state to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setStateValue(int value)

public ServiceConnectionPolicy.PscConnection.Builder setStateValue(int value)

State of the PSC Connection

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConnectionPolicy.PscConnection.Builder
Overrides