Class UpdateLogMetricRequest.Builder (3.13.4)

public static final class UpdateLogMetricRequest.Builder extends GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder> implements UpdateLogMetricRequestOrBuilder

The parameters to UpdateLogMetric.

Protobuf type google.logging.v2.UpdateLogMetricRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateLogMetricRequest build()
Returns
TypeDescription
UpdateLogMetricRequest

buildPartial()

public UpdateLogMetricRequest buildPartial()
Returns
TypeDescription
UpdateLogMetricRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetric()

public UpdateLogMetricRequest.Builder clearMetric()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateLogMetricRequest.Builder

clearMetricName()

public UpdateLogMetricRequest.Builder clearMetricName()

Required. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

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

Returns
TypeDescription
UpdateLogMetricRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public UpdateLogMetricRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateLogMetricRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetric()

public LogMetric getMetric()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogMetric

The metric.

getMetricBuilder()

public LogMetric.Builder getMetricBuilder()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogMetric.Builder

getMetricName()

public String getMetricName()

Required. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

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 update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

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

Returns
TypeDescription
ByteString

The bytes for metricName.

getMetricOrBuilder()

public LogMetricOrBuilder getMetricOrBuilder()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogMetricOrBuilder

hasMetric()

public boolean hasMetric()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the metric field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateLogMetricRequest other)

public UpdateLogMetricRequest.Builder mergeFrom(UpdateLogMetricRequest other)
Parameter
NameDescription
otherUpdateLogMetricRequest
Returns
TypeDescription
UpdateLogMetricRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetric(LogMetric value)

public UpdateLogMetricRequest.Builder mergeMetric(LogMetric value)

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogMetric
Returns
TypeDescription
UpdateLogMetricRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetric(LogMetric value)

public UpdateLogMetricRequest.Builder setMetric(LogMetric value)

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogMetric
Returns
TypeDescription
UpdateLogMetricRequest.Builder

setMetric(LogMetric.Builder builderForValue)

public UpdateLogMetricRequest.Builder setMetric(LogMetric.Builder builderForValue)

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueLogMetric.Builder
Returns
TypeDescription
UpdateLogMetricRequest.Builder

setMetricName(String value)

public UpdateLogMetricRequest.Builder setMetricName(String value)

Required. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

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

Parameter
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
UpdateLogMetricRequest.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public UpdateLogMetricRequest.Builder setMetricNameBytes(ByteString value)

Required. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

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

Parameter
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
UpdateLogMetricRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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