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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SerializedPolicyTag.Builder>
    • getDefaultInstanceForType

      public SerializedPolicyTag getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SerializedPolicyTag build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SerializedPolicyTag buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SerializedPolicyTag.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SerializedPolicyTag.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SerializedPolicyTag.Builder>
      Throws:
      IOException
    • getPolicyTag

      public String getPolicyTag()
       Resource name of the policy tag.
      
       This field will be ignored when calling ImportTaxonomies.
       
      string policy_tag = 1;
      Specified by:
      getPolicyTag in interface SerializedPolicyTagOrBuilder
      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:
      getPolicyTagBytes in interface SerializedPolicyTagOrBuilder
      Returns:
      The bytes for policyTag.
    • setPolicyTag

      public SerializedPolicyTag.Builder setPolicyTag(String value)
       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

      public SerializedPolicyTag.Builder 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

      public SerializedPolicyTag.Builder setPolicyTagBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getDisplayName in interface SerializedPolicyTagOrBuilder
      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:
      getDisplayNameBytes in interface SerializedPolicyTagOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public SerializedPolicyTag.Builder setDisplayName(String value)
       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

      public SerializedPolicyTag.Builder 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

      public SerializedPolicyTag.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getDescription in interface SerializedPolicyTagOrBuilder
      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:
      getDescriptionBytes in interface SerializedPolicyTagOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public SerializedPolicyTag.Builder setDescription(String value)
       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

      public SerializedPolicyTag.Builder 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

      public SerializedPolicyTag.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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

      public List<SerializedPolicyTag> getChildPolicyTagsList()
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
      Specified by:
      getChildPolicyTagsList in interface SerializedPolicyTagOrBuilder
    • getChildPolicyTagsCount

      public int getChildPolicyTagsCount()
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
      Specified by:
      getChildPolicyTagsCount in interface SerializedPolicyTagOrBuilder
    • getChildPolicyTags

      public SerializedPolicyTag getChildPolicyTags(int index)
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
      Specified by:
      getChildPolicyTags in interface SerializedPolicyTagOrBuilder
    • setChildPolicyTags

      public SerializedPolicyTag.Builder setChildPolicyTags(int index, SerializedPolicyTag value)
       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

      public SerializedPolicyTag.Builder addChildPolicyTags(SerializedPolicyTag value)
       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 value)
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
    • addChildPolicyTags

      public SerializedPolicyTag.Builder addChildPolicyTags(SerializedPolicyTag.Builder builderForValue)
       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

      public SerializedPolicyTag.Builder clearChildPolicyTags()
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
    • removeChildPolicyTags

      public SerializedPolicyTag.Builder removeChildPolicyTags(int index)
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
    • getChildPolicyTagsBuilder

      public SerializedPolicyTag.Builder getChildPolicyTagsBuilder(int index)
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
    • getChildPolicyTagsOrBuilder

      public SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder(int index)
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
      Specified by:
      getChildPolicyTagsOrBuilder in interface SerializedPolicyTagOrBuilder
    • getChildPolicyTagsOrBuilderList

      public List<? extends SerializedPolicyTagOrBuilder> getChildPolicyTagsOrBuilderList()
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
      Specified by:
      getChildPolicyTagsOrBuilderList in interface SerializedPolicyTagOrBuilder
    • addChildPolicyTagsBuilder

      public SerializedPolicyTag.Builder addChildPolicyTagsBuilder()
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
    • addChildPolicyTagsBuilder

      public SerializedPolicyTag.Builder addChildPolicyTagsBuilder(int index)
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;
    • getChildPolicyTagsBuilderList

      public List<SerializedPolicyTag.Builder> getChildPolicyTagsBuilderList()
       Children of the policy tag if any.
       
      repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4;