Class SerializedPolicyTag

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag
All Implemented Interfaces:
SerializedPolicyTagOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SerializedPolicyTag extends com.google.protobuf.GeneratedMessage implements SerializedPolicyTagOrBuilder
 Message representing one policy tag when exported as a nested proto.
 
Protobuf type google.cloud.datacatalog.v1beta1.SerializedPolicyTag
See Also:
  • Field Details

    • POLICY_TAG_FIELD_NUMBER

      public static final int POLICY_TAG_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • CHILD_POLICY_TAGS_FIELD_NUMBER

      public static final int CHILD_POLICY_TAGS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SerializedPolicyTag parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SerializedPolicyTag parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SerializedPolicyTag parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SerializedPolicyTag parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SerializedPolicyTag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SerializedPolicyTag parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SerializedPolicyTag parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SerializedPolicyTag parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SerializedPolicyTag parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SerializedPolicyTag parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SerializedPolicyTag parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SerializedPolicyTag parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static SerializedPolicyTag.Builder newBuilder()
    • newBuilder

      public static SerializedPolicyTag.Builder newBuilder(SerializedPolicyTag prototype)
    • toBuilder

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

      protected SerializedPolicyTag.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SerializedPolicyTag getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SerializedPolicyTag> parser()
    • getParserForType

      public com.google.protobuf.Parser<SerializedPolicyTag> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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