Package com.google.rpc.context
Class AttributeContext.Resource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
- com.google.rpc.context.AttributeContext.Resource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.ResourceOrBuilder,java.lang.Cloneable
- Enclosing class:
- AttributeContext.Resource
public static final class AttributeContext.Resource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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 typegoogle.rpc.context.AttributeContext.Resource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContext.Resource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Resourcebuild()AttributeContext.ResourcebuildPartial()AttributeContext.Resource.Builderclear()AttributeContext.Resource.BuilderclearAnnotations()AttributeContext.Resource.BuilderclearCreateTime()Output only.AttributeContext.Resource.BuilderclearDeleteTime()Output only.AttributeContext.Resource.BuilderclearDisplayName()Mutable.AttributeContext.Resource.BuilderclearEtag()Output only.AttributeContext.Resource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AttributeContext.Resource.BuilderclearLabels()AttributeContext.Resource.BuilderclearLocation()Immutable.AttributeContext.Resource.BuilderclearName()The stable identifier (name) of a resource on the `service`.AttributeContext.Resource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AttributeContext.Resource.BuilderclearService()The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.AttributeContext.Resource.BuilderclearType()The type of the resource.AttributeContext.Resource.BuilderclearUid()The unique identifier of the resource.AttributeContext.Resource.BuilderclearUpdateTime()Output only.AttributeContext.Resource.Builderclone()booleancontainsAnnotations(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.booleancontainsLabels(java.lang.String key)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>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.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.StringgetAnnotationsOrDefault(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.StringgetAnnotationsOrThrow(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.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.AttributeContext.ResourcegetDefaultInstanceForType()com.google.protobuf.TimestampgetDeleteTime()Output only.com.google.protobuf.Timestamp.BuildergetDeleteTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetDeleteTimeOrBuilder()Output only.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetDisplayName()Mutable.com.google.protobuf.ByteStringgetDisplayNameBytes()Mutable.java.lang.StringgetEtag()Output only.com.google.protobuf.ByteStringgetEtagBytes()Output only.java.util.Map<java.lang.String,java.lang.String>getLabels()Deprecated.intgetLabelsCount()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.StringgetLabelsOrDefault(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.StringgetLabelsOrThrow(java.lang.String key)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.java.lang.StringgetLocation()Immutable.com.google.protobuf.ByteStringgetLocationBytes()Immutable.java.util.Map<java.lang.String,java.lang.String>getMutableAnnotations()Deprecated.java.util.Map<java.lang.String,java.lang.String>getMutableLabels()Deprecated.java.lang.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`.java.lang.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`.java.lang.StringgetType()The type of the resource.com.google.protobuf.ByteStringgetTypeBytes()The type of the resource.java.lang.StringgetUid()The unique identifier of the resource.com.google.protobuf.ByteStringgetUidBytes()The unique identifier of the resource.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasDeleteTime()Output only.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AttributeContext.Resource.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.AttributeContext.Resource.BuildermergeDeleteTime(com.google.protobuf.Timestamp value)Output only.AttributeContext.Resource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AttributeContext.Resource.BuildermergeFrom(com.google.protobuf.Message other)AttributeContext.Resource.BuildermergeFrom(AttributeContext.Resource other)AttributeContext.Resource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.Resource.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.AttributeContext.Resource.BuilderputAllAnnotations(java.util.Map<java.lang.String,java.lang.String> values)Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.AttributeContext.Resource.BuilderputAllLabels(java.util.Map<java.lang.String,java.lang.String> values)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.AttributeContext.Resource.BuilderputAnnotations(java.lang.String key, java.lang.String value)Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.AttributeContext.Resource.BuilderputLabels(java.lang.String key, java.lang.String value)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.AttributeContext.Resource.BuilderremoveAnnotations(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.AttributeContext.Resource.BuilderremoveLabels(java.lang.String key)The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.AttributeContext.Resource.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.AttributeContext.Resource.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.AttributeContext.Resource.BuildersetDeleteTime(com.google.protobuf.Timestamp value)Output only.AttributeContext.Resource.BuildersetDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.AttributeContext.Resource.BuildersetDisplayName(java.lang.String value)Mutable.AttributeContext.Resource.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Mutable.AttributeContext.Resource.BuildersetEtag(java.lang.String value)Output only.AttributeContext.Resource.BuildersetEtagBytes(com.google.protobuf.ByteString value)Output only.AttributeContext.Resource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Resource.BuildersetLocation(java.lang.String value)Immutable.AttributeContext.Resource.BuildersetLocationBytes(com.google.protobuf.ByteString value)Immutable.AttributeContext.Resource.BuildersetName(java.lang.String value)The stable identifier (name) of a resource on the `service`.AttributeContext.Resource.BuildersetNameBytes(com.google.protobuf.ByteString value)The stable identifier (name) of a resource on the `service`.AttributeContext.Resource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)AttributeContext.Resource.BuildersetService(java.lang.String value)The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.AttributeContext.Resource.BuildersetServiceBytes(com.google.protobuf.ByteString value)The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.AttributeContext.Resource.BuildersetType(java.lang.String value)The type of the resource.AttributeContext.Resource.BuildersetTypeBytes(com.google.protobuf.ByteString value)The type of the resource.AttributeContext.Resource.BuildersetUid(java.lang.String value)The unique identifier of the resource.AttributeContext.Resource.BuildersetUidBytes(com.google.protobuf.ByteString value)The unique identifier of the resource.AttributeContext.Resource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.Resource.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.AttributeContext.Resource.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<AttributeContext.Resource.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
clear
public AttributeContext.Resource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
getDefaultInstanceForType
public AttributeContext.Resource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributeContext.Resource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributeContext.Resource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributeContext.Resource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
setField
public AttributeContext.Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
clearField
public AttributeContext.Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
clearOneof
public AttributeContext.Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
setRepeatedField
public AttributeContext.Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
addRepeatedField
public AttributeContext.Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
mergeFrom
public AttributeContext.Resource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Resource.Builder>
-
mergeFrom
public AttributeContext.Resource.Builder mergeFrom(AttributeContext.Resource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
mergeFrom
public AttributeContext.Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Resource.Builder>- Throws:
java.io.IOException
-
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:
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.
-
setService
public AttributeContext.Resource.Builder setService(java.lang.String value)
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;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
public AttributeContext.Resource.Builder clearService()
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;- Returns:
- This builder for chaining.
-
setServiceBytes
public AttributeContext.Resource.Builder setServiceBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
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:
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.
-
setName
public AttributeContext.Resource.Builder setName(java.lang.String value)
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public AttributeContext.Resource.Builder clearName()
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;- Returns:
- This builder for chaining.
-
setNameBytes
public AttributeContext.Resource.Builder setNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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}".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}".string type = 3;- Specified by:
getTypeBytesin interfaceAttributeContext.ResourceOrBuilder- Returns:
- The bytes for type.
-
setType
public AttributeContext.Resource.Builder setType(java.lang.String value)
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}".string type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public AttributeContext.Resource.Builder clearType()
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}".string type = 3;- Returns:
- This builder for chaining.
-
setTypeBytes
public AttributeContext.Resource.Builder setTypeBytes(com.google.protobuf.ByteString value)
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}".string type = 3;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
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(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:
containsLabelsin interfaceAttributeContext.ResourceOrBuilder
-
getLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAttributeContext.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:
getLabelsMapin interfaceAttributeContext.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:
getLabelsOrDefaultin interfaceAttributeContext.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:
getLabelsOrThrowin interfaceAttributeContext.ResourceOrBuilder
-
clearLabels
public AttributeContext.Resource.Builder clearLabels()
-
removeLabels
public AttributeContext.Resource.Builder removeLabels(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;
-
getMutableLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public AttributeContext.Resource.Builder putLabels(java.lang.String key, java.lang.String value)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;
-
putAllLabels
public AttributeContext.Resource.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
map<string, string> labels = 4;
-
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:
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.
-
setUid
public AttributeContext.Resource.Builder setUid(java.lang.String value)
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;- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public AttributeContext.Resource.Builder clearUid()
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;- Returns:
- This builder for chaining.
-
setUidBytes
public AttributeContext.Resource.Builder setUidBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
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(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:
containsAnnotationsin interfaceAttributeContext.ResourceOrBuilder
-
getAnnotations
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceAttributeContext.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:
getAnnotationsMapin interfaceAttributeContext.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:
getAnnotationsOrDefaultin interfaceAttributeContext.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:
getAnnotationsOrThrowin interfaceAttributeContext.ResourceOrBuilder
-
clearAnnotations
public AttributeContext.Resource.Builder clearAnnotations()
-
removeAnnotations
public AttributeContext.Resource.Builder removeAnnotations(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;
-
getMutableAnnotations
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public AttributeContext.Resource.Builder putAnnotations(java.lang.String key, java.lang.String value)
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;
-
putAllAnnotations
public AttributeContext.Resource.Builder putAllAnnotations(java.util.Map<java.lang.String,java.lang.String> values)
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;
-
getDisplayName
public java.lang.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.
-
setDisplayName
public AttributeContext.Resource.Builder setDisplayName(java.lang.String value)
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public AttributeContext.Resource.Builder clearDisplayName()
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public AttributeContext.Resource.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Mutable. The display name set by clients. Must be <= 63 characters.
string display_name = 7;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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.
-
setCreateTime
public AttributeContext.Resource.Builder setCreateTime(com.google.protobuf.Timestamp value)
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;
-
setCreateTime
public AttributeContext.Resource.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
-
mergeCreateTime
public AttributeContext.Resource.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
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;
-
clearCreateTime
public AttributeContext.Resource.Builder clearCreateTime()
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;
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
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;
-
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.
-
setUpdateTime
public AttributeContext.Resource.Builder setUpdateTime(com.google.protobuf.Timestamp value)
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;
-
setUpdateTime
public AttributeContext.Resource.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
-
mergeUpdateTime
public AttributeContext.Resource.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
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;
-
clearUpdateTime
public AttributeContext.Resource.Builder clearUpdateTime()
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;
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
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;
-
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.
-
setDeleteTime
public AttributeContext.Resource.Builder setDeleteTime(com.google.protobuf.Timestamp value)
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;
-
setDeleteTime
public AttributeContext.Resource.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
-
mergeDeleteTime
public AttributeContext.Resource.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
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;
-
clearDeleteTime
public AttributeContext.Resource.Builder clearDeleteTime()
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;
-
getDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
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;
-
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 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:
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.
-
setEtag
public AttributeContext.Resource.Builder setEtag(java.lang.String value)
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;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public AttributeContext.Resource.Builder clearEtag()
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;- Returns:
- This builder for chaining.
-
setEtagBytes
public AttributeContext.Resource.Builder setEtagBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
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:
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.
-
setLocation
public AttributeContext.Resource.Builder setLocation(java.lang.String value)
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;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public AttributeContext.Resource.Builder clearLocation()
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;- Returns:
- This builder for chaining.
-
setLocationBytes
public AttributeContext.Resource.Builder setLocationBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AttributeContext.Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
mergeUnknownFields
public final AttributeContext.Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Resource.Builder>
-
-