Class ServiceConnectionMap.ConsumerPscConnection.Builder (1.61.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.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() (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder clearError()

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

clearErrorInfo()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearErrorInfo()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

clearErrorType() (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder clearErrorType()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=452

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

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 7 [deprecated = true];

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.

clearIpVersion()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearIpVersion()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 15;

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

clearProducerInstanceId() (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder clearProducerInstanceId()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=476

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 13 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

clearProducerInstanceMetadata()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearProducerInstanceMetadata()
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

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.

clearSelectedSubnetwork()

public ServiceConnectionMap.ConsumerPscConnection.Builder clearSelectedSubnetwork()

Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.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

containsProducerInstanceMetadata(String key)

public boolean containsProducerInstanceMetadata(String key)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

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

getDescriptorForType()

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

getError() (deprecated)

public Status getError()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=455

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder() (deprecated)

public Status.Builder getErrorBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

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

getErrorInfo()

public ErrorInfo getErrorInfo()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfo

The errorInfo.

getErrorInfoBuilder()

public ErrorInfo.Builder getErrorInfoBuilder()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getErrorInfoOrBuilder()

public ErrorInfoOrBuilder getErrorInfoOrBuilder()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.ErrorInfoOrBuilder

getErrorOrBuilder() (deprecated)

public StatusOrBuilder getErrorOrBuilder()

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getErrorType() (deprecated)

public ConnectionErrorType getErrorType()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=452

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

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 7 [deprecated = true];

Returns
Type Description
ConnectionErrorType

The errorType.

getErrorTypeValue() (deprecated)

public int getErrorTypeValue()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=452

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

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 7 [deprecated = true];

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.

getIpVersion()

public IPVersion getIpVersion()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 15;

Returns
Type Description
IPVersion

The ipVersion.

getIpVersionValue()

public int getIpVersionValue()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 15;

Returns
Type Description
int

The enum numeric value on the wire for ipVersion.

getMutableProducerInstanceMetadata() (deprecated)

public Map<String,String> getMutableProducerInstanceMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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.

getProducerInstanceId() (deprecated)

public String getProducerInstanceId()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=476

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 13 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The producerInstanceId.

getProducerInstanceIdBytes() (deprecated)

public ByteString getProducerInstanceIdBytes()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=476

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 13 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for producerInstanceId.

getProducerInstanceMetadata() (deprecated)

public Map<String,String> getProducerInstanceMetadata()
Returns
Type Description
Map<String,String>

getProducerInstanceMetadataCount()

public int getProducerInstanceMetadataCount()

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

getProducerInstanceMetadataMap()

public Map<String,String> getProducerInstanceMetadataMap()

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Map<String,String>

getProducerInstanceMetadataOrDefault(String key, String defaultValue)

public String getProducerInstanceMetadataOrDefault(String key, String defaultValue)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getProducerInstanceMetadataOrThrow(String key)

public String getProducerInstanceMetadataOrThrow(String key)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
String

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.

getSelectedSubnetwork()

public String getSelectedSubnetwork()

Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The selectedSubnetwork.

getSelectedSubnetworkBytes()

public ByteString getSelectedSubnetworkBytes()

Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for selectedSubnetwork.

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.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.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasError() (deprecated)

public boolean hasError()

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=455

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

Returns
Type Description
boolean

Whether the error field is set.

hasErrorInfo()

public boolean hasErrorInfo()

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the errorInfo field is set.

hasIpVersion()

public boolean hasIpVersion()

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 15;

Returns
Type Description
boolean

Whether the ipVersion field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value) (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder mergeError(Status value)

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

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

mergeErrorInfo(ErrorInfo value)

public ServiceConnectionMap.ConsumerPscConnection.Builder mergeErrorInfo(ErrorInfo value)

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.ErrorInfo
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

putAllProducerInstanceMetadata(Map<String,String> values)

public ServiceConnectionMap.ConsumerPscConnection.Builder putAllProducerInstanceMetadata(Map<String,String> values)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

putProducerInstanceMetadata(String key, String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder putProducerInstanceMetadata(String key, String value)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
key String
value String
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

removeProducerInstanceMetadata(String key)

public ServiceConnectionMap.ConsumerPscConnection.Builder removeProducerInstanceMetadata(String key)

Immutable. An immutable map for the producer instance metadata.

map<string, string> producer_instance_metadata = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

setError(Status value) (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder setError(Status value)

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

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

setError(Status.Builder builderForValue) (deprecated)

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

The most recent error during operating this connection.

.google.rpc.Status error = 8 [deprecated = true];

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

setErrorInfo(ErrorInfo value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setErrorInfo(ErrorInfo value)

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setErrorInfo(ErrorInfo.Builder builderForValue)

public ServiceConnectionMap.ConsumerPscConnection.Builder setErrorInfo(ErrorInfo.Builder builderForValue)

Output only. The error info for the latest error during operating this connection.

.google.rpc.ErrorInfo error_info = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setErrorType(ConnectionErrorType value) (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder setErrorType(ConnectionErrorType value)

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=452

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

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 7 [deprecated = true];

Parameter
Name Description
value ConnectionErrorType

The errorType to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setErrorTypeValue(int value) (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder setErrorTypeValue(int value)

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=452

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

.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 7 [deprecated = true];

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.

setIpVersion(IPVersion value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setIpVersion(IPVersion value)

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 15;

Parameter
Name Description
value IPVersion

The ipVersion to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setIpVersionValue(int value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setIpVersionValue(int value)

The requested IP version for the PSC connection.

optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 15;

Parameter
Name Description
value int

The enum numeric value on the wire for ipVersion 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.

setProducerInstanceId(String value) (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder setProducerInstanceId(String value)

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=476

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 13 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The producerInstanceId to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setProducerInstanceIdBytes(ByteString value) (deprecated)

public ServiceConnectionMap.ConsumerPscConnection.Builder setProducerInstanceIdBytes(ByteString value)

Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=476

Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

string producer_instance_id = 13 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for producerInstanceId 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

setSelectedSubnetwork(String value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setSelectedSubnetwork(String value)

Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The selectedSubnetwork to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

setSelectedSubnetworkBytes(ByteString value)

public ServiceConnectionMap.ConsumerPscConnection.Builder setSelectedSubnetworkBytes(ByteString value)

Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.

string selected_subnetwork = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for selectedSubnetwork to set.

Returns
Type Description
ServiceConnectionMap.ConsumerPscConnection.Builder

This builder for chaining.

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.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.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