Package com.daml.ledger.api.v1.admin
Class ObjectMetaOuterClass.ObjectMeta.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
- com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.Builder
-
- All Implemented Interfaces:
ObjectMetaOuterClass.ObjectMetaOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ObjectMetaOuterClass.ObjectMeta
public static final class ObjectMetaOuterClass.ObjectMeta.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder> implements ObjectMetaOuterClass.ObjectMetaOrBuilder
Represents metadata corresponding to a participant resource (e.g. a participant user or participant local information about a party). Based on ``ObjectMeta`` meta used in Kubernetes API. See https://github.com/kubernetes/apimachinery/blob/master/pkg/apis/meta/v1/generated.proto#L640
Protobuf typecom.daml.ledger.api.v1.admin.ObjectMeta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectMetaOuterClass.ObjectMeta.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ObjectMetaOuterClass.ObjectMeta
build()
ObjectMetaOuterClass.ObjectMeta
buildPartial()
ObjectMetaOuterClass.ObjectMeta.Builder
clear()
ObjectMetaOuterClass.ObjectMeta.Builder
clearAnnotations()
ObjectMetaOuterClass.ObjectMeta.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ObjectMetaOuterClass.ObjectMeta.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ObjectMetaOuterClass.ObjectMeta.Builder
clearResourceVersion()
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to.ObjectMetaOuterClass.ObjectMeta.Builder
clone()
boolean
containsAnnotations(java.lang.String key)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.java.util.Map<java.lang.String,java.lang.String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.java.util.Map<java.lang.String,java.lang.String>
getAnnotationsMap()
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.java.lang.String
getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.java.lang.String
getAnnotationsOrThrow(java.lang.String key)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.ObjectMetaOuterClass.ObjectMeta
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.util.Map<java.lang.String,java.lang.String>
getMutableAnnotations()
Deprecated.java.lang.String
getResourceVersion()
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to.com.google.protobuf.ByteString
getResourceVersionBytes()
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ObjectMetaOuterClass.ObjectMeta.Builder
mergeFrom(ObjectMetaOuterClass.ObjectMeta other)
ObjectMetaOuterClass.ObjectMeta.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ObjectMetaOuterClass.ObjectMeta.Builder
mergeFrom(com.google.protobuf.Message other)
ObjectMetaOuterClass.ObjectMeta.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ObjectMetaOuterClass.ObjectMeta.Builder
putAllAnnotations(java.util.Map<java.lang.String,java.lang.String> values)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.ObjectMetaOuterClass.ObjectMeta.Builder
putAnnotations(java.lang.String key, java.lang.String value)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.ObjectMetaOuterClass.ObjectMeta.Builder
removeAnnotations(java.lang.String key)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata.ObjectMetaOuterClass.ObjectMeta.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ObjectMetaOuterClass.ObjectMeta.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ObjectMetaOuterClass.ObjectMeta.Builder
setResourceVersion(java.lang.String value)
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to.ObjectMetaOuterClass.ObjectMeta.Builder
setResourceVersionBytes(com.google.protobuf.ByteString value)
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to.ObjectMetaOuterClass.ObjectMeta.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
clear
public ObjectMetaOuterClass.ObjectMeta.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
getDefaultInstanceForType
public ObjectMetaOuterClass.ObjectMeta getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ObjectMetaOuterClass.ObjectMeta build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ObjectMetaOuterClass.ObjectMeta buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ObjectMetaOuterClass.ObjectMeta.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
setField
public ObjectMetaOuterClass.ObjectMeta.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
clearField
public ObjectMetaOuterClass.ObjectMeta.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
clearOneof
public ObjectMetaOuterClass.ObjectMeta.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
setRepeatedField
public ObjectMetaOuterClass.ObjectMeta.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
addRepeatedField
public ObjectMetaOuterClass.ObjectMeta.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
mergeFrom
public ObjectMetaOuterClass.ObjectMeta.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
mergeFrom
public ObjectMetaOuterClass.ObjectMeta.Builder mergeFrom(ObjectMetaOuterClass.ObjectMeta other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
mergeFrom
public ObjectMetaOuterClass.ObjectMeta.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
- Throws:
java.io.IOException
-
getResourceVersion
public java.lang.String getResourceVersion()
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to. The participant server will change it to a unique value each time the corresponding resource is updated. You must not rely on the format of resource version. The participant server might change it without notice. You can obtain the newest resource version value by issuing a read request. You may use it for concurrent change detection by passing it back unmodified in an update request. The participant server will then compare the passed value with the value maintained by the system to determine if any other updates took place since you had read the resource version. Upon a successful update you are guaranteed that no other update took place during your read-modify-write sequence. However, if another update took place during your read-modify-write sequence then your update will fail with an appropriate error. Concurrent change control is optional. It will be applied only if you include a resource version in an update request. When creating a new instance of a resource you must leave the resource version empty. Its value will be populated by the participant server upon successful resource creation. Optional
string resource_version = 6 [json_name = "resourceVersion"];
- Specified by:
getResourceVersion
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
- Returns:
- The resourceVersion.
-
getResourceVersionBytes
public com.google.protobuf.ByteString getResourceVersionBytes()
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to. The participant server will change it to a unique value each time the corresponding resource is updated. You must not rely on the format of resource version. The participant server might change it without notice. You can obtain the newest resource version value by issuing a read request. You may use it for concurrent change detection by passing it back unmodified in an update request. The participant server will then compare the passed value with the value maintained by the system to determine if any other updates took place since you had read the resource version. Upon a successful update you are guaranteed that no other update took place during your read-modify-write sequence. However, if another update took place during your read-modify-write sequence then your update will fail with an appropriate error. Concurrent change control is optional. It will be applied only if you include a resource version in an update request. When creating a new instance of a resource you must leave the resource version empty. Its value will be populated by the participant server upon successful resource creation. Optional
string resource_version = 6 [json_name = "resourceVersion"];
- Specified by:
getResourceVersionBytes
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
- Returns:
- The bytes for resourceVersion.
-
setResourceVersion
public ObjectMetaOuterClass.ObjectMeta.Builder setResourceVersion(java.lang.String value)
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to. The participant server will change it to a unique value each time the corresponding resource is updated. You must not rely on the format of resource version. The participant server might change it without notice. You can obtain the newest resource version value by issuing a read request. You may use it for concurrent change detection by passing it back unmodified in an update request. The participant server will then compare the passed value with the value maintained by the system to determine if any other updates took place since you had read the resource version. Upon a successful update you are guaranteed that no other update took place during your read-modify-write sequence. However, if another update took place during your read-modify-write sequence then your update will fail with an appropriate error. Concurrent change control is optional. It will be applied only if you include a resource version in an update request. When creating a new instance of a resource you must leave the resource version empty. Its value will be populated by the participant server upon successful resource creation. Optional
string resource_version = 6 [json_name = "resourceVersion"];
- Parameters:
value
- The resourceVersion to set.- Returns:
- This builder for chaining.
-
clearResourceVersion
public ObjectMetaOuterClass.ObjectMeta.Builder clearResourceVersion()
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to. The participant server will change it to a unique value each time the corresponding resource is updated. You must not rely on the format of resource version. The participant server might change it without notice. You can obtain the newest resource version value by issuing a read request. You may use it for concurrent change detection by passing it back unmodified in an update request. The participant server will then compare the passed value with the value maintained by the system to determine if any other updates took place since you had read the resource version. Upon a successful update you are guaranteed that no other update took place during your read-modify-write sequence. However, if another update took place during your read-modify-write sequence then your update will fail with an appropriate error. Concurrent change control is optional. It will be applied only if you include a resource version in an update request. When creating a new instance of a resource you must leave the resource version empty. Its value will be populated by the participant server upon successful resource creation. Optional
string resource_version = 6 [json_name = "resourceVersion"];
- Returns:
- This builder for chaining.
-
setResourceVersionBytes
public ObjectMetaOuterClass.ObjectMeta.Builder setResourceVersionBytes(com.google.protobuf.ByteString value)
An opaque, non-empty value, populated by a participant server which represents the internal version of the resource this ``ObjectMeta`` message is attached to. The participant server will change it to a unique value each time the corresponding resource is updated. You must not rely on the format of resource version. The participant server might change it without notice. You can obtain the newest resource version value by issuing a read request. You may use it for concurrent change detection by passing it back unmodified in an update request. The participant server will then compare the passed value with the value maintained by the system to determine if any other updates took place since you had read the resource version. Upon a successful update you are guaranteed that no other update took place during your read-modify-write sequence. However, if another update took place during your read-modify-write sequence then your update will fail with an appropriate error. Concurrent change control is optional. It will be applied only if you include a resource version in an update request. When creating a new instance of a resource you must leave the resource version empty. Its value will be populated by the participant server upon successful resource creation. Optional
string resource_version = 6 [json_name = "resourceVersion"];
- Parameters:
value
- The bytes for resourceVersion to set.- Returns:
- This builder for chaining.
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:ObjectMetaOuterClass.ObjectMetaOrBuilder
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
- Specified by:
getAnnotationsCount
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
-
containsAnnotations
public boolean containsAnnotations(java.lang.String key)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
- Specified by:
containsAnnotations
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
-
getAnnotations
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
-
getAnnotationsMap
public java.util.Map<java.lang.String,java.lang.String> getAnnotationsMap()
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
- Specified by:
getAnnotationsMap
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
-
getAnnotationsOrDefault
public java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
- Specified by:
getAnnotationsOrDefault
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
-
getAnnotationsOrThrow
public java.lang.String getAnnotationsOrThrow(java.lang.String key)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
- Specified by:
getAnnotationsOrThrow
in interfaceObjectMetaOuterClass.ObjectMetaOrBuilder
-
clearAnnotations
public ObjectMetaOuterClass.ObjectMeta.Builder clearAnnotations()
-
removeAnnotations
public ObjectMetaOuterClass.ObjectMeta.Builder removeAnnotations(java.lang.String key)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
-
getMutableAnnotations
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public ObjectMetaOuterClass.ObjectMeta.Builder putAnnotations(java.lang.String key, java.lang.String value)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
-
putAllAnnotations
public ObjectMetaOuterClass.ObjectMeta.Builder putAllAnnotations(java.util.Map<java.lang.String,java.lang.String> values)
A set of modifiable key-value pairs that can be used to represent arbitrary, client-specific metadata. Constraints: 1. The total size over all keys and values cannot exceed 256kb in UTF-8 encoding. 2. Keys are composed of an optional prefix segment and a required name segment such that: - key prefix, when present, must be a valid DNS subdomain with at most 253 characters, followed by a '/' (forward slash) character, - name segment must have at most 63 characters that are either alphanumeric ([a-z0-9A-Z]), or a '.' (dot), '-' (dash) or '_' (underscore); and it must start and end with an alphanumeric character. 2. Values can be any non-empty strings. Keys with empty prefix are reserved for end-users. Properties set by external tools or internally by the participant server must use non-empty key prefixes. Duplicate keys are disallowed by the semantics of the protobuf3 maps. See: https://developers.google.com/protocol-buffers/docs/proto3#maps Annotations may be a part of a modifiable resource. Use the resource's update RPC to update its annotations. In order to add a new annotation or update an existing one using an update RPC, provide the desired annotation in the update request. In order to remove an annotation using an update RPC, provide the target annotation's key but set its value to the empty string in the update request. Optional Modifiable
map<string, string> annotations = 12 [json_name = "annotations"];
-
setUnknownFields
public final ObjectMetaOuterClass.ObjectMeta.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
mergeUnknownFields
public final ObjectMetaOuterClass.ObjectMeta.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ObjectMetaOuterClass.ObjectMeta.Builder>
-
-