Class SerializedPolicyTag.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder
- All Implemented Interfaces:
SerializedPolicyTagOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SerializedPolicyTag
public static final class SerializedPolicyTag.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
implements SerializedPolicyTagOrBuilder
Message representing one policy tag when exported as a nested proto.Protobuf type
google.cloud.datacatalog.v1beta1.SerializedPolicyTag-
Method Summary
Modifier and TypeMethodDescriptionaddAllChildPolicyTags(Iterable<? extends SerializedPolicyTag> values) Children of the policy tag if any.addChildPolicyTags(int index, SerializedPolicyTag value) Children of the policy tag if any.addChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Children of the policy tag if any.Children of the policy tag if any.addChildPolicyTags(SerializedPolicyTag.Builder builderForValue) Children of the policy tag if any.Children of the policy tag if any.addChildPolicyTagsBuilder(int index) Children of the policy tag if any.build()clear()Children of the policy tag if any.Description of the serialized policy tag.Required.Resource name of the policy tag.getChildPolicyTags(int index) Children of the policy tag if any.getChildPolicyTagsBuilder(int index) Children of the policy tag if any.Children of the policy tag if any.intChildren of the policy tag if any.Children of the policy tag if any.getChildPolicyTagsOrBuilder(int index) Children of the policy tag if any.List<? extends SerializedPolicyTagOrBuilder>Children of the policy tag if any.Description of the serialized policy tag.com.google.protobuf.ByteStringDescription of the serialized policy tag.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Resource name of the policy tag.com.google.protobuf.ByteStringResource name of the policy tag.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SerializedPolicyTag other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeChildPolicyTags(int index) Children of the policy tag if any.setChildPolicyTags(int index, SerializedPolicyTag value) Children of the policy tag if any.setChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Children of the policy tag if any.setDescription(String value) Description of the serialized policy tag.setDescriptionBytes(com.google.protobuf.ByteString value) Description of the serialized policy tag.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setPolicyTag(String value) Resource name of the policy tag.setPolicyTagBytes(com.google.protobuf.ByteString value) Resource name of the policy tag.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SerializedPolicyTag.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
-
mergeFrom
public SerializedPolicyTag.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SerializedPolicyTag.Builder>- Throws:
IOException
-
getPolicyTag
Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies.
string policy_tag = 1;- Specified by:
getPolicyTagin interfaceSerializedPolicyTagOrBuilder- Returns:
- The policyTag.
-
getPolicyTagBytes
public com.google.protobuf.ByteString getPolicyTagBytes()Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies.
string policy_tag = 1;- Specified by:
getPolicyTagBytesin interfaceSerializedPolicyTagOrBuilder- Returns:
- The bytes for policyTag.
-
setPolicyTag
Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies.
string policy_tag = 1;- Parameters:
value- The policyTag to set.- Returns:
- This builder for chaining.
-
clearPolicyTag
Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies.
string policy_tag = 1;- Returns:
- This builder for chaining.
-
setPolicyTagBytes
Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies.
string policy_tag = 1;- Parameters:
value- The bytes for policyTag to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceSerializedPolicyTagOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceSerializedPolicyTagOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 3;- Specified by:
getDescriptionin interfaceSerializedPolicyTagOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 3;- Specified by:
getDescriptionBytesin interfaceSerializedPolicyTagOrBuilder- Returns:
- The bytes for description.
-
setDescription
Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getChildPolicyTagsList
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;- Specified by:
getChildPolicyTagsListin interfaceSerializedPolicyTagOrBuilder
-
getChildPolicyTagsCount
public int getChildPolicyTagsCount()Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;- Specified by:
getChildPolicyTagsCountin interfaceSerializedPolicyTagOrBuilder
-
getChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;- Specified by:
getChildPolicyTagsin interfaceSerializedPolicyTagOrBuilder
-
setChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
setChildPolicyTags
public SerializedPolicyTag.Builder setChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
addChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
addChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
addChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
addChildPolicyTags
public SerializedPolicyTag.Builder addChildPolicyTags(int index, SerializedPolicyTag.Builder builderForValue) Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
addAllChildPolicyTags
public SerializedPolicyTag.Builder addAllChildPolicyTags(Iterable<? extends SerializedPolicyTag> values) Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
clearChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
removeChildPolicyTags
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
getChildPolicyTagsBuilder
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
getChildPolicyTagsOrBuilder
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;- Specified by:
getChildPolicyTagsOrBuilderin interfaceSerializedPolicyTagOrBuilder
-
getChildPolicyTagsOrBuilderList
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;- Specified by:
getChildPolicyTagsOrBuilderListin interfaceSerializedPolicyTagOrBuilder
-
addChildPolicyTagsBuilder
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
addChildPolicyTagsBuilder
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; -
getChildPolicyTagsBuilderList
Children of the policy tag if any.
repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
-