Class GetNamespacedTagKeyRequest.Builder (1.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNamespacedTagKeyRequest build()
Returns
TypeDescription
GetNamespacedTagKeyRequest

buildPartial()

public GetNamespacedTagKeyRequest buildPartial()
Returns
TypeDescription
GetNamespacedTagKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetNamespacedTagKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetNamespacedTagKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetNamespacedTagKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNamespacedTagKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetNamespacedTagKeyRequest other)

public GetNamespacedTagKeyRequest.Builder mergeFrom(GetNamespacedTagKeyRequest other)
Parameter
NameDescription
otherGetNamespacedTagKeyRequest
Returns
TypeDescription
GetNamespacedTagKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetNamespacedTagKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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