Class DeleteLogMetricRequest.Builder (3.8.0)

public static final class DeleteLogMetricRequest.Builder extends GeneratedMessageV3.Builder<DeleteLogMetricRequest.Builder> implements DeleteLogMetricRequestOrBuilder

The parameters to DeleteLogMetric.

Protobuf type google.logging.v2.DeleteLogMetricRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteLogMetricRequest build()
Returns
TypeDescription
DeleteLogMetricRequest

buildPartial()

public DeleteLogMetricRequest buildPartial()
Returns
TypeDescription
DeleteLogMetricRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetricName()

public DeleteLogMetricRequest.Builder clearMetricName()

Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
DeleteLogMetricRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteLogMetricRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteLogMetricRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetricName()

public String getMetricName()

Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for metricName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteLogMetricRequest other)

public DeleteLogMetricRequest.Builder mergeFrom(DeleteLogMetricRequest other)
Parameter
NameDescription
otherDeleteLogMetricRequest
Returns
TypeDescription
DeleteLogMetricRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetricName(String value)

public DeleteLogMetricRequest.Builder setMetricName(String value)

Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
DeleteLogMetricRequest.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public DeleteLogMetricRequest.Builder setMetricNameBytes(ByteString value)

Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
DeleteLogMetricRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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