Class ServiceConnectionPolicy (0.14.1)

public final class ServiceConnectionPolicy extends GeneratedMessageV3 implements ServiceConnectionPolicyOrBuilder

The ServiceConnectionPolicy resource. Next id: 11

Protobuf type google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

INFRASTRUCTURE_FIELD_NUMBER

public static final int INFRASTRUCTURE_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_CONFIG_FIELD_NUMBER

public static final int PSC_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_CONNECTIONS_FIELD_NUMBER

public static final int PSC_CONNECTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_CLASS_FIELD_NUMBER

public static final int SERVICE_CLASS_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServiceConnectionPolicy getDefaultInstance()
Returns
TypeDescription
ServiceConnectionPolicy

getDescriptor()

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

newBuilder()

public static ServiceConnectionPolicy.Builder newBuilder()
Returns
TypeDescription
ServiceConnectionPolicy.Builder

newBuilder(ServiceConnectionPolicy prototype)

public static ServiceConnectionPolicy.Builder newBuilder(ServiceConnectionPolicy prototype)
Parameter
NameDescription
prototypeServiceConnectionPolicy
Returns
TypeDescription
ServiceConnectionPolicy.Builder

parseDelimitedFrom(InputStream input)

public static ServiceConnectionPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceConnectionPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ServiceConnectionPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ServiceConnectionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ServiceConnectionPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ServiceConnectionPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ServiceConnectionPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceConnectionPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ServiceConnectionPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServiceConnectionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ServiceConnectionPolicy> parser()
Returns
TypeDescription
Parser<ServiceConnectionPolicy>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceConnectionPolicy getDefaultInstanceForType()
Returns
TypeDescription
ServiceConnectionPolicy

getDescription()

public String getDescription()

A description of this resource.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description of this resource.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getInfrastructure()

public Infrastructure getInfrastructure()

Output only. The type of underlying resources used to create the connection.

.google.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

Returns
TypeDescription
Infrastructure

The infrastructure.

getInfrastructureValue()

public int getInfrastructureValue()

Output only. The type of underlying resources used to create the connection.

.google.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for infrastructure.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

public String getName()

Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

The resource path of the consumer network. Example:

  • projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The resource path of the consumer network. Example:

  • projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Returns
TypeDescription
ByteString

The bytes for network.

getParserForType()

public Parser<ServiceConnectionPolicy> getParserForType()
Returns
TypeDescription
Parser<ServiceConnectionPolicy>
Overrides

getPscConfig()

public ServiceConnectionPolicy.PscConfig getPscConfig()

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;

Returns
TypeDescription
ServiceConnectionPolicy.PscConfig

The pscConfig.

getPscConfigOrBuilder()

public ServiceConnectionPolicy.PscConfigOrBuilder getPscConfigOrBuilder()

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;

Returns
TypeDescription
ServiceConnectionPolicy.PscConfigOrBuilder

getPscConnections(int index)

public ServiceConnectionPolicy.PscConnection getPscConnections(int index)

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection

getPscConnectionsCount()

public int getPscConnectionsCount()

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Returns
TypeDescription
int

getPscConnectionsList()

public List<ServiceConnectionPolicy.PscConnection> getPscConnectionsList()

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Returns
TypeDescription
List<PscConnection>

getPscConnectionsOrBuilder(int index)

public ServiceConnectionPolicy.PscConnectionOrBuilder getPscConnectionsOrBuilder(int index)

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceConnectionPolicy.PscConnectionOrBuilder

getPscConnectionsOrBuilderList()

public List<? extends ServiceConnectionPolicy.PscConnectionOrBuilder> getPscConnectionsOrBuilderList()

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Returns
TypeDescription
List<? extends com.google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnectionOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceClass()

public String getServiceClass()

The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp. For example, gcp-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.

string service_class = 7;

Returns
TypeDescription
String

The serviceClass.

getServiceClassBytes()

public ByteString getServiceClassBytes()

The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp. For example, gcp-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.

string service_class = 7;

Returns
TypeDescription
ByteString

The bytes for serviceClass.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasPscConfig()

public boolean hasPscConfig()

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

.google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;

Returns
TypeDescription
boolean

Whether the pscConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ServiceConnectionPolicy.Builder newBuilderForType()
Returns
TypeDescription
ServiceConnectionPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ServiceConnectionPolicy.Builder toBuilder()
Returns
TypeDescription
ServiceConnectionPolicy.Builder

writeTo(CodedOutputStream output)

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