Class CreatePolicyTagRequest.Builder (1.49.0)

public static final class CreatePolicyTagRequest.Builder extends GeneratedMessageV3.Builder<CreatePolicyTagRequest.Builder> implements CreatePolicyTagRequestOrBuilder

Request message for CreatePolicyTag.

Protobuf type google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreatePolicyTagRequest build()
Returns
Type Description
CreatePolicyTagRequest

buildPartial()

public CreatePolicyTagRequest buildPartial()
Returns
Type Description
CreatePolicyTagRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreatePolicyTagRequest.Builder clearParent()

Required. Resource name of the taxonomy that the policy tag will belong to.

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

Returns
Type Description
CreatePolicyTagRequest.Builder

This builder for chaining.

clearPolicyTag()

public CreatePolicyTagRequest.Builder clearPolicyTag()

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Returns
Type Description
CreatePolicyTagRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreatePolicyTagRequest getDefaultInstanceForType()
Returns
Type Description
CreatePolicyTagRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Resource name of the taxonomy that the policy tag will belong to.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the taxonomy that the policy tag will belong to.

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

Returns
Type Description
ByteString

The bytes for parent.

getPolicyTag()

public PolicyTag getPolicyTag()

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Returns
Type Description
PolicyTag

The policyTag.

getPolicyTagBuilder()

public PolicyTag.Builder getPolicyTagBuilder()

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Returns
Type Description
PolicyTag.Builder

getPolicyTagOrBuilder()

public PolicyTagOrBuilder getPolicyTagOrBuilder()

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Returns
Type Description
PolicyTagOrBuilder

hasPolicyTag()

public boolean hasPolicyTag()

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Returns
Type Description
boolean

Whether the policyTag field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreatePolicyTagRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicyTag(PolicyTag value)

public CreatePolicyTagRequest.Builder mergePolicyTag(PolicyTag value)

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Parameter
Name Description
value PolicyTag
Returns
Type Description
CreatePolicyTagRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreatePolicyTagRequest.Builder setParent(String value)

Required. Resource name of the taxonomy that the policy tag will belong to.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreatePolicyTagRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreatePolicyTagRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the taxonomy that the policy tag will belong to.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreatePolicyTagRequest.Builder

This builder for chaining.

setPolicyTag(PolicyTag value)

public CreatePolicyTagRequest.Builder setPolicyTag(PolicyTag value)

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Parameter
Name Description
value PolicyTag
Returns
Type Description
CreatePolicyTagRequest.Builder

setPolicyTag(PolicyTag.Builder builderForValue)

public CreatePolicyTagRequest.Builder setPolicyTag(PolicyTag.Builder builderForValue)

The policy tag to be created.

.google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2;

Parameter
Name Description
builderForValue PolicyTag.Builder
Returns
Type Description
CreatePolicyTagRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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