Package com.google.rpc.context
Class AttributeContext.Resource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.rpc.context.AttributeContext.Resource
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.ResourceOrBuilder,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 typegoogle.rpc.context.AttributeContext.Resource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeContext.Resource.BuilderThis 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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATIONS_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDELETE_TIME_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intETAG_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intLOCATION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSERVICE_FIELD_NUMBERstatic intTYPE_FIELD_NUMBERstatic intUID_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAnnotations(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.booleancontainsLabels(String key)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.booleanequals(Object obj)Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.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.StringgetAnnotationsOrDefault(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.StringgetAnnotationsOrThrow(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.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static AttributeContext.ResourcegetDefaultInstance()AttributeContext.ResourcegetDefaultInstanceForType()com.google.protobuf.TimestampgetDeleteTime()Output only.com.google.protobuf.TimestampOrBuildergetDeleteTimeOrBuilder()Output only.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Mutable.com.google.protobuf.ByteStringgetDisplayNameBytes()Mutable.StringgetEtag()Output only.com.google.protobuf.ByteStringgetEtagBytes()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.Map<String,String>getLabelsMap()The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.StringgetLabelsOrDefault(String key, String defaultValue)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.StringgetLabelsOrThrow(String key)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.StringgetLocation()Immutable.com.google.protobuf.ByteStringgetLocationBytes()Immutable.StringgetName()The stable identifier (name) of a resource on the `service`.com.google.protobuf.ByteStringgetNameBytes()The stable identifier (name) of a resource on the `service`.com.google.protobuf.Parser<AttributeContext.Resource>getParserForType()intgetSerializedSize()StringgetService()The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.com.google.protobuf.ByteStringgetServiceBytes()The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.StringgetType()The type of the resource.com.google.protobuf.ByteStringgetTypeBytes()The type of the resource.StringgetUid()The unique identifier of the resource.com.google.protobuf.ByteStringgetUidBytes()The unique identifier of the resource.com.google.protobuf.UnknownFieldSetgetUnknownFields()com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasDeleteTime()Output only.inthashCode()booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static AttributeContext.Resource.BuildernewBuilder()static AttributeContext.Resource.BuildernewBuilder(AttributeContext.Resource prototype)AttributeContext.Resource.BuildernewBuilderForType()protected AttributeContext.Resource.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AttributeContext.ResourceparseDelimitedFrom(InputStream input)static AttributeContext.ResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttributeContext.ResourceparseFrom(byte[] data)static AttributeContext.ResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttributeContext.ResourceparseFrom(com.google.protobuf.ByteString data)static AttributeContext.ResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttributeContext.ResourceparseFrom(com.google.protobuf.CodedInputStream input)static AttributeContext.ResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttributeContext.ResourceparseFrom(InputStream input)static AttributeContext.ResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AttributeContext.ResourceparseFrom(ByteBuffer data)static AttributeContext.ResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AttributeContext.Resource>parser()AttributeContext.Resource.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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;- Specified by:
getServicein interfaceAttributeContext.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:
getServiceBytesin interfaceAttributeContext.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;- Specified by:
getNamein interfaceAttributeContext.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:
getNameBytesin interfaceAttributeContext.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;- Specified by:
getTypein interfaceAttributeContext.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:
getTypeBytesin interfaceAttributeContext.ResourceOrBuilder- Returns:
- The bytes for type.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AttributeContext.ResourceOrBuilderThe labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceAttributeContext.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;- Specified by:
containsLabelsin interfaceAttributeContext.ResourceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAttributeContext.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;- Specified by:
getLabelsMapin interfaceAttributeContext.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;- Specified by:
getLabelsOrDefaultin interfaceAttributeContext.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;- Specified by:
getLabelsOrThrowin interfaceAttributeContext.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;- Specified by:
getUidin interfaceAttributeContext.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:
getUidBytesin interfaceAttributeContext.ResourceOrBuilder- Returns:
- The bytes for uid.
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:AttributeContext.ResourceOrBuilderAnnotations 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:
getAnnotationsCountin interfaceAttributeContext.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;- Specified by:
containsAnnotationsin interfaceAttributeContext.ResourceOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceAttributeContext.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;- Specified by:
getAnnotationsMapin interfaceAttributeContext.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;- Specified by:
getAnnotationsOrDefaultin interfaceAttributeContext.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;- Specified by:
getAnnotationsOrThrowin interfaceAttributeContext.ResourceOrBuilder
-
getDisplayName
public String getDisplayName()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;- Specified by:
getDisplayNamein interfaceAttributeContext.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:
getDisplayNameBytesin interfaceAttributeContext.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:
hasCreateTimein interfaceAttributeContext.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:
getCreateTimein interfaceAttributeContext.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:
getCreateTimeOrBuilderin interfaceAttributeContext.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:
hasUpdateTimein interfaceAttributeContext.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:
getUpdateTimein interfaceAttributeContext.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:
getUpdateTimeOrBuilderin interfaceAttributeContext.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:
hasDeleteTimein interfaceAttributeContext.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:
getDeleteTimein interfaceAttributeContext.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:
getDeleteTimeOrBuilderin interfaceAttributeContext.ResourceOrBuilder
-
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;- Specified by:
getEtagin interfaceAttributeContext.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:
getEtagBytesin interfaceAttributeContext.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;- Specified by:
getLocationin interfaceAttributeContext.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:
getLocationBytesin interfaceAttributeContext.ResourceOrBuilder- Returns:
- The bytes for location.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
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
-
newBuilderForType
public AttributeContext.Resource.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AttributeContext.Resource.Builder newBuilder()
-
newBuilder
public static AttributeContext.Resource.Builder newBuilder(AttributeContext.Resource prototype)
-
toBuilder
public AttributeContext.Resource.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttributeContext.Resource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AttributeContext.Resource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AttributeContext.Resource> parser()
-
getParserForType
public com.google.protobuf.Parser<AttributeContext.Resource> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AttributeContext.Resource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-