
com.daml.ledger.api.v1.ContractMetadataOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/daml/ledger/api/v1/contract_metadata.proto
package com.daml.ledger.api.v1;
public final class ContractMetadataOuterClass {
private ContractMetadataOuterClass() {}
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 ContractMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.daml.ledger.api.v1.ContractMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Hash of the contract key if defined.
* Optional
*
*
* bytes contract_key_hash = 2;
* @return The contractKeyHash.
*/
com.google.protobuf.ByteString getContractKeyHash();
/**
*
* Driver-specific metadata. This is opaque and cannot be decoded.
* Optional
*
*
* bytes driver_metadata = 3;
* @return The driverMetadata.
*/
com.google.protobuf.ByteString getDriverMetadata();
}
/**
*
* Contract-related metadata used in DisclosedContract (that can be included in command submission)
* or forwarded as part of the CreateEvent in Active Contract Set or Transaction streams.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.ContractMetadata}
*/
public static final class ContractMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.daml.ledger.api.v1.ContractMetadata)
ContractMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContractMetadata.newBuilder() to construct.
private ContractMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContractMetadata() {
contractKeyHash_ = com.google.protobuf.ByteString.EMPTY;
driverMetadata_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContractMetadata();
}
@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.ContractMetadataOuterClass.internal_static_com_daml_ledger_api_v1_ContractMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.ContractMetadataOuterClass.internal_static_com_daml_ledger_api_v1_ContractMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.class, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder.class);
}
public static final int CREATED_AT_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int CONTRACT_KEY_HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contractKeyHash_;
/**
*
* Hash of the contract key if defined.
* Optional
*
*
* bytes contract_key_hash = 2;
* @return The contractKeyHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractKeyHash() {
return contractKeyHash_;
}
public static final int DRIVER_METADATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString driverMetadata_;
/**
*
* Driver-specific metadata. This is opaque and cannot be decoded.
* Optional
*
*
* bytes driver_metadata = 3;
* @return The driverMetadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDriverMetadata() {
return driverMetadata_;
}
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 (createdAt_ != null) {
output.writeMessage(1, getCreatedAt());
}
if (!contractKeyHash_.isEmpty()) {
output.writeBytes(2, contractKeyHash_);
}
if (!driverMetadata_.isEmpty()) {
output.writeBytes(3, driverMetadata_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCreatedAt());
}
if (!contractKeyHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, contractKeyHash_);
}
if (!driverMetadata_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, driverMetadata_);
}
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.ContractMetadataOuterClass.ContractMetadata)) {
return super.equals(obj);
}
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata other = (com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata) obj;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getContractKeyHash()
.equals(other.getContractKeyHash())) return false;
if (!getDriverMetadata()
.equals(other.getDriverMetadata())) 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();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + CONTRACT_KEY_HASH_FIELD_NUMBER;
hash = (53 * hash) + getContractKeyHash().hashCode();
hash = (37 * hash) + DRIVER_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getDriverMetadata().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata 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;
}
/**
*
* Contract-related metadata used in DisclosedContract (that can be included in command submission)
* or forwarded as part of the CreateEvent in Active Contract Set or Transaction streams.
*
*
* Protobuf type {@code com.daml.ledger.api.v1.ContractMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.daml.ledger.api.v1.ContractMetadata)
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.daml.ledger.api.v1.ContractMetadataOuterClass.internal_static_com_daml_ledger_api_v1_ContractMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.daml.ledger.api.v1.ContractMetadataOuterClass.internal_static_com_daml_ledger_api_v1_ContractMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.class, com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder.class);
}
// Construct using com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
contractKeyHash_ = com.google.protobuf.ByteString.EMPTY;
driverMetadata_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.daml.ledger.api.v1.ContractMetadataOuterClass.internal_static_com_daml_ledger_api_v1_ContractMetadata_descriptor;
}
@java.lang.Override
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getDefaultInstanceForType() {
return com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance();
}
@java.lang.Override
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata build() {
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata buildPartial() {
com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata result = new com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata(this);
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.contractKeyHash_ = contractKeyHash_;
result.driverMetadata_ = driverMetadata_;
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.ContractMetadataOuterClass.ContractMetadata) {
return mergeFrom((com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata other) {
if (other == com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.getDefaultInstance()) return this;
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.getContractKeyHash() != com.google.protobuf.ByteString.EMPTY) {
setContractKeyHash(other.getContractKeyHash());
}
if (other.getDriverMetadata() != com.google.protobuf.ByteString.EMPTY) {
setDriverMetadata(other.getDriverMetadata());
}
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 10: {
input.readMessage(
getCreatedAtFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
contractKeyHash_ = input.readBytes();
break;
} // case 18
case 26: {
driverMetadata_ = input.readBytes();
break;
} // case 26
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 com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Ledger effective time of the transaction that created the contract.
* Required
*
*
* .google.protobuf.Timestamp created_at = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.ByteString contractKeyHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Hash of the contract key if defined.
* Optional
*
*
* bytes contract_key_hash = 2;
* @return The contractKeyHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractKeyHash() {
return contractKeyHash_;
}
/**
*
* Hash of the contract key if defined.
* Optional
*
*
* bytes contract_key_hash = 2;
* @param value The contractKeyHash to set.
* @return This builder for chaining.
*/
public Builder setContractKeyHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
contractKeyHash_ = value;
onChanged();
return this;
}
/**
*
* Hash of the contract key if defined.
* Optional
*
*
* bytes contract_key_hash = 2;
* @return This builder for chaining.
*/
public Builder clearContractKeyHash() {
contractKeyHash_ = getDefaultInstance().getContractKeyHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString driverMetadata_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Driver-specific metadata. This is opaque and cannot be decoded.
* Optional
*
*
* bytes driver_metadata = 3;
* @return The driverMetadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDriverMetadata() {
return driverMetadata_;
}
/**
*
* Driver-specific metadata. This is opaque and cannot be decoded.
* Optional
*
*
* bytes driver_metadata = 3;
* @param value The driverMetadata to set.
* @return This builder for chaining.
*/
public Builder setDriverMetadata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
driverMetadata_ = value;
onChanged();
return this;
}
/**
*
* Driver-specific metadata. This is opaque and cannot be decoded.
* Optional
*
*
* bytes driver_metadata = 3;
* @return This builder for chaining.
*/
public Builder clearDriverMetadata() {
driverMetadata_ = getDefaultInstance().getDriverMetadata();
onChanged();
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.ContractMetadata)
}
// @@protoc_insertion_point(class_scope:com.daml.ledger.api.v1.ContractMetadata)
private static final com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata();
}
public static com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContractMetadata 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.ContractMetadataOuterClass.ContractMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_daml_ledger_api_v1_ContractMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_daml_ledger_api_v1_ContractMetadata_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/contract_metada" +
"ta.proto\022\026com.daml.ledger.api.v1\032\037google" +
"/protobuf/timestamp.proto\"v\n\020ContractMet" +
"adata\022.\n\ncreated_at\030\001 \001(\0132\032.google.proto" +
"buf.Timestamp\022\031\n\021contract_key_hash\030\002 \001(\014" +
"\022\027\n\017driver_metadata\030\003 \001(\014BM\n\026com.daml.le" +
"dger.api.v1B\032ContractMetadataOuterClass\252" +
"\002\026Com.Daml.Ledger.Api.V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_com_daml_ledger_api_v1_ContractMetadata_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_daml_ledger_api_v1_ContractMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_daml_ledger_api_v1_ContractMetadata_descriptor,
new java.lang.String[] { "CreatedAt", "ContractKeyHash", "DriverMetadata", });
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy