public static final class GetMetricDescriptorRequest.Builder extends GeneratedMessage.Builder<GetMetricDescriptorRequest.Builder> implements GetMetricDescriptorRequestOrBuilder The GetMetricDescriptor request.
Protobuf type google.monitoring.v3.GetMetricDescriptorRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GetMetricDescriptorRequest.BuilderImplements
GetMetricDescriptorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GetMetricDescriptorRequest build()| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest |
|
buildPartial()
public GetMetricDescriptorRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest |
|
clear()
public GetMetricDescriptorRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
|
clearName()
public GetMetricDescriptorRequest.Builder clearName()Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
An example value of [METRIC_ID] is
"compute.googleapis.com/instance/disk/read_bytes_count".
string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GetMetricDescriptorRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
An example value of [METRIC_ID] is
"compute.googleapis.com/instance/disk/read_bytes_count".
string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
An example value of [METRIC_ID] is
"compute.googleapis.com/instance/disk/read_bytes_count".
string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GetMetricDescriptorRequest other)
public GetMetricDescriptorRequest.Builder mergeFrom(GetMetricDescriptorRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GetMetricDescriptorRequest |
| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetMetricDescriptorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GetMetricDescriptorRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
|
setName(String value)
public GetMetricDescriptorRequest.Builder setName(String value)Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
An example value of [METRIC_ID] is
"compute.googleapis.com/instance/disk/read_bytes_count".
string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GetMetricDescriptorRequest.Builder setNameBytes(ByteString value)Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
An example value of [METRIC_ID] is
"compute.googleapis.com/instance/disk/read_bytes_count".
string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GetMetricDescriptorRequest.Builder |
This builder for chaining. |