Class CreateTagBindingRequest.Builder (1.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTagBindingRequest build()
Returns
TypeDescription
CreateTagBindingRequest

buildPartial()

public CreateTagBindingRequest buildPartial()
Returns
TypeDescription
CreateTagBindingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTagBindingRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateTagBindingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTagBindingRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTagBindingRequest

getDescriptorForType()

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

Whether the tagBinding field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTagBindingRequest other)

public CreateTagBindingRequest.Builder mergeFrom(CreateTagBindingRequest other)
Parameter
NameDescription
otherCreateTagBindingRequest
Returns
TypeDescription
CreateTagBindingRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateTagBindingRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTagBinding
Returns
TypeDescription
CreateTagBindingRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public CreateTagBindingRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTagBinding
Returns
TypeDescription
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
NameDescription
builderForValueTagBinding.Builder
Returns
TypeDescription
CreateTagBindingRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateTagBindingRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateTagBindingRequest.Builder

This builder for chaining.