public static final class GetLogMetricRequest.Builder extends GeneratedMessageV3.Builder<GetLogMetricRequest.Builder> implements GetLogMetricRequestOrBuilder
The parameters to GetLogMetric.
Protobuf type google.logging.v2.GetLogMetricRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GetLogMetricRequest.BuilderImplements
GetLogMetricRequestOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetLogMetricRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GetLogMetricRequest.Builder |
build()
public GetLogMetricRequest build()
Type | Description |
GetLogMetricRequest |
buildPartial()
public GetLogMetricRequest buildPartial()
Type | Description |
GetLogMetricRequest |
clear()
public GetLogMetricRequest.Builder clear()
Type | Description |
GetLogMetricRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public GetLogMetricRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
GetLogMetricRequest.Builder |
clearMetricName()
public GetLogMetricRequest.Builder clearMetricName()
Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
GetLogMetricRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GetLogMetricRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
GetLogMetricRequest.Builder |
clone()
public GetLogMetricRequest.Builder clone()
Type | Description |
GetLogMetricRequest.Builder |
getDefaultInstanceForType()
public GetLogMetricRequest getDefaultInstanceForType()
Type | Description |
GetLogMetricRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMetricName()
public String getMetricName()
Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The metricName. |
getMetricNameBytes()
public ByteString getMetricNameBytes()
Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for metricName. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(GetLogMetricRequest other)
public GetLogMetricRequest.Builder mergeFrom(GetLogMetricRequest other)
Name | Description |
other | GetLogMetricRequest |
Type | Description |
GetLogMetricRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetLogMetricRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
GetLogMetricRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public GetLogMetricRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
GetLogMetricRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetLogMetricRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GetLogMetricRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GetLogMetricRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GetLogMetricRequest.Builder |
setMetricName(String value)
public GetLogMetricRequest.Builder setMetricName(String value)
Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The metricName to set. |
Type | Description |
GetLogMetricRequest.Builder | This builder for chaining. |
setMetricNameBytes(ByteString value)
public GetLogMetricRequest.Builder setMetricNameBytes(ByteString value)
Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for metricName to set. |
Type | Description |
GetLogMetricRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetLogMetricRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
GetLogMetricRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GetLogMetricRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GetLogMetricRequest.Builder |