Class Service.BasicService.Builder (3.47.0)

public static final class Service.BasicService.Builder extends GeneratedMessageV3.Builder<Service.BasicService.Builder> implements Service.BasicServiceOrBuilder

A well-known service type, defined by its service type and service labels. Documentation and examples here.

Protobuf type google.monitoring.v3.Service.BasicService

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Service.BasicService build()
Returns
Type Description
Service.BasicService

buildPartial()

public Service.BasicService buildPartial()
Returns
Type Description
Service.BasicService

clear()

public Service.BasicService.Builder clear()
Returns
Type Description
Service.BasicService.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceLabels()

public Service.BasicService.Builder clearServiceLabels()
Returns
Type Description
Service.BasicService.Builder

clearServiceType()

public Service.BasicService.Builder clearServiceType()

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.

string service_type = 1;

Returns
Type Description
Service.BasicService.Builder

This builder for chaining.

clone()

public Service.BasicService.Builder clone()
Returns
Type Description
Service.BasicService.Builder
Overrides

containsServiceLabels(String key)

public boolean containsServiceLabels(String key)

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public Service.BasicService getDefaultInstanceForType()
Returns
Type Description
Service.BasicService

getDescriptorForType()

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

getMutableServiceLabels() (deprecated)

public Map<String,String> getMutableServiceLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getServiceLabels() (deprecated)

public Map<String,String> getServiceLabels()
Returns
Type Description
Map<String,String>

getServiceLabelsCount()

public int getServiceLabelsCount()

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Returns
Type Description
int

getServiceLabelsMap()

public Map<String,String> getServiceLabelsMap()

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Returns
Type Description
Map<String,String>

getServiceLabelsOrDefault(String key, String defaultValue)

public String getServiceLabelsOrDefault(String key, String defaultValue)

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getServiceLabelsOrThrow(String key)

public String getServiceLabelsOrThrow(String key)

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getServiceType()

public String getServiceType()

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.

string service_type = 1;

Returns
Type Description
String

The serviceType.

getServiceTypeBytes()

public ByteString getServiceTypeBytes()

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.

string service_type = 1;

Returns
Type Description
ByteString

The bytes for serviceType.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Service.BasicService other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.BasicService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.BasicService.Builder
Overrides

putAllServiceLabels(Map<String,String> values)

public Service.BasicService.Builder putAllServiceLabels(Map<String,String> values)

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

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

putServiceLabels(String key, String value)

public Service.BasicService.Builder putServiceLabels(String key, String value)

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
Service.BasicService.Builder

removeServiceLabels(String key)

public Service.BasicService.Builder removeServiceLabels(String key)

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

map<string, string> service_labels = 2;

Parameter
Name Description
key String
Returns
Type Description
Service.BasicService.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Service.BasicService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.BasicService.Builder
Overrides

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

public Service.BasicService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Service.BasicService.Builder
Overrides

setServiceType(String value)

public Service.BasicService.Builder setServiceType(String value)

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.

string service_type = 1;

Parameter
Name Description
value String

The serviceType to set.

Returns
Type Description
Service.BasicService.Builder

This builder for chaining.

setServiceTypeBytes(ByteString value)

public Service.BasicService.Builder setServiceTypeBytes(ByteString value)

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.

string service_type = 1;

Parameter
Name Description
value ByteString

The bytes for serviceType to set.

Returns
Type Description
Service.BasicService.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.BasicService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.BasicService.Builder
Overrides