Class GetMonitoredResourceDescriptorRequest.Builder (3.49.0)

public static final class GetMonitoredResourceDescriptorRequest.Builder extends GeneratedMessageV3.Builder<GetMonitoredResourceDescriptorRequest.Builder> implements GetMonitoredResourceDescriptorRequestOrBuilder

The GetMonitoredResourceDescriptor request.

Protobuf type google.monitoring.v3.GetMonitoredResourceDescriptorRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetMonitoredResourceDescriptorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

build()

public GetMonitoredResourceDescriptorRequest build()
Returns
Type Description
GetMonitoredResourceDescriptorRequest

buildPartial()

public GetMonitoredResourceDescriptorRequest buildPartial()
Returns
Type Description
GetMonitoredResourceDescriptorRequest

clear()

public GetMonitoredResourceDescriptorRequest.Builder clear()
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetMonitoredResourceDescriptorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

clearName()

public GetMonitoredResourceDescriptorRequest.Builder clearName()

Required. The monitored resource descriptor to get. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]

The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetMonitoredResourceDescriptorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

clone()

public GetMonitoredResourceDescriptorRequest.Builder clone()
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

getDefaultInstanceForType()

public GetMonitoredResourceDescriptorRequest getDefaultInstanceForType()
Returns
Type Description
GetMonitoredResourceDescriptorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The monitored resource descriptor to get. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]

The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The monitored resource descriptor to get. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]

The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetMonitoredResourceDescriptorRequest other)

public GetMonitoredResourceDescriptorRequest.Builder mergeFrom(GetMonitoredResourceDescriptorRequest other)
Parameter
Name Description
other GetMonitoredResourceDescriptorRequest
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetMonitoredResourceDescriptorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetMonitoredResourceDescriptorRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetMonitoredResourceDescriptorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetMonitoredResourceDescriptorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

setName(String value)

public GetMonitoredResourceDescriptorRequest.Builder setName(String value)

Required. The monitored resource descriptor to get. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]

The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetMonitoredResourceDescriptorRequest.Builder setNameBytes(ByteString value)

Required. The monitored resource descriptor to get. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE]

The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetMonitoredResourceDescriptorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetMonitoredResourceDescriptorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetMonitoredResourceDescriptorRequest.Builder
Overrides