Class ServiceConnectionMap.ConsumerPscConnection.Builder (0.14.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceConnectionMap.ConsumerPscConnection build()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection

buildPartial()

public ServiceConnectionMap.ConsumerPscConnection buildPartial()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection

clear()

public ServiceConnectionMap.ConsumerPscConnection.Builder clear()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

clearError()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearError()

The most recent error during operating this connection.

.google.rpc.Status error = 8;

Returns
TypeDescription
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
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionMap.ConsumerPscConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ServiceConnectionMap.ConsumerPscConnection.Builder clone()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

getDefaultInstanceForType()

public ServiceConnectionMap.ConsumerPscConnection getDefaultInstanceForType()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection

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

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

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 8;

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

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

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

The bytes for forwardingRule.

getGceOperation()

public String getGceOperation()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

Returns
TypeDescription
String

The gceOperation.

getGceOperationBytes()

public ByteString getGceOperationBytes()

The last Compute Engine operation to setup PSC connection.

string gce_operation = 9;

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

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

The most recent error during operating this connection.

.google.rpc.Status error = 8;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder

mergeFrom(ServiceConnectionMap.ConsumerPscConnection other)

public ServiceConnectionMap.ConsumerPscConnection.Builder mergeFrom(ServiceConnectionMap.ConsumerPscConnection other)
Parameter
NameDescription
otherServiceConnectionMap.ConsumerPscConnection
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ServiceConnectionMap.ConsumerPscConnection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionMap.ConsumerPscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
valueConnectionErrorType

The errorType to set.

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

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

Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The forwardingRule to set.

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

The bytes for forwardingRule to set.

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

The gceOperation to set.

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

The bytes for gceOperation to set.

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

The ip to set.

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

The bytes for ip to set.

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

The network to set.

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

The bytes for network to set.

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

The project to set.

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

The bytes for project to set.

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

The pscConnectionId to set.

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

The bytes for pscConnectionId to set.

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

The serviceAttachmentUri to set.

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

The bytes for serviceAttachmentUri to set.

Returns
TypeDescription
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
NameDescription
valueServiceConnectionMap.ConsumerPscConnection.State

The state to set.

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

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

Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionMap.ConsumerPscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConnection.Builder
Overrides