public static final class CreateLogMetricRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder> implements CreateLogMetricRequestOrBuilder
The parameters to CreateLogMetric.Protobuf type
google.logging.v2.CreateLogMetricRequest| Modifier and Type | Method and Description |
|---|---|
CreateLogMetricRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
CreateLogMetricRequest |
build() |
CreateLogMetricRequest |
buildPartial() |
CreateLogMetricRequest.Builder |
clear() |
CreateLogMetricRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreateLogMetricRequest.Builder |
clearMetric()
The new logs-based metric, which must not have an identifier that
already exists.
|
CreateLogMetricRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreateLogMetricRequest.Builder |
clearParent()
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
|
CreateLogMetricRequest.Builder |
clone() |
CreateLogMetricRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LogMetric |
getMetric()
The new logs-based metric, which must not have an identifier that
already exists.
|
LogMetric.Builder |
getMetricBuilder()
The new logs-based metric, which must not have an identifier that
already exists.
|
LogMetricOrBuilder |
getMetricOrBuilder()
The new logs-based metric, which must not have an identifier that
already exists.
|
java.lang.String |
getParent()
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
|
ParentNameOneof |
getParentAsParentNameOneof() |
com.google.protobuf.ByteString |
getParentBytes()
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
|
boolean |
hasMetric()
The new logs-based metric, which must not have an identifier that
already exists.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreateLogMetricRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreateLogMetricRequest.Builder |
mergeFrom(CreateLogMetricRequest other) |
CreateLogMetricRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreateLogMetricRequest.Builder |
mergeMetric(LogMetric value)
The new logs-based metric, which must not have an identifier that
already exists.
|
CreateLogMetricRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreateLogMetricRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
CreateLogMetricRequest.Builder |
setMetric(LogMetric.Builder builderForValue)
The new logs-based metric, which must not have an identifier that
already exists.
|
CreateLogMetricRequest.Builder |
setMetric(LogMetric value)
The new logs-based metric, which must not have an identifier that
already exists.
|
CreateLogMetricRequest.Builder |
setParent(java.lang.String value)
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
|
CreateLogMetricRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
|
CreateLogMetricRequest.Builder |
setParentWithParentNameOneof(ParentNameOneof value) |
CreateLogMetricRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
CreateLogMetricRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreateLogMetricRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreateLogMetricRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreateLogMetricRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder mergeFrom(CreateLogMetricRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public CreateLogMetricRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateLogMetricRequest.Builder>java.io.IOExceptionpublic java.lang.String getParent()
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
string parent = 1;getParent in interface CreateLogMetricRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
string parent = 1;getParentBytes in interface CreateLogMetricRequestOrBuilderpublic CreateLogMetricRequest.Builder setParent(java.lang.String value)
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
string parent = 1;public CreateLogMetricRequest.Builder clearParent()
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
string parent = 1;public CreateLogMetricRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
string parent = 1;public boolean hasMetric()
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;hasMetric in interface CreateLogMetricRequestOrBuilderpublic LogMetric getMetric()
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;getMetric in interface CreateLogMetricRequestOrBuilderpublic CreateLogMetricRequest.Builder setMetric(LogMetric value)
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;public CreateLogMetricRequest.Builder setMetric(LogMetric.Builder builderForValue)
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;public CreateLogMetricRequest.Builder mergeMetric(LogMetric value)
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;public CreateLogMetricRequest.Builder clearMetric()
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;public LogMetric.Builder getMetricBuilder()
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;public LogMetricOrBuilder getMetricOrBuilder()
The new logs-based metric, which must not have an identifier that already exists.
.google.logging.v2.LogMetric metric = 2;getMetricOrBuilder in interface CreateLogMetricRequestOrBuilderpublic final CreateLogMetricRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public final CreateLogMetricRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateLogMetricRequest.Builder>public final CreateLogMetricRequest.Builder setParentWithParentNameOneof(ParentNameOneof value)
public final ParentNameOneof getParentAsParentNameOneof()