Class CreateTagBindingRequest.Builder (1.50.0)

public static final class CreateTagBindingRequest.Builder extends GeneratedMessageV3.Builder<CreateTagBindingRequest.Builder> implements CreateTagBindingRequestOrBuilder

The request message to create a TagBinding.

Protobuf type google.cloud.resourcemanager.v3.CreateTagBindingRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagBindingRequest build()
Returns
Type Description
CreateTagBindingRequest

buildPartial()

public CreateTagBindingRequest buildPartial()
Returns
Type Description
CreateTagBindingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTagBinding()

public CreateTagBindingRequest.Builder clearTagBinding()

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTagBindingRequest.Builder

clearValidateOnly()

public CreateTagBindingRequest.Builder clearValidateOnly()

Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateTagBindingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagBindingRequest getDefaultInstanceForType()
Returns
Type Description
CreateTagBindingRequest

getDescriptorForType()

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

getTagBinding()

public TagBinding getTagBinding()

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagBinding

The tagBinding.

getTagBindingBuilder()

public TagBinding.Builder getTagBindingBuilder()

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagBinding.Builder

getTagBindingOrBuilder()

public TagBindingOrBuilder getTagBindingOrBuilder()

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TagBindingOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasTagBinding()

public boolean hasTagBinding()

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tagBinding field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTagBindingRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTagBinding(TagBinding value)

public CreateTagBindingRequest.Builder mergeTagBinding(TagBinding value)

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagBinding
Returns
Type Description
CreateTagBindingRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTagBinding(TagBinding value)

public CreateTagBindingRequest.Builder setTagBinding(TagBinding value)

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TagBinding
Returns
Type Description
CreateTagBindingRequest.Builder

setTagBinding(TagBinding.Builder builderForValue)

public CreateTagBindingRequest.Builder setTagBinding(TagBinding.Builder builderForValue)

Required. The TagBinding to be created.

.google.cloud.resourcemanager.v3.TagBinding tag_binding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TagBinding.Builder
Returns
Type Description
CreateTagBindingRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateTagBindingRequest.Builder setValidateOnly(boolean value)

Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateTagBindingRequest.Builder

This builder for chaining.