All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daml.ledger.api.v1.admin.ObjectMetaOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/daml/ledger/api/v1/admin/object_meta.proto

package com.daml.ledger.api.v1.admin;

public final class ObjectMetaOuterClass {
  private ObjectMetaOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ObjectMetaOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.admin.ObjectMeta)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * 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; * @return The resourceVersion. */ 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; * @return The bytes for resourceVersion. */ com.google.protobuf.ByteString getResourceVersionBytes(); /** *
     * 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; */ int getAnnotationsCount(); /** *
     * 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; */ boolean containsAnnotations( java.lang.String key); /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated java.util.Map getAnnotations(); /** *
     * 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; */ java.util.Map 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; */ 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; */ java.lang.String getAnnotationsOrThrow( java.lang.String key); } /** *
   * 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 type {@code com.daml.ledger.api.v1.admin.ObjectMeta} */ public static final class ObjectMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.admin.ObjectMeta) ObjectMetaOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectMeta.newBuilder() to construct. private ObjectMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectMeta() { resourceVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObjectMeta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: return internalGetAnnotations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.class, com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.Builder.class); } public static final int RESOURCE_VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object resourceVersion_; /** *
     * 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; * @return The resourceVersion. */ @java.lang.Override public java.lang.String getResourceVersion() { java.lang.Object ref = resourceVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceVersion_ = s; return s; } } /** *
     * 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; * @return The bytes for resourceVersion. */ @java.lang.Override public com.google.protobuf.ByteString getResourceVersionBytes() { java.lang.Object ref = resourceVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANNOTATIONS_FIELD_NUMBER = 12; private static final class AnnotationsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_AnnotationsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** *
     * 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; */ @java.lang.Override public boolean containsAnnotations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return 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; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** *
     * 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; */ @java.lang.Override public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : 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; */ @java.lang.Override public java.lang.String getAnnotationsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceVersion_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 12); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceVersion_); } for (java.util.Map.Entry entry : internalGetAnnotations().getMap().entrySet()) { com.google.protobuf.MapEntry annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, annotations__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta)) { return super.equals(obj); } com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta other = (com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta) obj; if (!getResourceVersion() .equals(other.getResourceVersion())) return false; if (!internalGetAnnotations().equals( other.internalGetAnnotations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getResourceVersion().hashCode(); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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 type {@code com.daml.ledger.api.v1.admin.ObjectMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.admin.ObjectMeta) com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: return internalGetAnnotations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 12: return internalGetMutableAnnotations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.class, com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.Builder.class); } // Construct using com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceVersion_ = ""; internalGetMutableAnnotations().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor; } @java.lang.Override public com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta getDefaultInstanceForType() { return com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.getDefaultInstance(); } @java.lang.Override public com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta build() { com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta buildPartial() { com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta result = new com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta(this); int from_bitField0_ = bitField0_; result.resourceVersion_ = resourceVersion_; result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta) { return mergeFrom((com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta other) { if (other == com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta.getDefaultInstance()) return this; if (!other.getResourceVersion().isEmpty()) { resourceVersion_ = other.resourceVersion_; onChanged(); } internalGetMutableAnnotations().mergeFrom( other.internalGetAnnotations()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 50: { resourceVersion_ = input.readStringRequireUtf8(); break; } // case 50 case 98: { com.google.protobuf.MapEntry annotations__ = input.readMessage( AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAnnotations().getMutableMap().put( annotations__.getKey(), annotations__.getValue()); break; } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object resourceVersion_ = ""; /** *
       * 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; * @return The resourceVersion. */ public java.lang.String getResourceVersion() { java.lang.Object ref = resourceVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 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; * @return The bytes for resourceVersion. */ public com.google.protobuf.ByteString getResourceVersionBytes() { java.lang.Object ref = resourceVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 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; * @param value The resourceVersion to set. * @return This builder for chaining. */ public Builder setResourceVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceVersion_ = value; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearResourceVersion() { resourceVersion_ = getDefaultInstance().getResourceVersion(); onChanged(); return this; } /** *
       * 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; * @param value The bytes for resourceVersion to set. * @return This builder for chaining. */ public Builder setResourceVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceVersion_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } private com.google.protobuf.MapField internalGetMutableAnnotations() { onChanged();; if (annotations_ == null) { annotations_ = com.google.protobuf.MapField.newMapField( AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } return annotations_; } public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** *
       * 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; */ @java.lang.Override public boolean containsAnnotations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return 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; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** *
       * 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; */ @java.lang.Override public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : 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; */ @java.lang.Override public java.lang.String getAnnotationsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAnnotations() { internalGetMutableAnnotations().getMutableMap() .clear(); return this; } /** *
       * 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; */ public Builder removeAnnotations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** *
       * 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; */ public Builder putAnnotations( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap() .put(key, value); return this; } /** *
       * 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; */ public Builder putAllAnnotations( java.util.Map values) { internalGetMutableAnnotations().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.daml.ledger.api.v1.admin.ObjectMeta) } // @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.admin.ObjectMeta) private static final com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta(); } public static com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.daml.ledger.api.v1.admin.ObjectMetaOuterClass.ObjectMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_AnnotationsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_AnnotationsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n.com/daml/ledger/api/v1/admin/object_me" + "ta.proto\022\034com.daml.ledger.api.v1.admin\"\252" + "\001\n\nObjectMeta\022\030\n\020resource_version\030\006 \001(\t\022" + "N\n\013annotations\030\014 \003(\01329.com.daml.ledger.a" + "pi.v1.admin.ObjectMeta.AnnotationsEntry\032" + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + "e\030\002 \001(\t:\0028\001BS\n\034com.daml.ledger.api.v1.ad" + "minB\024ObjectMetaOuterClass\252\002\034Com.Daml.Led" + "ger.Api.V1.Adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor, new java.lang.String[] { "ResourceVersion", "Annotations", }); internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_AnnotationsEntry_descriptor = internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_descriptor.getNestedTypes().get(0); internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_daml_ledger_api_v1_admin_ObjectMeta_AnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy