public static final class GetServiceLevelObjectiveRequest.Builder extends GeneratedMessageV3.Builder<GetServiceLevelObjectiveRequest.Builder> implements GetServiceLevelObjectiveRequestOrBuilder
The GetServiceLevelObjective
request.
Protobuf type google.monitoring.v3.GetServiceLevelObjectiveRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetServiceLevelObjectiveRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetServiceLevelObjectiveRequest build()
Returns
buildPartial()
public GetServiceLevelObjectiveRequest buildPartial()
Returns
clear()
public GetServiceLevelObjectiveRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetServiceLevelObjectiveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public GetServiceLevelObjectiveRequest.Builder clearName()
Required. Resource name of the ServiceLevelObjective
to get. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GetServiceLevelObjectiveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearView()
public GetServiceLevelObjectiveRequest.Builder clearView()
View of the ServiceLevelObjective
to return. If DEFAULT
, return the
ServiceLevelObjective
as originally defined. If EXPLICIT
and the
ServiceLevelObjective
is defined in terms of a BasicSli
, replace the
BasicSli
with a RequestBasedSli
spelling out how the SLI is computed.
.google.monitoring.v3.ServiceLevelObjective.View view = 2;
Returns
clone()
public GetServiceLevelObjectiveRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetServiceLevelObjectiveRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Required. Resource name of the ServiceLevelObjective
to get. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. Resource name of the ServiceLevelObjective
to get. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getView()
public ServiceLevelObjective.View getView()
View of the ServiceLevelObjective
to return. If DEFAULT
, return the
ServiceLevelObjective
as originally defined. If EXPLICIT
and the
ServiceLevelObjective
is defined in terms of a BasicSli
, replace the
BasicSli
with a RequestBasedSli
spelling out how the SLI is computed.
.google.monitoring.v3.ServiceLevelObjective.View view = 2;
Returns
getViewValue()
public int getViewValue()
View of the ServiceLevelObjective
to return. If DEFAULT
, return the
ServiceLevelObjective
as originally defined. If EXPLICIT
and the
ServiceLevelObjective
is defined in terms of a BasicSli
, replace the
BasicSli
with a RequestBasedSli
spelling out how the SLI is computed.
.google.monitoring.v3.ServiceLevelObjective.View view = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for view.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GetServiceLevelObjectiveRequest other)
public GetServiceLevelObjectiveRequest.Builder mergeFrom(GetServiceLevelObjectiveRequest other)
Parameter
Returns
public GetServiceLevelObjectiveRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetServiceLevelObjectiveRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetServiceLevelObjectiveRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetServiceLevelObjectiveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public GetServiceLevelObjectiveRequest.Builder setName(String value)
Required. Resource name of the ServiceLevelObjective
to get. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public GetServiceLevelObjectiveRequest.Builder setNameBytes(ByteString value)
Required. Resource name of the ServiceLevelObjective
to get. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetServiceLevelObjectiveRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GetServiceLevelObjectiveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setView(ServiceLevelObjective.View value)
public GetServiceLevelObjectiveRequest.Builder setView(ServiceLevelObjective.View value)
View of the ServiceLevelObjective
to return. If DEFAULT
, return the
ServiceLevelObjective
as originally defined. If EXPLICIT
and the
ServiceLevelObjective
is defined in terms of a BasicSli
, replace the
BasicSli
with a RequestBasedSli
spelling out how the SLI is computed.
.google.monitoring.v3.ServiceLevelObjective.View view = 2;
Parameter
Returns
setViewValue(int value)
public GetServiceLevelObjectiveRequest.Builder setViewValue(int value)
View of the ServiceLevelObjective
to return. If DEFAULT
, return the
ServiceLevelObjective
as originally defined. If EXPLICIT
and the
ServiceLevelObjective
is defined in terms of a BasicSli
, replace the
BasicSli
with a RequestBasedSli
spelling out how the SLI is computed.
.google.monitoring.v3.ServiceLevelObjective.View view = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for view to set.
|
Returns