Class ServiceClass.Builder (0.14.1)

public static final class ServiceClass.Builder extends GeneratedMessageV3.Builder<ServiceClass.Builder> implements ServiceClassOrBuilder

The ServiceClass resource. Next id: 8

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

Static Methods

getDescriptor()

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

Methods

addAllServiceConnectionMaps(Iterable<String> values)

public ServiceClass.Builder addAllServiceConnectionMaps(Iterable<String> values)

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Parameter
NameDescription
valuesIterable<String>

The serviceConnectionMaps to add.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceConnectionMaps(String value)

public ServiceClass.Builder addServiceConnectionMaps(String value)

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Parameter
NameDescription
valueString

The serviceConnectionMaps to add.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

addServiceConnectionMapsBytes(ByteString value)

public ServiceClass.Builder addServiceConnectionMapsBytes(ByteString value)

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Parameter
NameDescription
valueByteString

The bytes of the serviceConnectionMaps to add.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

build()

public ServiceClass build()
Returns
TypeDescription
ServiceClass

buildPartial()

public ServiceClass buildPartial()
Returns
TypeDescription
ServiceClass

clear()

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

clearCreateTime()

public ServiceClass.Builder clearCreateTime()

Output only. Time when the ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
ServiceClass.Builder

clearDescription()

public ServiceClass.Builder clearDescription()

A description of this resource.

string description = 5;

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public ServiceClass.Builder clearName()

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

string name = 1;

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceClass()

public ServiceClass.Builder clearServiceClass()

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

string service_class = 7;

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

clearServiceConnectionMaps()

public ServiceClass.Builder clearServiceConnectionMaps()

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

clearUpdateTime()

public ServiceClass.Builder clearUpdateTime()

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
ServiceClass.Builder

clone()

public ServiceClass.Builder clone()
Returns
TypeDescription
ServiceClass.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 ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceClass getDefaultInstanceForType()
Returns
TypeDescription
ServiceClass

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 ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} 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 ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getServiceClass()

public String getServiceClass()

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

string service_class = 7;

Returns
TypeDescription
String

The serviceClass.

getServiceClassBytes()

public ByteString getServiceClassBytes()

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

string service_class = 7;

Returns
TypeDescription
ByteString

The bytes for serviceClass.

getServiceConnectionMaps(int index)

public String getServiceConnectionMaps(int index)

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The serviceConnectionMaps at the given index.

getServiceConnectionMapsBytes(int index)

public ByteString getServiceConnectionMapsBytes(int index)

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the serviceConnectionMaps at the given index.

getServiceConnectionMapsCount()

public int getServiceConnectionMapsCount()

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Returns
TypeDescription
int

The count of serviceConnectionMaps.

getServiceConnectionMapsList()

public ProtocolStringList getServiceConnectionMapsList()

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the serviceConnectionMaps.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the ServiceClass 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 ServiceClass 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 ServiceClass.Builder mergeCreateTime(Timestamp value)

Output only. Time when the ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceClass.Builder

mergeFrom(ServiceClass other)

public ServiceClass.Builder mergeFrom(ServiceClass other)
Parameter
NameDescription
otherServiceClass
Returns
TypeDescription
ServiceClass.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public ServiceClass.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceClass.Builder

putAllLabels(Map<String,String> values)

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

User-defined labels.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

User-defined labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ServiceClass.Builder

removeLabels(String key)

public ServiceClass.Builder removeLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
ServiceClass.Builder

setCreateTime(Timestamp value)

public ServiceClass.Builder setCreateTime(Timestamp value)

Output only. Time when the ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceClass.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ServiceClass.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the ServiceClass was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceClass.Builder

setDescription(String value)

public ServiceClass.Builder setDescription(String value)

A description of this resource.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ServiceClass.Builder setDescriptionBytes(ByteString value)

A description of this resource.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ServiceClass.Builder setName(String value)

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

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ServiceClass.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

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

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

setServiceClass(String value)

public ServiceClass.Builder setServiceClass(String value)

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

string service_class = 7;

Parameter
NameDescription
valueString

The serviceClass to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

setServiceClassBytes(ByteString value)

public ServiceClass.Builder setServiceClassBytes(ByteString value)

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.

string service_class = 7;

Parameter
NameDescription
valueByteString

The bytes for serviceClass to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

setServiceConnectionMaps(int index, String value)

public ServiceClass.Builder setServiceConnectionMaps(int index, String value)

Output only. URIs of all Service Connection Maps using this service class.

repeated string service_connection_maps = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The serviceConnectionMaps to set.

Returns
TypeDescription
ServiceClass.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ServiceClass.Builder setUpdateTime(Timestamp value)

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceClass.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ServiceClass.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the ServiceClass was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceClass.Builder