Send feedback
Class SerializedPolicyTag.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.5.4 keyboard_arrow_down
public static final class SerializedPolicyTag . Builder extends GeneratedMessageV3 . Builder<SerializedPolicyTag . Builder > implements SerializedPolicyTagOrBuilder
A nested protocol buffer that represents a policy tag and all its
descendants.
Protobuf type google.cloud.datacatalog.v1.SerializedPolicyTag
Methods
public SerializedPolicyTag . Builder addAllChildPolicyTags ( Iterable <? extends SerializedPolicyTag > values )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Name Description values Iterable <? extends com.google.cloud.datacatalog.v1.SerializedPolicyTag >
Returns
public SerializedPolicyTag . Builder addChildPolicyTags ( SerializedPolicyTag value )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
public SerializedPolicyTag . Builder addChildPolicyTags ( SerializedPolicyTag . Builder builderForValue )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
public SerializedPolicyTag . Builder addChildPolicyTags ( int index , SerializedPolicyTag value )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameters
Returns
public SerializedPolicyTag . Builder addChildPolicyTags ( int index , SerializedPolicyTag . Builder builderForValue )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameters
Returns
public SerializedPolicyTag . Builder addChildPolicyTagsBuilder ()
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Returns
public SerializedPolicyTag . Builder addChildPolicyTagsBuilder ( int index )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SerializedPolicyTag . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public SerializedPolicyTag build ()
Returns
buildPartial()
public SerializedPolicyTag buildPartial ()
Returns
clear()
public SerializedPolicyTag . Builder clear ()
Returns
Overrides
public SerializedPolicyTag . Builder clearChildPolicyTags ()
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Returns
clearDescription()
public SerializedPolicyTag . Builder clearDescription ()
Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.
string description = 3;
Returns
clearDisplayName()
public SerializedPolicyTag . Builder clearDisplayName ()
Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public SerializedPolicyTag . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SerializedPolicyTag . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearPolicyTag()
public SerializedPolicyTag . Builder clearPolicyTag ()
Resource name of the policy tag.
This field is ignored when calling `ImportTaxonomies`.
string policy_tag = 1;
Returns
clone()
public SerializedPolicyTag . Builder clone ()
Returns
Overrides
public SerializedPolicyTag getChildPolicyTags ( int index )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
public SerializedPolicyTag . Builder getChildPolicyTagsBuilder ( int index )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
public List<SerializedPolicyTag . Builder > getChildPolicyTagsBuilderList ()
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Returns
public int getChildPolicyTagsCount ()
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Returns
public List<SerializedPolicyTag> getChildPolicyTagsList ()
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Returns
public SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder ( int index )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
public List <? extends SerializedPolicyTagOrBuilder > getChildPolicyTagsOrBuilderList ()
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Returns
Type Description List <? extends com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder >
getDefaultInstanceForType()
public SerializedPolicyTag getDefaultInstanceForType ()
Returns
getDescription()
public String getDescription ()
Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.
string description = 3;
Returns
Type Description String The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.
string description = 3;
Returns
Type Description ByteString The bytes for description.
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getDisplayName()
public String getDisplayName ()
Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description ByteString The bytes for displayName.
getPolicyTag()
public String getPolicyTag ()
Resource name of the policy tag.
This field is ignored when calling `ImportTaxonomies`.
string policy_tag = 1;
Returns
Type Description String The policyTag.
getPolicyTagBytes()
public ByteString getPolicyTagBytes ()
Resource name of the policy tag.
This field is ignored when calling `ImportTaxonomies`.
string policy_tag = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(SerializedPolicyTag other)
public SerializedPolicyTag . Builder mergeFrom ( SerializedPolicyTag other )
Parameter
Returns
public SerializedPolicyTag . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SerializedPolicyTag . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SerializedPolicyTag . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public SerializedPolicyTag . Builder removeChildPolicyTags ( int index )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameter
Returns
public SerializedPolicyTag . Builder setChildPolicyTags ( int index , SerializedPolicyTag value )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameters
Returns
public SerializedPolicyTag . Builder setChildPolicyTags ( int index , SerializedPolicyTag . Builder builderForValue )
Children of the policy tag, if any.
repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4;
Parameters
Returns
setDescription(String value)
public SerializedPolicyTag . Builder setDescription ( String value )
Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.
string description = 3;
Parameter
Name Description value String
The description to set.
Returns
setDescriptionBytes(ByteString value)
public SerializedPolicyTag . Builder setDescriptionBytes ( ByteString value )
Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.
string description = 3;
Parameter
Name Description value ByteString
The bytes for description to set.
Returns
setDisplayName(String value)
public SerializedPolicyTag . Builder setDisplayName ( String value )
Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The displayName to set.
Returns
setDisplayNameBytes(ByteString value)
public SerializedPolicyTag . Builder setDisplayNameBytes ( ByteString value )
Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value ByteString
The bytes for displayName to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SerializedPolicyTag . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setPolicyTag(String value)
public SerializedPolicyTag . Builder setPolicyTag ( String value )
Resource name of the policy tag.
This field is ignored when calling `ImportTaxonomies`.
string policy_tag = 1;
Parameter
Name Description value String
The policyTag to set.
Returns
setPolicyTagBytes(ByteString value)
public SerializedPolicyTag . Builder setPolicyTagBytes ( ByteString value )
Resource name of the policy tag.
This field is ignored when calling `ImportTaxonomies`.
string policy_tag = 1;
Parameter
Name Description value ByteString
The bytes for policyTag to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SerializedPolicyTag . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SerializedPolicyTag . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]