Class DeleteLogMetricRequest.Builder (3.18.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteLogMetricRequest build()
Returns
Type Description
DeleteLogMetricRequest

buildPartial()

public DeleteLogMetricRequest buildPartial()
Returns
Type Description
DeleteLogMetricRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteLogMetricRequest getDefaultInstanceForType()
Returns
Type Description
DeleteLogMetricRequest

getDescriptorForType()

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

The bytes for metricName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteLogMetricRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The metricName to set.

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

The bytes for metricName to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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