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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeleteLogMetricRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DeleteLogMetricRequest build()
Returns
buildPartial()
public DeleteLogMetricRequest buildPartial()
Returns
clear()
public DeleteLogMetricRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public DeleteLogMetricRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public DeleteLogMetricRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public DeleteLogMetricRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public DeleteLogMetricRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DeleteLogMetricRequest other)
public DeleteLogMetricRequest.Builder mergeFrom(DeleteLogMetricRequest other)
Parameter
Returns
public DeleteLogMetricRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DeleteLogMetricRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeleteLogMetricRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DeleteLogMetricRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeleteLogMetricRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeleteLogMetricRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides