Class DeleteMetricDescriptorRequest.Builder (3.54.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteMetricDescriptorRequest build()
Returns
Type Description
DeleteMetricDescriptorRequest

buildPartial()

public DeleteMetricDescriptorRequest buildPartial()
Returns
Type Description
DeleteMetricDescriptorRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteMetricDescriptorRequest getDefaultInstanceForType()
Returns
Type Description
DeleteMetricDescriptorRequest

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

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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