public static final class UpdateLogMetricRequest.Builder extends GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder> implements UpdateLogMetricRequestOrBuilder
The parameters to UpdateLogMetric.Protobuf type
google.logging.v2.UpdateLogMetricRequest
Modifier and Type | Method and Description |
---|---|
UpdateLogMetricRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
UpdateLogMetricRequest |
build() |
UpdateLogMetricRequest |
buildPartial() |
UpdateLogMetricRequest.Builder |
clear() |
UpdateLogMetricRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
UpdateLogMetricRequest.Builder |
clearMetric()
The updated metric.
|
UpdateLogMetricRequest.Builder |
clearMetricName()
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.
|
UpdateLogMetricRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
UpdateLogMetricRequest.Builder |
clone() |
UpdateLogMetricRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
LogMetric |
getMetric()
The updated metric.
|
LogMetric.Builder |
getMetricBuilder()
The updated metric.
|
java.lang.String |
getMetricName()
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.
|
ByteString |
getMetricNameBytes()
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.
|
LogMetricOrBuilder |
getMetricOrBuilder()
The updated metric.
|
boolean |
hasMetric()
The updated metric.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UpdateLogMetricRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
UpdateLogMetricRequest.Builder |
mergeFrom(Message other) |
UpdateLogMetricRequest.Builder |
mergeFrom(UpdateLogMetricRequest other) |
UpdateLogMetricRequest.Builder |
mergeMetric(LogMetric value)
The updated metric.
|
UpdateLogMetricRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
UpdateLogMetricRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
UpdateLogMetricRequest.Builder |
setMetric(LogMetric.Builder builderForValue)
The updated metric.
|
UpdateLogMetricRequest.Builder |
setMetric(LogMetric value)
The updated metric.
|
UpdateLogMetricRequest.Builder |
setMetricName(java.lang.String value)
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.
|
UpdateLogMetricRequest.Builder |
setMetricNameBytes(ByteString value)
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.
|
UpdateLogMetricRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
UpdateLogMetricRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public UpdateLogMetricRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public UpdateLogMetricRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public UpdateLogMetricRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder mergeFrom(UpdateLogMetricRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public UpdateLogMetricRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<UpdateLogMetricRequest.Builder>
java.io.IOException
public java.lang.String getMetricName()
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;
getMetricName
in interface UpdateLogMetricRequestOrBuilder
public ByteString getMetricNameBytes()
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;
getMetricNameBytes
in interface UpdateLogMetricRequestOrBuilder
public UpdateLogMetricRequest.Builder setMetricName(java.lang.String value)
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;
public UpdateLogMetricRequest.Builder clearMetricName()
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;
public UpdateLogMetricRequest.Builder setMetricNameBytes(ByteString value)
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;
public boolean hasMetric()
The updated metric.
.google.logging.v2.LogMetric metric = 2;
hasMetric
in interface UpdateLogMetricRequestOrBuilder
public LogMetric getMetric()
The updated metric.
.google.logging.v2.LogMetric metric = 2;
getMetric
in interface UpdateLogMetricRequestOrBuilder
public UpdateLogMetricRequest.Builder setMetric(LogMetric value)
The updated metric.
.google.logging.v2.LogMetric metric = 2;
public UpdateLogMetricRequest.Builder setMetric(LogMetric.Builder builderForValue)
The updated metric.
.google.logging.v2.LogMetric metric = 2;
public UpdateLogMetricRequest.Builder mergeMetric(LogMetric value)
The updated metric.
.google.logging.v2.LogMetric metric = 2;
public UpdateLogMetricRequest.Builder clearMetric()
The updated metric.
.google.logging.v2.LogMetric metric = 2;
public LogMetric.Builder getMetricBuilder()
The updated metric.
.google.logging.v2.LogMetric metric = 2;
public LogMetricOrBuilder getMetricOrBuilder()
The updated metric.
.google.logging.v2.LogMetric metric = 2;
getMetricOrBuilder
in interface UpdateLogMetricRequestOrBuilder
public final UpdateLogMetricRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>
public final UpdateLogMetricRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<UpdateLogMetricRequest.Builder>