Class DeleteMetricDescriptorRequest.Builder (3.17.0)

public static final class DeleteMetricDescriptorRequest.Builder extends GeneratedMessageV3.Builder<DeleteMetricDescriptorRequest.Builder> implements DeleteMetricDescriptorRequestOrBuilder

The DeleteMetricDescriptor request.

Protobuf type google.monitoring.v3.DeleteMetricDescriptorRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteMetricDescriptorRequest build()
Returns
TypeDescription
DeleteMetricDescriptorRequest

buildPartial()

public DeleteMetricDescriptorRequest buildPartial()
Returns
TypeDescription
DeleteMetricDescriptorRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DeleteMetricDescriptorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeleteMetricDescriptorRequest.Builder
Overrides

clearName()

public DeleteMetricDescriptorRequest.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 of [METRIC_ID] is: "custom.googleapis.com/my_test_metric".

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

Returns
TypeDescription
DeleteMetricDescriptorRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteMetricDescriptorRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteMetricDescriptorRequest

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 of [METRIC_ID] is: "custom.googleapis.com/my_test_metric".

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 of [METRIC_ID] is: "custom.googleapis.com/my_test_metric".

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(DeleteMetricDescriptorRequest other)

public DeleteMetricDescriptorRequest.Builder mergeFrom(DeleteMetricDescriptorRequest other)
Parameter
NameDescription
otherDeleteMetricDescriptorRequest
Returns
TypeDescription
DeleteMetricDescriptorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DeleteMetricDescriptorRequest.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 of [METRIC_ID] is: "custom.googleapis.com/my_test_metric".

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteMetricDescriptorRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteMetricDescriptorRequest.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 of [METRIC_ID] is: "custom.googleapis.com/my_test_metric".

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteMetricDescriptorRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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