Class ServiceConnectionMap.ConsumerPscConfig.Builder (0.15.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.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig

Static 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
Overrides

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
Overrides

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
Overrides

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;

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
Overrides

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.

clearState()

public ServiceConnectionMap.ConsumerPscConfig.Builder clearState()

Output only. Overall state of PSC Connections management for this consumer psc config.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4;

Returns
Type Description
ServiceConnectionMap.ConsumerPscConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

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.

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;

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;

Returns
Type Description
ByteString

The bytes for network.

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.

getState()

public ServiceConnectionMap.ConsumerPscConfig.State getState()

Output only. Overall state of PSC Connections management for this consumer psc config.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4;

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.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
Overrides

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;

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;

Parameter
Name Description
value ByteString

The bytes for network 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
Overrides

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.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4;

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.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig.State state = 4;

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
Overrides