Class AttributeContext.Resource

  • All Implemented Interfaces:
    com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AttributeContext.ResourceOrBuilder, java.io.Serializable
    Enclosing class:
    AttributeContext

    public static final class AttributeContext.Resource
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AttributeContext.Resource.Builder
      This message defines core attributes for a resource.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

        com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

        com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,​T extends java.lang.Object>
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

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

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsAnnotations​(java.lang.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.
      boolean containsLabels​(java.lang.String key)
      The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
      boolean equals​(java.lang.Object obj)  
      java.util.Map<java.lang.String,​java.lang.String> getAnnotations()
      Deprecated.
      int getAnnotationsCount()
      Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
      java.util.Map<java.lang.String,​java.lang.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.
      java.lang.String getAnnotationsOrDefault​(java.lang.String key, java.lang.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.
      java.lang.String getAnnotationsOrThrow​(java.lang.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.
      com.google.protobuf.Timestamp getCreateTime()
      Output only.
      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
      Output only.
      static AttributeContext.Resource getDefaultInstance()  
      AttributeContext.Resource getDefaultInstanceForType()  
      com.google.protobuf.Timestamp getDeleteTime()
      Output only.
      com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
      Output only.
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      java.lang.String getDisplayName()
      Mutable.
      com.google.protobuf.ByteString getDisplayNameBytes()
      Mutable.
      java.lang.String getEtag()
      Output only.
      com.google.protobuf.ByteString getEtagBytes()
      Output only.
      java.util.Map<java.lang.String,​java.lang.String> getLabels()
      Deprecated.
      int getLabelsCount()
      The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
      java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
      The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
      java.lang.String getLabelsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
      java.lang.String getLabelsOrThrow​(java.lang.String key)
      The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
      java.lang.String getLocation()
      Immutable.
      com.google.protobuf.ByteString getLocationBytes()
      Immutable.
      java.lang.String getName()
      The stable identifier (name) of a resource on the `service`.
      com.google.protobuf.ByteString getNameBytes()
      The stable identifier (name) of a resource on the `service`.
      com.google.protobuf.Parser<AttributeContext.Resource> getParserForType()  
      int getSerializedSize()  
      java.lang.String getService()
      The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.
      com.google.protobuf.ByteString getServiceBytes()
      The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.
      java.lang.String getType()
      The type of the resource.
      com.google.protobuf.ByteString getTypeBytes()
      The type of the resource.
      java.lang.String getUid()
      The unique identifier of the resource.
      com.google.protobuf.ByteString getUidBytes()
      The unique identifier of the resource.
      com.google.protobuf.Timestamp getUpdateTime()
      Output only.
      com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
      Output only.
      boolean hasCreateTime()
      Output only.
      boolean hasDeleteTime()
      Output only.
      int hashCode()  
      boolean hasUpdateTime()
      Output only.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)  
      boolean isInitialized()  
      static AttributeContext.Resource.Builder newBuilder()  
      static AttributeContext.Resource.Builder newBuilder​(AttributeContext.Resource prototype)  
      AttributeContext.Resource.Builder newBuilderForType()  
      protected AttributeContext.Resource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static AttributeContext.Resource parseDelimitedFrom​(java.io.InputStream input)  
      static AttributeContext.Resource parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static AttributeContext.Resource parseFrom​(byte[] data)  
      static AttributeContext.Resource parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static AttributeContext.Resource parseFrom​(com.google.protobuf.ByteString data)  
      static AttributeContext.Resource parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static AttributeContext.Resource parseFrom​(com.google.protobuf.CodedInputStream input)  
      static AttributeContext.Resource parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static AttributeContext.Resource parseFrom​(java.io.InputStream input)  
      static AttributeContext.Resource parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static AttributeContext.Resource parseFrom​(java.nio.ByteBuffer data)  
      static AttributeContext.Resource parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<AttributeContext.Resource> parser()  
      AttributeContext.Resource.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType
      • Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

        extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter
      • Methods inherited from class com.google.protobuf.GeneratedMessage

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashFields, toString
      • 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.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getService

        public java.lang.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;
        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;
        Specified by:
        getServiceBytes in interface AttributeContext.ResourceOrBuilder
        Returns:
        The bytes for service.
      • getName

        public java.lang.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;
        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;
        Specified by:
        getNameBytes in interface AttributeContext.ResourceOrBuilder
        Returns:
        The bytes for name.
      • getType

        public java.lang.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;
        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;
        Specified by:
        getTypeBytes in interface AttributeContext.ResourceOrBuilder
        Returns:
        The bytes for type.
      • containsLabels

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

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

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

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

        public java.lang.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;
        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;
        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;
        Specified by:
        getAnnotationsCount in interface AttributeContext.ResourceOrBuilder
      • containsAnnotations

        public boolean containsAnnotations​(java.lang.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;
        Specified by:
        containsAnnotations in interface AttributeContext.ResourceOrBuilder
      • getAnnotationsMap

        public java.util.Map<java.lang.String,​java.lang.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;
        Specified by:
        getAnnotationsMap in interface AttributeContext.ResourceOrBuilder
      • getAnnotationsOrDefault

        public java.lang.String getAnnotationsOrDefault​(java.lang.String key,
                                                        java.lang.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;
        Specified by:
        getAnnotationsOrDefault in interface AttributeContext.ResourceOrBuilder
      • getAnnotationsOrThrow

        public java.lang.String getAnnotationsOrThrow​(java.lang.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;
        Specified by:
        getAnnotationsOrThrow in interface AttributeContext.ResourceOrBuilder
      • getDisplayName

        public java.lang.String getDisplayName()
         Mutable. The display name set by clients. Must be <= 63 characters.
         
        string display_name = 7;
        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;
        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;
        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;
        Specified by:
        getCreateTime in interface AttributeContext.ResourceOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         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;
        Specified by:
        getCreateTimeOrBuilder in interface AttributeContext.ResourceOrBuilder
      • 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;
        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;
        Specified by:
        getUpdateTime in interface AttributeContext.ResourceOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         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;
        Specified by:
        getUpdateTimeOrBuilder in interface AttributeContext.ResourceOrBuilder
      • 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;
        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;
        Specified by:
        getDeleteTime in interface AttributeContext.ResourceOrBuilder
        Returns:
        The deleteTime.
      • getDeleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
         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;
        Specified by:
        getDeleteTimeOrBuilder in interface AttributeContext.ResourceOrBuilder
      • getEtag

        public java.lang.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;
        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;
        Specified by:
        getEtagBytes in interface AttributeContext.ResourceOrBuilder
        Returns:
        The bytes for etag.
      • getLocation

        public java.lang.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;
        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;
        Specified by:
        getLocationBytes in interface AttributeContext.ResourceOrBuilder
        Returns:
        The bytes for location.
      • isInitialized

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

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.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​(java.lang.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 AttributeContext.Resource parseFrom​(java.nio.ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AttributeContext.Resource parseFrom​(java.nio.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​(java.io.InputStream input)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

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

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

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

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

        protected AttributeContext.Resource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AttributeContext.Resource> 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 AttributeContext.Resource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder