Class ServiceConnectionMap.ConsumerPscConfig (0.14.1)

public static final class ServiceConnectionMap.ConsumerPscConfig extends GeneratedMessageV3 implements ServiceConnectionMap.ConsumerPscConfigOrBuilder

Allow the producer to specify which consumers can connect to it.

Protobuf type google.events.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ServiceConnectionMap.ConsumerPscConfig

Static Fields

DISABLE_GLOBAL_ACCESS_FIELD_NUMBER

public static final int DISABLE_GLOBAL_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_FIELD_NUMBER

public static final int PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServiceConnectionMap.ConsumerPscConfig getDefaultInstance()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ServiceConnectionMap.ConsumerPscConfig.Builder newBuilder()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

newBuilder(ServiceConnectionMap.ConsumerPscConfig prototype)

public static ServiceConnectionMap.ConsumerPscConfig.Builder newBuilder(ServiceConnectionMap.ConsumerPscConfig prototype)
Parameter
NameDescription
prototypeServiceConnectionMap.ConsumerPscConfig
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

parseDelimitedFrom(InputStream input)

public static ServiceConnectionMap.ConsumerPscConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionMap.ConsumerPscConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceConnectionMap.ConsumerPscConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ServiceConnectionMap.ConsumerPscConfig> parser()
Returns
TypeDescription
Parser<ConsumerPscConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<ServiceConnectionMap.ConsumerPscConfig> getParserForType()
Returns
TypeDescription
Parser<ConsumerPscConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ServiceConnectionMap.ConsumerPscConfig.Builder newBuilderForType()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServiceConnectionMap.ConsumerPscConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ServiceConnectionMap.ConsumerPscConfig.Builder toBuilder()
Returns
TypeDescription
ServiceConnectionMap.ConsumerPscConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException