Class GetMetricDescriptorRequest.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetMetricDescriptorRequest build()
Returns
TypeDescription
GetMetricDescriptorRequest

buildPartial()

public GetMetricDescriptorRequest buildPartial()
Returns
TypeDescription
GetMetricDescriptorRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetMetricDescriptorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetMetricDescriptorRequest.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public GetMetricDescriptorRequest getDefaultInstanceForType()
Returns
TypeDescription
GetMetricDescriptorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetMetricDescriptorRequest other)

public GetMetricDescriptorRequest.Builder mergeFrom(GetMetricDescriptorRequest other)
Parameter
NameDescription
otherGetMetricDescriptorRequest
Returns
TypeDescription
GetMetricDescriptorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetMetricDescriptorRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetMetricDescriptorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetMetricDescriptorRequest.Builder
Overrides