- 1.75.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.69.0
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.9
- 1.1.1
- 1.0.0
- 0.5.0
public static final class ServiceConnectionPolicy.PscConnection.Builder extends GeneratedMessageV3.Builder<ServiceConnectionPolicy.PscConnection.Builder> implements ServiceConnectionPolicy.PscConnectionOrBuilderInformation about a specific Private Service Connect connection.
Protobuf type
google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceConnectionPolicy.PscConnection.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionPolicy.PscConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
build()
public ServiceConnectionPolicy.PscConnection build()| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection |
|
buildPartial()
public ServiceConnectionPolicy.PscConnection buildPartial()| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection |
|
clear()
public ServiceConnectionPolicy.PscConnection.Builder clear()| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
clearConsumerAddress()
public ServiceConnectionPolicy.PscConnection.Builder clearConsumerAddress()The resource reference of the consumer address.
string consumer_address = 3;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearConsumerForwardingRule()
public ServiceConnectionPolicy.PscConnection.Builder clearConsumerForwardingRule()The resource reference of the PSC Forwarding Rule within the consumer VPC.
string consumer_forwarding_rule = 2;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearConsumerTargetProject()
public ServiceConnectionPolicy.PscConnection.Builder clearConsumerTargetProject()The project where the PSC connection is created.
string consumer_target_project = 7;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearError() (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder clearError()The most recent error during operating this connection. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
clearErrorInfo()
public ServiceConnectionPolicy.PscConnection.Builder clearErrorInfo()Output only. The error info for the latest error during operating this connection.
.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
clearErrorType() (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder clearErrorType()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761
The error type indicates whether the error is consumer facing, producer facing or system internal.
.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ServiceConnectionPolicy.PscConnection.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
clearGceOperation()
public ServiceConnectionPolicy.PscConnection.Builder clearGceOperation()The last Compute Engine operation to setup PSC connection.
string gce_operation = 6;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearIpVersion()
public ServiceConnectionPolicy.PscConnection.Builder clearIpVersion()The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceConnectionPolicy.PscConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
clearProducerInstanceId() (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder clearProducerInstanceId()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearProducerInstanceMetadata()
public ServiceConnectionPolicy.PscConnection.Builder clearProducerInstanceMetadata()| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
clearPscConnectionId()
public ServiceConnectionPolicy.PscConnection.Builder clearPscConnectionId()The PSC connection id of the PSC forwarding rule.
string psc_connection_id = 8;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearSelectedSubnetwork()
public ServiceConnectionPolicy.PscConnection.Builder clearSelectedSubnetwork()Output only. The URI of the subnetwork selected to allocate IP address for this connection.
string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearServiceClass()
public ServiceConnectionPolicy.PscConnection.Builder clearServiceClass()Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clearState()
public ServiceConnectionPolicy.PscConnection.Builder clearState()State of the PSC Connection
.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
clone()
public ServiceConnectionPolicy.PscConnection.Builder clone()| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
containsProducerInstanceMetadata(String key)
public boolean containsProducerInstanceMetadata(String key)Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getConsumerAddress()
public String getConsumerAddress()The resource reference of the consumer address.
string consumer_address = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The consumerAddress. |
getConsumerAddressBytes()
public ByteString getConsumerAddressBytes()The resource reference of the consumer address.
string consumer_address = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for consumerAddress. |
getConsumerForwardingRule()
public String getConsumerForwardingRule()The resource reference of the PSC Forwarding Rule within the consumer VPC.
string consumer_forwarding_rule = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The consumerForwardingRule. |
getConsumerForwardingRuleBytes()
public ByteString getConsumerForwardingRuleBytes()The resource reference of the PSC Forwarding Rule within the consumer VPC.
string consumer_forwarding_rule = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for consumerForwardingRule. |
getConsumerTargetProject()
public String getConsumerTargetProject()The project where the PSC connection is created.
string consumer_target_project = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The consumerTargetProject. |
getConsumerTargetProjectBytes()
public ByteString getConsumerTargetProjectBytes()The project where the PSC connection is created.
string consumer_target_project = 7;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for consumerTargetProject. |
getDefaultInstanceForType()
public ServiceConnectionPolicy.PscConnection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getError() (deprecated)
public Status getError()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=765
The most recent error during operating this connection. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [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. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [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 = 9 [(.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 = 9 [(.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 = 9 [(.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. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
getErrorType() (deprecated)
public ConnectionErrorType getErrorType()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761
The error type indicates whether the error is consumer facing, producer facing or system internal.
.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ConnectionErrorType |
The errorType. |
getErrorTypeValue() (deprecated)
public int getErrorTypeValue()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761
The error type indicates whether the error is consumer facing, producer facing or system internal.
.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for errorType. |
getGceOperation()
public String getGceOperation()The last Compute Engine operation to setup PSC connection.
string gce_operation = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The gceOperation. |
getGceOperationBytes()
public ByteString getGceOperationBytes()The last Compute Engine operation to setup PSC connection.
string gce_operation = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gceOperation. |
getIpVersion()
public IPVersion getIpVersion()The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;
| 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 = 14;
| 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> |
|
getProducerInstanceId() (deprecated)
public String getProducerInstanceId()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The producerInstanceId. |
getProducerInstanceIdBytes() (deprecated)
public ByteString getProducerInstanceIdBytes()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for producerInstanceId. |
getProducerInstanceMetadata() (deprecated)
public Map<String,String> getProducerInstanceMetadata()Use #getProducerInstanceMetadataMap() instead.
| 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 = 12 [(.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 = 12 [(.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 = 12 [(.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 = 12 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getPscConnectionId()
public String getPscConnectionId()The PSC connection id of the PSC forwarding rule.
string psc_connection_id = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The pscConnectionId. |
getPscConnectionIdBytes()
public ByteString getPscConnectionIdBytes()The PSC connection id of the PSC forwarding rule.
string psc_connection_id = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pscConnectionId. |
getSelectedSubnetwork()
public String getSelectedSubnetwork()Output only. The URI of the subnetwork selected to allocate IP address for this connection.
string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The selectedSubnetwork. |
getSelectedSubnetworkBytes()
public ByteString getSelectedSubnetworkBytes()Output only. The URI of the subnetwork selected to allocate IP address for this connection.
string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selectedSubnetwork. |
getServiceClass()
public String getServiceClass()Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The serviceClass. |
getServiceClassBytes()
public ByteString getServiceClassBytes()Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for serviceClass. |
getState()
public ServiceConnectionPolicy.State getState()State of the PSC Connection
.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.State |
The state. |
getStateValue()
public int getStateValue()State of the PSC Connection
.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
hasError() (deprecated)
public boolean hasError()Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=765
The most recent error during operating this connection. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [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 = 9 [(.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 = 14;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ipVersion field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeError(Status value) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder mergeError(Status value)The most recent error during operating this connection. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
mergeErrorInfo(ErrorInfo value)
public ServiceConnectionPolicy.PscConnection.Builder mergeErrorInfo(ErrorInfo value)Output only. The error info for the latest error during operating this connection.
.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.ErrorInfo |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
mergeFrom(ServiceConnectionPolicy.PscConnection other)
public ServiceConnectionPolicy.PscConnection.Builder mergeFrom(ServiceConnectionPolicy.PscConnection other)| Parameter | |
|---|---|
| Name | Description |
other |
ServiceConnectionPolicy.PscConnection |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceConnectionPolicy.PscConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ServiceConnectionPolicy.PscConnection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionPolicy.PscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
putAllProducerInstanceMetadata(Map<String,String> values)
public ServiceConnectionPolicy.PscConnection.Builder putAllProducerInstanceMetadata(Map<String,String> values)Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
putProducerInstanceMetadata(String key, String value)
public ServiceConnectionPolicy.PscConnection.Builder putProducerInstanceMetadata(String key, String value)Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
removeProducerInstanceMetadata(String key)
public ServiceConnectionPolicy.PscConnection.Builder removeProducerInstanceMetadata(String key)Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 12 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setConsumerAddress(String value)
public ServiceConnectionPolicy.PscConnection.Builder setConsumerAddress(String value)The resource reference of the consumer address.
string consumer_address = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe consumerAddress to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setConsumerAddressBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setConsumerAddressBytes(ByteString value)The resource reference of the consumer address.
string consumer_address = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for consumerAddress to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setConsumerForwardingRule(String value)
public ServiceConnectionPolicy.PscConnection.Builder setConsumerForwardingRule(String value)The resource reference of the PSC Forwarding Rule within the consumer VPC.
string consumer_forwarding_rule = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe consumerForwardingRule to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setConsumerForwardingRuleBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setConsumerForwardingRuleBytes(ByteString value)The resource reference of the PSC Forwarding Rule within the consumer VPC.
string consumer_forwarding_rule = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for consumerForwardingRule to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setConsumerTargetProject(String value)
public ServiceConnectionPolicy.PscConnection.Builder setConsumerTargetProject(String value)The project where the PSC connection is created.
string consumer_target_project = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe consumerTargetProject to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setConsumerTargetProjectBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setConsumerTargetProjectBytes(ByteString value)The project where the PSC connection is created.
string consumer_target_project = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for consumerTargetProject to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setError(Status value) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder setError(Status value)The most recent error during operating this connection. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setError(Status.Builder builderForValue) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder setError(Status.Builder builderForValue)The most recent error during operating this connection. Deprecated, please use error_info instead.
.google.rpc.Status error = 5 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setErrorInfo(ErrorInfo value)
public ServiceConnectionPolicy.PscConnection.Builder setErrorInfo(ErrorInfo value)Output only. The error info for the latest error during operating this connection.
.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.ErrorInfo |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setErrorInfo(ErrorInfo.Builder builderForValue)
public ServiceConnectionPolicy.PscConnection.Builder setErrorInfo(ErrorInfo.Builder builderForValue)Output only. The error info for the latest error during operating this connection.
.google.rpc.ErrorInfo error_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.ErrorInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setErrorType(ConnectionErrorType value) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder setErrorType(ConnectionErrorType value)Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761
The error type indicates whether the error is consumer facing, producer facing or system internal.
.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
ConnectionErrorTypeThe errorType to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setErrorTypeValue(int value) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder setErrorTypeValue(int value)Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.error_type is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=761
The error type indicates whether the error is consumer facing, producer facing or system internal.
.google.cloud.networkconnectivity.v1.ConnectionErrorType error_type = 4 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for errorType to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionPolicy.PscConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setGceOperation(String value)
public ServiceConnectionPolicy.PscConnection.Builder setGceOperation(String value)The last Compute Engine operation to setup PSC connection.
string gce_operation = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gceOperation to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setGceOperationBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setGceOperationBytes(ByteString value)The last Compute Engine operation to setup PSC connection.
string gce_operation = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gceOperation to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setIpVersion(IPVersion value)
public ServiceConnectionPolicy.PscConnection.Builder setIpVersion(IPVersion value)The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
IPVersionThe ipVersion to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setIpVersionValue(int value)
public ServiceConnectionPolicy.PscConnection.Builder setIpVersionValue(int value)The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for ipVersion to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setProducerInstanceId(String value) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder setProducerInstanceId(String value)Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe producerInstanceId to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setProducerInstanceIdBytes(ByteString value) (deprecated)
public ServiceConnectionPolicy.PscConnection.Builder setProducerInstanceIdBytes(ByteString value)Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=787
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 11 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for producerInstanceId to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setPscConnectionId(String value)
public ServiceConnectionPolicy.PscConnection.Builder setPscConnectionId(String value)The PSC connection id of the PSC forwarding rule.
string psc_connection_id = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe pscConnectionId to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setPscConnectionIdBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setPscConnectionIdBytes(ByteString value)The PSC connection id of the PSC forwarding rule.
string psc_connection_id = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for pscConnectionId to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceConnectionPolicy.PscConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|
setSelectedSubnetwork(String value)
public ServiceConnectionPolicy.PscConnection.Builder setSelectedSubnetwork(String value)Output only. The URI of the subnetwork selected to allocate IP address for this connection.
string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selectedSubnetwork to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setSelectedSubnetworkBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setSelectedSubnetworkBytes(ByteString value)Output only. The URI of the subnetwork selected to allocate IP address for this connection.
string selected_subnetwork = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selectedSubnetwork to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setServiceClass(String value)
public ServiceConnectionPolicy.PscConnection.Builder setServiceClass(String value)Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe serviceClass to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setServiceClassBytes(ByteString value)
public ServiceConnectionPolicy.PscConnection.Builder setServiceClassBytes(ByteString value)Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
string service_class = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for serviceClass to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setState(ServiceConnectionPolicy.State value)
public ServiceConnectionPolicy.PscConnection.Builder setState(ServiceConnectionPolicy.State value)State of the PSC Connection
.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceConnectionPolicy.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setStateValue(int value)
public ServiceConnectionPolicy.PscConnection.Builder setStateValue(int value)State of the PSC Connection
.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.State state = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionPolicy.PscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ServiceConnectionPolicy.PscConnection.Builder |
|