public static final class GetLogMetricRequest.Builder extends GeneratedMessage.Builder<GetLogMetricRequest.Builder> implements GetLogMetricRequestOrBuilderThe parameters to GetLogMetric.
Protobuf type google.logging.v2.GetLogMetricRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GetLogMetricRequest.BuilderImplements
GetLogMetricRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GetLogMetricRequest build()| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest |
|
buildPartial()
public GetLogMetricRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest |
|
clear()
public GetLogMetricRequest.Builder clear()| Returns | |
|---|---|
| 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GetLogMetricRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| 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) = { ... }
| Returns | |
|---|---|
| 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for metricName. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GetLogMetricRequest other)
public GetLogMetricRequest.Builder mergeFrom(GetLogMetricRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GetLogMetricRequest |
| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetLogMetricRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GetLogMetricRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe metricName to set. |
| Returns | |
|---|---|
| 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for metricName to set. |
| Returns | |
|---|---|
| Type | Description |
GetLogMetricRequest.Builder |
This builder for chaining. |