- 1.61.0 (latest)
- 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 ServiceConnectionMap.ConsumerPscConfig.Builder extends GeneratedMessageV3.Builder<ServiceConnectionMap.ConsumerPscConfig.Builder> implements ServiceConnectionMap.ConsumerPscConfigOrBuilder
Allow the producer to specify which consumers can connect to it.
Protobuf type
google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceConnectionMap.ConsumerPscConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionMap.ConsumerPscConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
build()
public ServiceConnectionMap.ConsumerPscConfig build()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig |
buildPartial()
public ServiceConnectionMap.ConsumerPscConfig buildPartial()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig |
clear()
public ServiceConnectionMap.ConsumerPscConfig.Builder clear()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
clearConsumerInstanceProject()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearConsumerInstanceProject()
Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/<project_id_or_number>' Eg. 'projects/consumer-project' or 'projects/1234'
string consumer_instance_project = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clearDisableGlobalAccess()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearDisableGlobalAccess()
This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
bool disable_global_access = 3;
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ServiceConnectionMap.ConsumerPscConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
clearIpVersion()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearIpVersion()
The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 9;
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clearNetwork()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearNetwork()
The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
string network = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceConnectionMap.ConsumerPscConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
clearProducerInstanceId() (deprecated)
public ServiceConnectionMap.ConsumerPscConfig.Builder clearProducerInstanceId()
Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=363
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 5 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clearProducerInstanceMetadata()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearProducerInstanceMetadata()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
clearProject()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearProject()
The consumer project where PSC connections are allowed to be created in.
string project = 1;
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clearServiceAttachmentIpAddressMap()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearServiceAttachmentIpAddressMap()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
clearState()
public ServiceConnectionMap.ConsumerPscConfig.Builder clearState()
Output only. Overall state of PSC Connections management for this consumer psc config.
.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
clone()
public ServiceConnectionMap.ConsumerPscConfig.Builder clone()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
containsProducerInstanceMetadata(String key)
public boolean containsProducerInstanceMetadata(String key)
Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 8 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
containsServiceAttachmentIpAddressMap(String key)
public boolean containsServiceAttachmentIpAddressMap(String key)
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getConsumerInstanceProject()
public String getConsumerInstanceProject()
Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/<project_id_or_number>' Eg. 'projects/consumer-project' or 'projects/1234'
string consumer_instance_project = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The consumerInstanceProject. |
getConsumerInstanceProjectBytes()
public ByteString getConsumerInstanceProjectBytes()
Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/<project_id_or_number>' Eg. 'projects/consumer-project' or 'projects/1234'
string consumer_instance_project = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for consumerInstanceProject. |
getDefaultInstanceForType()
public ServiceConnectionMap.ConsumerPscConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisableGlobalAccess()
public boolean getDisableGlobalAccess()
This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
bool disable_global_access = 3;
Returns | |
---|---|
Type | Description |
boolean |
The disableGlobalAccess. |
getIpVersion()
public IPVersion getIpVersion()
The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 9;
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 = 9;
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> |
getMutableServiceAttachmentIpAddressMap() (deprecated)
public Map<String,String> getMutableServiceAttachmentIpAddressMap()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getNetwork()
public String getNetwork()
The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
string network = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The network. |
getNetworkBytes()
public ByteString getNetworkBytes()
The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
string network = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for network. |
getProducerInstanceId() (deprecated)
public String getProducerInstanceId()
Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=363
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 5 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
String |
The producerInstanceId. |
getProducerInstanceIdBytes() (deprecated)
public ByteString getProducerInstanceIdBytes()
Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=363
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 5 [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 = 8 [(.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 = 8 [(.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 = 8 [(.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 = 8 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getProject()
public String getProject()
The consumer project where PSC connections are allowed to be created in.
string project = 1;
Returns | |
---|---|
Type | Description |
String |
The project. |
getProjectBytes()
public ByteString getProjectBytes()
The consumer project where PSC connections are allowed to be created in.
string project = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for project. |
getServiceAttachmentIpAddressMap() (deprecated)
public Map<String,String> getServiceAttachmentIpAddressMap()
Use #getServiceAttachmentIpAddressMapMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getServiceAttachmentIpAddressMapCount()
public int getServiceAttachmentIpAddressMapCount()
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getServiceAttachmentIpAddressMapMap()
public Map<String,String> getServiceAttachmentIpAddressMapMap()
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getServiceAttachmentIpAddressMapOrDefault(String key, String defaultValue)
public String getServiceAttachmentIpAddressMapOrDefault(String key, String defaultValue)
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getServiceAttachmentIpAddressMapOrThrow(String key)
public String getServiceAttachmentIpAddressMapOrThrow(String key)
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getState()
public ServiceConnectionMap.ConsumerPscConfig.State getState()
Output only. Overall state of PSC Connections management for this consumer psc config.
.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.State |
The state. |
getStateValue()
public int getStateValue()
Output only. Overall state of PSC Connections management for this consumer psc config.
.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for state. |
hasIpVersion()
public boolean hasIpVersion()
The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 9;
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 |
mergeFrom(ServiceConnectionMap.ConsumerPscConfig other)
public ServiceConnectionMap.ConsumerPscConfig.Builder mergeFrom(ServiceConnectionMap.ConsumerPscConfig other)
Parameter | |
---|---|
Name | Description |
other |
ServiceConnectionMap.ConsumerPscConfig |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceConnectionMap.ConsumerPscConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ServiceConnectionMap.ConsumerPscConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionMap.ConsumerPscConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
putAllProducerInstanceMetadata(Map<String,String> values)
public ServiceConnectionMap.ConsumerPscConfig.Builder putAllProducerInstanceMetadata(Map<String,String> values)
Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 8 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
putAllServiceAttachmentIpAddressMap(Map<String,String> values)
public ServiceConnectionMap.ConsumerPscConfig.Builder putAllServiceAttachmentIpAddressMap(Map<String,String> values)
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
putProducerInstanceMetadata(String key, String value)
public ServiceConnectionMap.ConsumerPscConfig.Builder putProducerInstanceMetadata(String key, String value)
Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 8 [(.google.api.field_behavior) = IMMUTABLE];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
putServiceAttachmentIpAddressMap(String key, String value)
public ServiceConnectionMap.ConsumerPscConfig.Builder putServiceAttachmentIpAddressMap(String key, String value)
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
removeProducerInstanceMetadata(String key)
public ServiceConnectionMap.ConsumerPscConfig.Builder removeProducerInstanceMetadata(String key)
Immutable. An immutable map for the producer instance metadata.
map<string, string> producer_instance_metadata = 8 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
removeServiceAttachmentIpAddressMap(String key)
public ServiceConnectionMap.ConsumerPscConfig.Builder removeServiceAttachmentIpAddressMap(String key)
Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.
map<string, string> service_attachment_ip_address_map = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
setConsumerInstanceProject(String value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setConsumerInstanceProject(String value)
Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/<project_id_or_number>' Eg. 'projects/consumer-project' or 'projects/1234'
string consumer_instance_project = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The consumerInstanceProject to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setConsumerInstanceProjectBytes(ByteString value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setConsumerInstanceProjectBytes(ByteString value)
Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/<project_id_or_number>' Eg. 'projects/consumer-project' or 'projects/1234'
string consumer_instance_project = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for consumerInstanceProject to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setDisableGlobalAccess(boolean value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setDisableGlobalAccess(boolean value)
This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
bool disable_global_access = 3;
Parameter | |
---|---|
Name | Description |
value |
boolean The disableGlobalAccess to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
setIpVersion(IPVersion value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setIpVersion(IPVersion value)
The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 9;
Parameter | |
---|---|
Name | Description |
value |
IPVersion The ipVersion to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setIpVersionValue(int value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setIpVersionValue(int value)
The requested IP version for the PSC connection.
optional .google.cloud.networkconnectivity.v1.IPVersion ip_version = 9;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for ipVersion to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setNetwork(String value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setNetwork(String value)
The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
string network = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The network to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setNetworkBytes(ByteString value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setNetworkBytes(ByteString value)
The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
string network = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for network to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setProducerInstanceId(String value) (deprecated)
public ServiceConnectionMap.ConsumerPscConfig.Builder setProducerInstanceId(String value)
Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=363
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 5 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
String The producerInstanceId to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setProducerInstanceIdBytes(ByteString value) (deprecated)
public ServiceConnectionMap.ConsumerPscConfig.Builder setProducerInstanceIdBytes(ByteString value)
Deprecated. google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.producer_instance_id is deprecated. See google/cloud/networkconnectivity/v1/cross_network_automation.proto;l=363
Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
string producer_instance_id = 5 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for producerInstanceId to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setProject(String value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setProject(String value)
The consumer project where PSC connections are allowed to be created in.
string project = 1;
Parameter | |
---|---|
Name | Description |
value |
String The project to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setProjectBytes(ByteString value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setProjectBytes(ByteString value)
The consumer project where PSC connections are allowed to be created in.
string project = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for project to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
setState(ServiceConnectionMap.ConsumerPscConfig.State value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setState(ServiceConnectionMap.ConsumerPscConfig.State value)
Output only. Overall state of PSC Connections management for this consumer psc config.
.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ServiceConnectionMap.ConsumerPscConfig.State The state to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setStateValue(int value)
public ServiceConnectionMap.ConsumerPscConfig.Builder setStateValue(int value)
Output only. Overall state of PSC Connections management for this consumer psc config.
.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionMap.ConsumerPscConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ServiceConnectionMap.ConsumerPscConfig.Builder |