Class GetMetricDescriptorRequest.Builder (3.56.0)

public static final class GetMetricDescriptorRequest.Builder extends GeneratedMessageV3.Builder<GetMetricDescriptorRequest.Builder> implements GetMetricDescriptorRequestOrBuilder

The GetMetricDescriptor request.

Protobuf type google.monitoring.v3.GetMetricDescriptorRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetMetricDescriptorRequest build()
Returns
Type Description
GetMetricDescriptorRequest

buildPartial()

public GetMetricDescriptorRequest buildPartial()
Returns
Type Description
GetMetricDescriptorRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetMetricDescriptorRequest.Builder clearName()

Required. The metric descriptor on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]

An example value of [METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count".

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetMetricDescriptorRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetMetricDescriptorRequest getDefaultInstanceForType()
Returns
Type Description
GetMetricDescriptorRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The metric descriptor on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]

An example value of [METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count".

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The metric descriptor on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]

An example value of [METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count".

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetMetricDescriptorRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetMetricDescriptorRequest.Builder setName(String value)

Required. The metric descriptor on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]

An example value of [METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count".

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetMetricDescriptorRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetMetricDescriptorRequest.Builder setNameBytes(ByteString value)

Required. The metric descriptor on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]

An example value of [METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count".

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetMetricDescriptorRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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