Class GetNamespacedTagKeyRequest.Builder (1.56.0)

public static final class GetNamespacedTagKeyRequest.Builder extends GeneratedMessageV3.Builder<GetNamespacedTagKeyRequest.Builder> implements GetNamespacedTagKeyRequestOrBuilder

The request message for getting a TagKey by its namespaced name.

Protobuf type google.cloud.resourcemanager.v3.GetNamespacedTagKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNamespacedTagKeyRequest build()
Returns
Type Description
GetNamespacedTagKeyRequest

buildPartial()

public GetNamespacedTagKeyRequest buildPartial()
Returns
Type Description
GetNamespacedTagKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetNamespacedTagKeyRequest.Builder clearName()

Required. A namespaced tag key name in the format {parentId}/{tagKeyShort}, such as 42/foo for a key with short name "foo" under the organization with ID 42 or r2-d2/bar for a key with short name "bar" under the project r2-d2.

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

Returns
Type Description
GetNamespacedTagKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetNamespacedTagKeyRequest getDefaultInstanceForType()
Returns
Type Description
GetNamespacedTagKeyRequest

getDescriptorForType()

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

getName()

public String getName()

Required. A namespaced tag key name in the format {parentId}/{tagKeyShort}, such as 42/foo for a key with short name "foo" under the organization with ID 42 or r2-d2/bar for a key with short name "bar" under the project r2-d2.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A namespaced tag key name in the format {parentId}/{tagKeyShort}, such as 42/foo for a key with short name "foo" under the organization with ID 42 or r2-d2/bar for a key with short name "bar" under the project r2-d2.

string name = 1 [(.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(GetNamespacedTagKeyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetNamespacedTagKeyRequest.Builder setName(String value)

Required. A namespaced tag key name in the format {parentId}/{tagKeyShort}, such as 42/foo for a key with short name "foo" under the organization with ID 42 or r2-d2/bar for a key with short name "bar" under the project r2-d2.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetNamespacedTagKeyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetNamespacedTagKeyRequest.Builder setNameBytes(ByteString value)

Required. A namespaced tag key name in the format {parentId}/{tagKeyShort}, such as 42/foo for a key with short name "foo" under the organization with ID 42 or r2-d2/bar for a key with short name "bar" under the project r2-d2.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetNamespacedTagKeyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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