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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Service.BasicService.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Service.BasicService build()
buildPartial()
public Service.BasicService buildPartial()
clear()
public Service.BasicService.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Service.BasicService.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Service.BasicService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearServiceLabels()
public Service.BasicService.Builder clearServiceLabels()
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;
clone()
public Service.BasicService.Builder clone()
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
|
getDefaultInstanceForType()
public Service.BasicService getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableServiceLabels() (deprecated)
public Map<String,String> getMutableServiceLabels()
Use alternate mutation accessors instead.
getServiceLabels() (deprecated)
public Map<String,String> getServiceLabels()
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;
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;
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()
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()
Overrides
mergeFrom(Service.BasicService other)
public Service.BasicService.Builder mergeFrom(Service.BasicService other)
public Service.BasicService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Service.BasicService.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Service.BasicService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Service.BasicService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Service.BasicService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Service.BasicService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides