Class ServiceConnectionToken.Builder (0.16.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionToken.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

build()

public ServiceConnectionToken build()
Returns
Type Description
ServiceConnectionToken

buildPartial()

public ServiceConnectionToken buildPartial()
Returns
Type Description
ServiceConnectionToken

clear()

public ServiceConnectionToken.Builder clear()
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

clearCreateTime()

public ServiceConnectionToken.Builder clearCreateTime()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
ServiceConnectionToken.Builder

clearDescription()

public ServiceConnectionToken.Builder clearDescription()

A description of this resource.

string description = 5;

Returns
Type Description
ServiceConnectionToken.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionToken.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

clearLabels()

public ServiceConnectionToken.Builder clearLabels()
Returns
Type Description
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
Type Description
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
Type Description
ServiceConnectionToken.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

clearUpdateTime()

public ServiceConnectionToken.Builder clearUpdateTime()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
ServiceConnectionToken.Builder

clone()

public ServiceConnectionToken.Builder clone()
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceConnectionToken getDefaultInstanceForType()
Returns
Type Description
ServiceConnectionToken

getDescription()

public String getDescription()

A description of this resource.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description of this resource.

string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined labels.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for network.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceConnectionToken was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the ServiceConnectionToken was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
ServiceConnectionToken.Builder

mergeFrom(ServiceConnectionToken other)

public ServiceConnectionToken.Builder mergeFrom(ServiceConnectionToken other)
Parameter
Name Description
other ServiceConnectionToken
Returns
Type Description
ServiceConnectionToken.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceConnectionToken.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionToken.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceConnectionToken.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionToken.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
ServiceConnectionToken.Builder

putAllLabels(Map<String,String> values)

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

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ServiceConnectionToken.Builder

putLabels(String key, String value)

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

User-defined labels.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
ServiceConnectionToken.Builder

removeLabels(String key)

public ServiceConnectionToken.Builder removeLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
ServiceConnectionToken.Builder

setDescription(String value)

public ServiceConnectionToken.Builder setDescription(String value)

A description of this resource.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ServiceConnectionToken.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ServiceConnectionToken.Builder setDescriptionBytes(ByteString value)

A description of this resource.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ServiceConnectionToken.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionToken.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value String

The network to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceConnectionToken.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionToken.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
ServiceConnectionToken.Builder