Class ServiceConnectionPolicy.PscConnection.Builder (0.14.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.PscConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ServiceConnectionPolicy.PscConnection.Builder clear()
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides

clearConsumerAddress()

public ServiceConnectionPolicy.PscConnection.Builder clearConsumerAddress()

The resource reference of the consumer address.

string consumer_address = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionPolicy.PscConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides

clearGceOperation()

public ServiceConnectionPolicy.PscConnection.Builder clearGceOperation()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 6;

Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionPolicy.PscConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getErrorBuilder()

public Status.Builder getErrorBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 5;

Returns
TypeDescription
com.google.rpc.Status.Builder

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.

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

mergeFrom(ServiceConnectionPolicy.PscConnection other)

public ServiceConnectionPolicy.PscConnection.Builder mergeFrom(ServiceConnectionPolicy.PscConnection other)
Parameter
NameDescription
otherServiceConnectionPolicy.PscConnection
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceConnectionPolicy.PscConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceConnectionPolicy.PscConnection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The consumerAddress to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for consumerAddress to set.

Returns
TypeDescription
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
NameDescription
valueString

The consumerForwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for consumerForwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueString

The consumerTargetProject to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for consumerTargetProject to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
valueConnectionErrorType

The errorType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.PscConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gceOperation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gceOperation to set.

Returns
TypeDescription
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
NameDescription
valueString

The pscConnectionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pscConnectionId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueServiceConnectionPolicy.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder
Overrides