Class GetNamespacedTagValueRequest.Builder (1.23.0)

public static final class GetNamespacedTagValueRequest.Builder extends GeneratedMessageV3.Builder<GetNamespacedTagValueRequest.Builder> implements GetNamespacedTagValueRequestOrBuilder

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

Protobuf type google.cloud.resourcemanager.v3.GetNamespacedTagValueRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNamespacedTagValueRequest build()
Returns
TypeDescription
GetNamespacedTagValueRequest

buildPartial()

public GetNamespacedTagValueRequest buildPartial()
Returns
TypeDescription
GetNamespacedTagValueRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetNamespacedTagValueRequest.Builder clearName()

Required. A namespaced tag value name in the following format:

{parentId}/{tagKeyShort}/{tagValueShort}

Examples:

  • 42/foo/abc for a value with short name "abc" under the key with short name "foo" under the organization with ID 42
  • r2-d2/bar/xyz for a value with short name "xyz" under the key with short name "bar" under the project with ID "r2-d2"

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

Returns
TypeDescription
GetNamespacedTagValueRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetNamespacedTagValueRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNamespacedTagValueRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. A namespaced tag value name in the following format:

{parentId}/{tagKeyShort}/{tagValueShort}

Examples:

  • 42/foo/abc for a value with short name "abc" under the key with short name "foo" under the organization with ID 42
  • r2-d2/bar/xyz for a value with short name "xyz" under the key with short name "bar" under the project with ID "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 value name in the following format:

{parentId}/{tagKeyShort}/{tagValueShort}

Examples:

  • 42/foo/abc for a value with short name "abc" under the key with short name "foo" under the organization with ID 42
  • r2-d2/bar/xyz for a value with short name "xyz" under the key with short name "bar" under the project with ID "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(GetNamespacedTagValueRequest other)

public GetNamespacedTagValueRequest.Builder mergeFrom(GetNamespacedTagValueRequest other)
Parameter
NameDescription
otherGetNamespacedTagValueRequest
Returns
TypeDescription
GetNamespacedTagValueRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetNamespacedTagValueRequest.Builder setName(String value)

Required. A namespaced tag value name in the following format:

{parentId}/{tagKeyShort}/{tagValueShort}

Examples:

  • 42/foo/abc for a value with short name "abc" under the key with short name "foo" under the organization with ID 42
  • r2-d2/bar/xyz for a value with short name "xyz" under the key with short name "bar" under the project with ID "r2-d2"

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetNamespacedTagValueRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetNamespacedTagValueRequest.Builder setNameBytes(ByteString value)

Required. A namespaced tag value name in the following format:

{parentId}/{tagKeyShort}/{tagValueShort}

Examples:

  • 42/foo/abc for a value with short name "abc" under the key with short name "foo" under the organization with ID 42
  • r2-d2/bar/xyz for a value with short name "xyz" under the key with short name "bar" under the project with ID "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
GetNamespacedTagValueRequest.Builder

This builder for chaining.

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

public GetNamespacedTagValueRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetNamespacedTagValueRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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