Class GetLogMetricRequest.Builder (3.9.0)

public static final class GetLogMetricRequest.Builder extends GeneratedMessageV3.Builder<GetLogMetricRequest.Builder> implements GetLogMetricRequestOrBuilder

The parameters to GetLogMetric.

Protobuf type google.logging.v2.GetLogMetricRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetLogMetricRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

build()

public GetLogMetricRequest build()
Returns
TypeDescription
GetLogMetricRequest

buildPartial()

public GetLogMetricRequest buildPartial()
Returns
TypeDescription
GetLogMetricRequest

clear()

public GetLogMetricRequest.Builder clear()
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetLogMetricRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

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
TypeDescription
GetLogMetricRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetLogMetricRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

clone()

public GetLogMetricRequest.Builder clone()
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

getDefaultInstanceForType()

public GetLogMetricRequest getDefaultInstanceForType()
Returns
TypeDescription
GetLogMetricRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for metricName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetLogMetricRequest other)

public GetLogMetricRequest.Builder mergeFrom(GetLogMetricRequest other)
Parameter
NameDescription
otherGetLogMetricRequest
Returns
TypeDescription
GetLogMetricRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetLogMetricRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetLogMetricRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetLogMetricRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetLogMetricRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

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
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetLogMetricRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetLogMetricRequest.Builder
Overrides