Class CreatePolicyTagRequest.Builder (1.40.0)

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

Request message for CreatePolicyTag.

Protobuf type google.cloud.datacatalog.v1.CreatePolicyTagRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreatePolicyTagRequest build()
Returns
TypeDescription
CreatePolicyTagRequest

buildPartial()

public CreatePolicyTagRequest buildPartial()
Returns
TypeDescription
CreatePolicyTagRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearPolicyTag()

public CreatePolicyTagRequest.Builder clearPolicyTag()

The policy tag to create.

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

Returns
TypeDescription
CreatePolicyTagRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreatePolicyTagRequest getDefaultInstanceForType()
Returns
TypeDescription
CreatePolicyTagRequest

getDescriptorForType()

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

The bytes for parent.

getPolicyTag()

public PolicyTag getPolicyTag()

The policy tag to create.

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

Returns
TypeDescription
PolicyTag

The policyTag.

getPolicyTagBuilder()

public PolicyTag.Builder getPolicyTagBuilder()

The policy tag to create.

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

Returns
TypeDescription
PolicyTag.Builder

getPolicyTagOrBuilder()

public PolicyTagOrBuilder getPolicyTagOrBuilder()

The policy tag to create.

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

Returns
TypeDescription
PolicyTagOrBuilder

hasPolicyTag()

public boolean hasPolicyTag()

The policy tag to create.

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

Returns
TypeDescription
boolean

Whether the policyTag field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreatePolicyTagRequest other)

public CreatePolicyTagRequest.Builder mergeFrom(CreatePolicyTagRequest other)
Parameter
NameDescription
otherCreatePolicyTagRequest
Returns
TypeDescription
CreatePolicyTagRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicyTag(PolicyTag value)

public CreatePolicyTagRequest.Builder mergePolicyTag(PolicyTag value)

The policy tag to create.

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

Parameter
NameDescription
valuePolicyTag
Returns
TypeDescription
CreatePolicyTagRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
CreatePolicyTagRequest.Builder

This builder for chaining.

setPolicyTag(PolicyTag value)

public CreatePolicyTagRequest.Builder setPolicyTag(PolicyTag value)

The policy tag to create.

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

Parameter
NameDescription
valuePolicyTag
Returns
TypeDescription
CreatePolicyTagRequest.Builder

setPolicyTag(PolicyTag.Builder builderForValue)

public CreatePolicyTagRequest.Builder setPolicyTag(PolicyTag.Builder builderForValue)

The policy tag to create.

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

Parameter
NameDescription
builderForValuePolicyTag.Builder
Returns
TypeDescription
CreatePolicyTagRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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