Interface TagOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Tag, Tag.Builder

@Generated public interface TagOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates the inheritance status of a tag value attached to the given resource.
    string key = 1;
    com.google.protobuf.ByteString
    string key = 1;
    The source of the tag.
    com.google.protobuf.ByteString
    The source of the tag.
    The value part of the tag.
    com.google.protobuf.ByteString
    The value part of the tag.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getKey

      String getKey()
      string key = 1;
      Returns:
      The key.
    • getKeyBytes

      com.google.protobuf.ByteString getKeyBytes()
      string key = 1;
      Returns:
      The bytes for key.
    • getValue

      String getValue()
       The value part of the tag.
       
      string value = 2;
      Returns:
      The value.
    • getValueBytes

      com.google.protobuf.ByteString getValueBytes()
       The value part of the tag.
       
      string value = 2;
      Returns:
      The bytes for value.
    • getSource

      String getSource()
       The source of the tag. According to
       https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels,
       tags can be created only at the project or organization level. Tags can be
       inherited from different project as well not just the current project where
       the database resource is present.
       Format:
       "projects/{PROJECT_ID}",
       "projects/{PROJECT_NUMBER}",
       "organizations/{ORGANIZATION_ID}"
       
      string source = 3;
      Returns:
      The source.
    • getSourceBytes

      com.google.protobuf.ByteString getSourceBytes()
       The source of the tag. According to
       https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels,
       tags can be created only at the project or organization level. Tags can be
       inherited from different project as well not just the current project where
       the database resource is present.
       Format:
       "projects/{PROJECT_ID}",
       "projects/{PROJECT_NUMBER}",
       "organizations/{ORGANIZATION_ID}"
       
      string source = 3;
      Returns:
      The bytes for source.
    • getInherited

      boolean getInherited()
       Indicates the inheritance status of a tag value
       attached to the given resource. If the tag value is inherited from one of
       the resource's ancestors, inherited will be true. If false, then the tag
       value is directly attached to the resource.
       
      bool inherited = 4;
      Returns:
      The inherited.