Class ServiceConnectionMap.ConsumerPscConfig.Builder (0.14.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public ServiceConnectionMap.ConsumerPscConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The consumer project where PSC connections are allowed to be created in.

string project = 1;

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

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceConnectionMap.ConsumerPscConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionMap.ConsumerPscConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The disableGlobalAccess to set.

Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The network to set.

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

The bytes for network to set.

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

The project to set.

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

The bytes for project to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueServiceConnectionMap.ConsumerPscConfig.State

The state to set.

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

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

Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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