Class AttributeContext.Resource

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<AttributeContext.Resource,AttributeContext.Resource.Builder>
com.google.rpc.context.AttributeContext.Resource
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, AttributeContext.ResourceOrBuilder
Enclosing class:
AttributeContext

public static final class AttributeContext.Resource extends com.google.protobuf.GeneratedMessageLite<AttributeContext.Resource,AttributeContext.Resource.Builder> implements AttributeContext.ResourceOrBuilder
 This message defines core attributes for a resource. A resource is an
 addressable (named) entity provided by the destination service. For
 example, a file stored on a network storage service.
 
Protobuf type google.rpc.context.AttributeContext.Resource
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    This message defines core attributes for a resource.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
    boolean
    The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    Deprecated.
    int
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
    com.google.protobuf.Timestamp
    Output only.
     
    com.google.protobuf.Timestamp
    Output only.
    Mutable.
    com.google.protobuf.ByteString
    Mutable.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    Deprecated.
    int
    The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
    The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
    getLabelsOrDefault(String key, String defaultValue)
    The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
    The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
    Immutable.
    com.google.protobuf.ByteString
    Immutable.
    The stable identifier (name) of a resource on the `service`.
    com.google.protobuf.ByteString
    The stable identifier (name) of a resource on the `service`.
    The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.
    com.google.protobuf.ByteString
    The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.
    The type of the resource.
    com.google.protobuf.ByteString
    The type of the resource.
    The unique identifier of the resource.
    com.google.protobuf.ByteString
    The unique identifier of the resource.
    com.google.protobuf.Timestamp
    Output only.
    boolean
    Output only.
    boolean
    Output only.
    boolean
    Output only.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AttributeContext.Resource>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • getService

      public String getService()
       The name of the service that this resource belongs to, such as
       `pubsub.googleapis.com`. The service may be different from the DNS
       hostname that actually serves the request.
       
      string service = 1 [json_name = "service"];
      Specified by:
      getService in interface AttributeContext.ResourceOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       The name of the service that this resource belongs to, such as
       `pubsub.googleapis.com`. The service may be different from the DNS
       hostname that actually serves the request.
       
      string service = 1 [json_name = "service"];
      Specified by:
      getServiceBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for service.
    • getName

      public String getName()
       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as "//{resource.service}/{resource.name}".
       The differences between a resource name and a URI are:
      
       *   Resource name is a logical identifier, independent of network
       protocol and API version. For example,
       `//pubsub.googleapis.com/projects/123/topics/news-feed`.
       *   URI often includes protocol and version information, so it can
       be used directly by applications. For example,
       `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
      
       See https://cloud.google.com/apis/design/resource_names for details.
       
      string name = 2 [json_name = "name"];
      Specified by:
      getName in interface AttributeContext.ResourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The stable identifier (name) of a resource on the `service`. A resource
       can be logically identified as "//{resource.service}/{resource.name}".
       The differences between a resource name and a URI are:
      
       *   Resource name is a logical identifier, independent of network
       protocol and API version. For example,
       `//pubsub.googleapis.com/projects/123/topics/news-feed`.
       *   URI often includes protocol and version information, so it can
       be used directly by applications. For example,
       `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
      
       See https://cloud.google.com/apis/design/resource_names for details.
       
      string name = 2 [json_name = "name"];
      Specified by:
      getNameBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for name.
    • getType

      public String getType()
       The type of the resource. The syntax is platform-specific because
       different platforms define their resources differently.
      
       For Google APIs, the type format must be "{service}/{kind}", such as
       "pubsub.googleapis.com/Topic".
       
      string type = 3 [json_name = "type"];
      Specified by:
      getType in interface AttributeContext.ResourceOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of the resource. The syntax is platform-specific because
       different platforms define their resources differently.
      
       For Google APIs, the type format must be "{service}/{kind}", such as
       "pubsub.googleapis.com/Topic".
       
      string type = 3 [json_name = "type"];
      Specified by:
      getTypeBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for type.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AttributeContext.ResourceOrBuilder
       The labels or tags on the resource, such as AWS resource tags and
       Kubernetes resource labels.
       
      map<string, string> labels = 4 [json_name = "labels"];
      Specified by:
      getLabelsCount in interface AttributeContext.ResourceOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The labels or tags on the resource, such as AWS resource tags and
       Kubernetes resource labels.
       
      map<string, string> labels = 4 [json_name = "labels"];
      Specified by:
      containsLabels in interface AttributeContext.ResourceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AttributeContext.ResourceOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       The labels or tags on the resource, such as AWS resource tags and
       Kubernetes resource labels.
       
      map<string, string> labels = 4 [json_name = "labels"];
      Specified by:
      getLabelsMap in interface AttributeContext.ResourceOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The labels or tags on the resource, such as AWS resource tags and
       Kubernetes resource labels.
       
      map<string, string> labels = 4 [json_name = "labels"];
      Specified by:
      getLabelsOrDefault in interface AttributeContext.ResourceOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The labels or tags on the resource, such as AWS resource tags and
       Kubernetes resource labels.
       
      map<string, string> labels = 4 [json_name = "labels"];
      Specified by:
      getLabelsOrThrow in interface AttributeContext.ResourceOrBuilder
    • getUid

      public String getUid()
       The unique identifier of the resource. UID is unique in the time
       and space for this resource within the scope of the service. It is
       typically generated by the server on successful creation of a resource
       and must not be changed. UID is used to uniquely identify resources
       with resource name reuses. This should be a UUID4.
       
      string uid = 5 [json_name = "uid"];
      Specified by:
      getUid in interface AttributeContext.ResourceOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       The unique identifier of the resource. UID is unique in the time
       and space for this resource within the scope of the service. It is
       typically generated by the server on successful creation of a resource
       and must not be changed. UID is used to uniquely identify resources
       with resource name reuses. This should be a UUID4.
       
      string uid = 5 [json_name = "uid"];
      Specified by:
      getUidBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for uid.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: AttributeContext.ResourceOrBuilder
       Annotations is an unstructured key-value map stored with a resource that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 6 [json_name = "annotations"];
      Specified by:
      getAnnotationsCount in interface AttributeContext.ResourceOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Annotations is an unstructured key-value map stored with a resource that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 6 [json_name = "annotations"];
      Specified by:
      containsAnnotations in interface AttributeContext.ResourceOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface AttributeContext.ResourceOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Annotations is an unstructured key-value map stored with a resource that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 6 [json_name = "annotations"];
      Specified by:
      getAnnotationsMap in interface AttributeContext.ResourceOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Annotations is an unstructured key-value map stored with a resource that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 6 [json_name = "annotations"];
      Specified by:
      getAnnotationsOrDefault in interface AttributeContext.ResourceOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Annotations is an unstructured key-value map stored with a resource that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 6 [json_name = "annotations"];
      Specified by:
      getAnnotationsOrThrow in interface AttributeContext.ResourceOrBuilder
    • getDisplayName

      public String getDisplayName()
       Mutable. The display name set by clients. Must be <= 63 characters.
       
      string display_name = 7 [json_name = "displayName"];
      Specified by:
      getDisplayName in interface AttributeContext.ResourceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Mutable. The display name set by clients. Must be <= 63 characters.
       
      string display_name = 7 [json_name = "displayName"];
      Specified by:
      getDisplayNameBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for displayName.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created. This may
       be either the time creation was initiated or when it was completed.
       
      .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];
      Specified by:
      hasCreateTime in interface AttributeContext.ResourceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created. This may
       be either the time creation was initiated or when it was completed.
       
      .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];
      Specified by:
      getCreateTime in interface AttributeContext.ResourceOrBuilder
      Returns:
      The createTime.
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];
      Specified by:
      hasUpdateTime in interface AttributeContext.ResourceOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];
      Specified by:
      getUpdateTime in interface AttributeContext.ResourceOrBuilder
      Returns:
      The updateTime.
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. The timestamp when the resource was deleted.
       If the resource is not deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"];
      Specified by:
      hasDeleteTime in interface AttributeContext.ResourceOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. The timestamp when the resource was deleted.
       If the resource is not deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"];
      Specified by:
      getDeleteTime in interface AttributeContext.ResourceOrBuilder
      Returns:
      The deleteTime.
    • getEtag

      public String getEtag()
       Output only. An opaque value that uniquely identifies a version or
       generation of a resource. It can be used to confirm that the client
       and server agree on the ordering of a resource being written.
       
      string etag = 11 [json_name = "etag"];
      Specified by:
      getEtag in interface AttributeContext.ResourceOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. An opaque value that uniquely identifies a version or
       generation of a resource. It can be used to confirm that the client
       and server agree on the ordering of a resource being written.
       
      string etag = 11 [json_name = "etag"];
      Specified by:
      getEtagBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for etag.
    • getLocation

      public String getLocation()
       Immutable. The location of the resource. The location encoding is
       specific to the service provider, and new encoding may be introduced
       as the service evolves.
      
       For Google Cloud products, the encoding is what is used by Google Cloud
       APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
       semantics of `location` is identical to the
       `cloud.googleapis.com/location` label used by some Google Cloud APIs.
       
      string location = 12 [json_name = "location"];
      Specified by:
      getLocation in interface AttributeContext.ResourceOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Immutable. The location of the resource. The location encoding is
       specific to the service provider, and new encoding may be introduced
       as the service evolves.
      
       For Google Cloud products, the encoding is what is used by Google Cloud
       APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
       semantics of `location` is identical to the
       `cloud.googleapis.com/location` label used by some Google Cloud APIs.
       
      string location = 12 [json_name = "location"];
      Specified by:
      getLocationBytes in interface AttributeContext.ResourceOrBuilder
      Returns:
      The bytes for location.
    • parseFrom

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

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

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

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

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

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

      public static AttributeContext.Resource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AttributeContext.Resource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

      public static AttributeContext.Resource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static AttributeContext.Resource.Builder newBuilder()
    • newBuilder

      public static AttributeContext.Resource.Builder newBuilder(AttributeContext.Resource prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<AttributeContext.Resource,AttributeContext.Resource.Builder>
    • getDefaultInstance

      public static AttributeContext.Resource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AttributeContext.Resource> parser()