Class ServiceConnectionMap.ConsumerPscConnection.Builder (0.15.0)

public static final class ServiceConnectionMap.ConsumerPscConnection.Builder extends GeneratedMessageV3.Builder<ServiceConnectionMap.ConsumerPscConnection.Builder> implements ServiceConnectionMap.ConsumerPscConnectionOrBuilder

PSC connection details on consumer side.

Protobuf type google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceConnectionMap.ConsumerPscConnection build()
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection

buildPartial()

public ServiceConnectionMap.ConsumerPscConnection buildPartial()
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection

clear()

public ServiceConnectionMap.ConsumerPscConnection.Builder clear()
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

clearError()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearError()

The most recent error during operating this connection.

.google.rpc.Status error = 8;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

clearErrorType()

public ServiceConnectionMap.ConsumerPscConnection.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 = 7;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionMap.ConsumerPscConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

clearForwardingRule()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearForwardingRule()

The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.

string forwarding_rule = 10;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearGceOperation()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearGceOperation()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearIp()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearIp()

The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.

string ip = 6;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearNetwork()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearNetwork()

The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).

string network = 4;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionMap.ConsumerPscConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

clearProject()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearProject()

The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.

string project = 3;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearPscConnectionId()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearPscConnectionId()

The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.

string psc_connection_id = 5;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearServiceAttachmentUri()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearServiceAttachmentUri()

The URI of a service attachment which is the target of the PSC connection.

string service_attachment_uri = 1;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearState()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearState()

The state of the PSC connection.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State state = 2;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clone()

public ServiceConnectionMap.ConsumerPscConnection.Builder clone()
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

getDefaultInstanceForType()

public ServiceConnectionMap.ConsumerPscConnection getDefaultInstanceForType()
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection

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 = 8;

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 = 8;

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

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 8;

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

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

Returns
Type Description
int

The enum numeric value on the wire for errorType.

getForwardingRule()

public String getForwardingRule()

The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.

string forwarding_rule = 10;

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.

string forwarding_rule = 10;

Returns
Type Description
ByteString

The bytes for forwardingRule.

getGceOperation()

public String getGceOperation()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

Returns
Type Description
String

The gceOperation.

getGceOperationBytes()

public ByteString getGceOperationBytes()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

Returns
Type Description
ByteString

The bytes for gceOperation.

getIp()

public String getIp()

The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.

string ip = 6;

Returns
Type Description
String

The ip.

getIpBytes()

public ByteString getIpBytes()

The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.

string ip = 6;

Returns
Type Description
ByteString

The bytes for ip.

getNetwork()

public String getNetwork()

The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).

string network = 4;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).

string network = 4;

Returns
Type Description
ByteString

The bytes for network.

getProject()

public String getProject()

The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.

string project = 3;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.

string project = 3;

Returns
Type Description
ByteString

The bytes for project.

getPscConnectionId()

public String getPscConnectionId()

The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.

string psc_connection_id = 5;

Returns
Type Description
String

The pscConnectionId.

getPscConnectionIdBytes()

public ByteString getPscConnectionIdBytes()

The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.

string psc_connection_id = 5;

Returns
Type Description
ByteString

The bytes for pscConnectionId.

getServiceAttachmentUri()

public String getServiceAttachmentUri()

The URI of a service attachment which is the target of the PSC connection.

string service_attachment_uri = 1;

Returns
Type Description
String

The serviceAttachmentUri.

getServiceAttachmentUriBytes()

public ByteString getServiceAttachmentUriBytes()

The URI of a service attachment which is the target of the PSC connection.

string service_attachment_uri = 1;

Returns
Type Description
ByteString

The bytes for serviceAttachmentUri.

getState()

public ServiceConnectionMap.ConsumerPscConnection.State getState()

The state of the PSC connection.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State state = 2;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.State

The state.

getStateValue()

public int getStateValue()

The state of the PSC connection.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State state = 2;

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 = 8;

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 ServiceConnectionMap.ConsumerPscConnection.Builder mergeError(Status value)

The most recent error during operating this connection.

.google.rpc.Status error = 8;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

mergeFrom(ServiceConnectionMap.ConsumerPscConnection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionMap.ConsumerPscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

setError(Status value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setError(Status value)

The most recent error during operating this connection.

.google.rpc.Status error = 8;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

setError(Status.Builder builderForValue)

public ServiceConnectionMap.ConsumerPscConnection.Builder setError(Status.Builder builderForValue)

The most recent error during operating this connection.

.google.rpc.Status error = 8;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

setErrorType(ConnectionErrorType value)

public ServiceConnectionMap.ConsumerPscConnection.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 = 7;

Parameter
Name Description
value ConnectionErrorType

The errorType to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setErrorTypeValue(int value)

public ServiceConnectionMap.ConsumerPscConnection.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 = 7;

Parameter
Name Description
value int

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

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setForwardingRule(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setForwardingRule(String value)

The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.

string forwarding_rule = 10;

Parameter
Name Description
value String

The forwardingRule to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setForwardingRuleBytes(ByteString value)

The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.

string forwarding_rule = 10;

Parameter
Name Description
value ByteString

The bytes for forwardingRule to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setGceOperation(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setGceOperation(String value)

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

Parameter
Name Description
value String

The gceOperation to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setGceOperationBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setGceOperationBytes(ByteString value)

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

Parameter
Name Description
value ByteString

The bytes for gceOperation to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setIp(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setIp(String value)

The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.

string ip = 6;

Parameter
Name Description
value String

The ip to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setIpBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setIpBytes(ByteString value)

The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.

string ip = 6;

Parameter
Name Description
value ByteString

The bytes for ip to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setNetwork(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setNetwork(String value)

The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).

string network = 4;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setNetworkBytes(ByteString value)

The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).

string network = 4;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setProject(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setProject(String value)

The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.

string project = 3;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setProjectBytes(ByteString value)

The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.

string project = 3;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setPscConnectionId(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setPscConnectionId(String value)

The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.

string psc_connection_id = 5;

Parameter
Name Description
value String

The pscConnectionId to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setPscConnectionIdBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setPscConnectionIdBytes(ByteString value)

The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.

string psc_connection_id = 5;

Parameter
Name Description
value ByteString

The bytes for pscConnectionId to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

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

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

setServiceAttachmentUri(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setServiceAttachmentUri(String value)

The URI of a service attachment which is the target of the PSC connection.

string service_attachment_uri = 1;

Parameter
Name Description
value String

The serviceAttachmentUri to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setServiceAttachmentUriBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setServiceAttachmentUriBytes(ByteString value)

The URI of a service attachment which is the target of the PSC connection.

string service_attachment_uri = 1;

Parameter
Name Description
value ByteString

The bytes for serviceAttachmentUri to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setState(ServiceConnectionMap.ConsumerPscConnection.State value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setState(ServiceConnectionMap.ConsumerPscConnection.State value)

The state of the PSC connection.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State state = 2;

Parameter
Name Description
value ServiceConnectionMap.ConsumerPscConnection.State

The state to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setStateValue(int value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setStateValue(int value)

The state of the PSC connection.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State state = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionMap.ConsumerPscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides