Class ServiceConnectionToken.Builder (0.14.1)

public static final class ServiceConnectionToken.Builder extends GeneratedMessageV3.Builder<ServiceConnectionToken.Builder> implements ServiceConnectionTokenOrBuilder

The ServiceConnectionToken resource. Next id: 9

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceConnectionToken build()
Returns
TypeDescription
ServiceConnectionToken

buildPartial()

public ServiceConnectionToken buildPartial()
Returns
TypeDescription
ServiceConnectionToken

clear()

public ServiceConnectionToken.Builder clear()
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

clearCreateTime()

public ServiceConnectionToken.Builder clearCreateTime()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
ServiceConnectionToken.Builder

clearDescription()

public ServiceConnectionToken.Builder clearDescription()

A description of this resource.

string description = 5;

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionToken.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

clearLabels()

public ServiceConnectionToken.Builder clearLabels()
Returns
TypeDescription
ServiceConnectionToken.Builder

clearName()

public ServiceConnectionToken.Builder clearName()

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

string name = 1;

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

clearNetwork()

public ServiceConnectionToken.Builder clearNetwork()

The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

clearUpdateTime()

public ServiceConnectionToken.Builder clearUpdateTime()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
ServiceConnectionToken.Builder

clone()

public ServiceConnectionToken.Builder clone()
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceConnectionToken getDefaultInstanceForType()
Returns
TypeDescription
ServiceConnectionToken

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} 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 ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} 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 network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Returns
TypeDescription
ByteString

The bytes for network.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public ServiceConnectionToken.Builder mergeCreateTime(Timestamp value)

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceConnectionToken.Builder

mergeFrom(ServiceConnectionToken other)

public ServiceConnectionToken.Builder mergeFrom(ServiceConnectionToken other)
Parameter
NameDescription
otherServiceConnectionToken
Returns
TypeDescription
ServiceConnectionToken.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionToken.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ServiceConnectionToken.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceConnectionToken.Builder

putAllLabels(Map<String,String> values)

public ServiceConnectionToken.Builder putAllLabels(Map<String,String> values)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ServiceConnectionToken.Builder

putLabels(String key, String value)

public ServiceConnectionToken.Builder putLabels(String key, String value)

User-defined labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ServiceConnectionToken.Builder

removeLabels(String key)

public ServiceConnectionToken.Builder removeLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
ServiceConnectionToken.Builder

setCreateTime(Timestamp value)

public ServiceConnectionToken.Builder setCreateTime(Timestamp value)

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceConnectionToken.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ServiceConnectionToken.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceConnectionToken.Builder

setDescription(String value)

public ServiceConnectionToken.Builder setDescription(String value)

A description of this resource.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ServiceConnectionToken.Builder setDescriptionBytes(ByteString value)

A description of this resource.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionToken.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

setName(String value)

public ServiceConnectionToken.Builder setName(String value)

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

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ServiceConnectionToken.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

setNetwork(String value)

public ServiceConnectionToken.Builder setNetwork(String value)

The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public ServiceConnectionToken.Builder setNetworkBytes(ByteString value)

The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
ServiceConnectionToken.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ServiceConnectionToken.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceConnectionToken.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ServiceConnectionToken.Builder setUpdateTime(Timestamp value)

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceConnectionToken.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ServiceConnectionToken.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceConnectionToken.Builder