Class GetServiceLevelObjectiveRequest.Builder (3.8.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetServiceLevelObjectiveRequest build()
Returns
TypeDescription
GetServiceLevelObjectiveRequest

buildPartial()

public GetServiceLevelObjectiveRequest buildPartial()
Returns
TypeDescription
GetServiceLevelObjectiveRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetServiceLevelObjectiveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder
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
TypeDescription
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetServiceLevelObjectiveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder
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
TypeDescription
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

clone()

public GetServiceLevelObjectiveRequest.Builder clone()
Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder
Overrides

getDefaultInstanceForType()

public GetServiceLevelObjectiveRequest getDefaultInstanceForType()
Returns
TypeDescription
GetServiceLevelObjectiveRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

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
TypeDescription
ServiceLevelObjective.View

The view.

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
TypeDescription
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetServiceLevelObjectiveRequest other)

public GetServiceLevelObjectiveRequest.Builder mergeFrom(GetServiceLevelObjectiveRequest other)
Parameter
NameDescription
otherGetServiceLevelObjectiveRequest
Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetServiceLevelObjectiveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GetServiceLevelObjectiveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder
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
NameDescription
valueServiceLevelObjective.View

The view to set.

Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

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
NameDescription
valueint

The enum numeric value on the wire for view to set.

Returns
TypeDescription
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.