Class GetServiceLevelObjectiveRequest.Builder (3.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetServiceLevelObjectiveRequest build()
Returns
Type Description
GetServiceLevelObjectiveRequest

buildPartial()

public GetServiceLevelObjectiveRequest buildPartial()
Returns
Type Description
GetServiceLevelObjectiveRequest

clear()

public GetServiceLevelObjectiveRequest.Builder clear()
Returns
Type Description
GetServiceLevelObjectiveRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetServiceLevelObjectiveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetServiceLevelObjectiveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.

clone()

public GetServiceLevelObjectiveRequest.Builder clone()
Returns
Type Description
GetServiceLevelObjectiveRequest.Builder
Overrides

getDefaultInstanceForType()

public GetServiceLevelObjectiveRequest getDefaultInstanceForType()
Returns
Type Description
GetServiceLevelObjectiveRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetServiceLevelObjectiveRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetServiceLevelObjectiveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetServiceLevelObjectiveRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetServiceLevelObjectiveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value ServiceLevelObjective.View

The view to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
GetServiceLevelObjectiveRequest.Builder

This builder for chaining.