Package com.daml.ledger.api.v1
Class ContractMetadataOuterClass.ContractMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
- com.daml.ledger.api.v1.ContractMetadataOuterClass.ContractMetadata.Builder
-
- All Implemented Interfaces:
ContractMetadataOuterClass.ContractMetadataOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ContractMetadataOuterClass.ContractMetadata
public static final class ContractMetadataOuterClass.ContractMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder> implements ContractMetadataOuterClass.ContractMetadataOrBuilder
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 typecom.daml.ledger.api.v1.ContractMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContractMetadataOuterClass.ContractMetadata.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ContractMetadataOuterClass.ContractMetadata
build()
ContractMetadataOuterClass.ContractMetadata
buildPartial()
ContractMetadataOuterClass.ContractMetadata.Builder
clear()
ContractMetadataOuterClass.ContractMetadata.Builder
clearContractKeyHash()
Hash of the contract key if defined.ContractMetadataOuterClass.ContractMetadata.Builder
clearCreatedAt()
Ledger effective time of the transaction that created the contract.ContractMetadataOuterClass.ContractMetadata.Builder
clearDriverMetadata()
Driver-specific metadata.ContractMetadataOuterClass.ContractMetadata.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ContractMetadataOuterClass.ContractMetadata.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ContractMetadataOuterClass.ContractMetadata.Builder
clone()
com.google.protobuf.ByteString
getContractKeyHash()
Hash of the contract key if defined.com.google.protobuf.Timestamp
getCreatedAt()
Ledger effective time of the transaction that created the contract.com.google.protobuf.Timestamp.Builder
getCreatedAtBuilder()
Ledger effective time of the transaction that created the contract.com.google.protobuf.TimestampOrBuilder
getCreatedAtOrBuilder()
Ledger effective time of the transaction that created the contract.ContractMetadataOuterClass.ContractMetadata
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getDriverMetadata()
Driver-specific metadata.boolean
hasCreatedAt()
Ledger effective time of the transaction that created the contract.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ContractMetadataOuterClass.ContractMetadata.Builder
mergeCreatedAt(com.google.protobuf.Timestamp value)
Ledger effective time of the transaction that created the contract.ContractMetadataOuterClass.ContractMetadata.Builder
mergeFrom(ContractMetadataOuterClass.ContractMetadata other)
ContractMetadataOuterClass.ContractMetadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ContractMetadataOuterClass.ContractMetadata.Builder
mergeFrom(com.google.protobuf.Message other)
ContractMetadataOuterClass.ContractMetadata.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ContractMetadataOuterClass.ContractMetadata.Builder
setContractKeyHash(com.google.protobuf.ByteString value)
Hash of the contract key if defined.ContractMetadataOuterClass.ContractMetadata.Builder
setCreatedAt(com.google.protobuf.Timestamp value)
Ledger effective time of the transaction that created the contract.ContractMetadataOuterClass.ContractMetadata.Builder
setCreatedAt(com.google.protobuf.Timestamp.Builder builderForValue)
Ledger effective time of the transaction that created the contract.ContractMetadataOuterClass.ContractMetadata.Builder
setDriverMetadata(com.google.protobuf.ByteString value)
Driver-specific metadata.ContractMetadataOuterClass.ContractMetadata.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ContractMetadataOuterClass.ContractMetadata.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ContractMetadataOuterClass.ContractMetadata.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
clear
public ContractMetadataOuterClass.ContractMetadata.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
getDefaultInstanceForType
public ContractMetadataOuterClass.ContractMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ContractMetadataOuterClass.ContractMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ContractMetadataOuterClass.ContractMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ContractMetadataOuterClass.ContractMetadata.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
setField
public ContractMetadataOuterClass.ContractMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
clearField
public ContractMetadataOuterClass.ContractMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
clearOneof
public ContractMetadataOuterClass.ContractMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
setRepeatedField
public ContractMetadataOuterClass.ContractMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
addRepeatedField
public ContractMetadataOuterClass.ContractMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
mergeFrom
public ContractMetadataOuterClass.ContractMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
mergeFrom
public ContractMetadataOuterClass.ContractMetadata.Builder mergeFrom(ContractMetadataOuterClass.ContractMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
mergeFrom
public ContractMetadataOuterClass.ContractMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
- Throws:
java.io.IOException
-
hasCreatedAt
public boolean hasCreatedAt()
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
- Specified by:
hasCreatedAt
in interfaceContractMetadataOuterClass.ContractMetadataOrBuilder
- Returns:
- Whether the createdAt field is set.
-
getCreatedAt
public com.google.protobuf.Timestamp getCreatedAt()
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
- Specified by:
getCreatedAt
in interfaceContractMetadataOuterClass.ContractMetadataOrBuilder
- Returns:
- The createdAt.
-
setCreatedAt
public ContractMetadataOuterClass.ContractMetadata.Builder setCreatedAt(com.google.protobuf.Timestamp value)
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
-
setCreatedAt
public ContractMetadataOuterClass.ContractMetadata.Builder setCreatedAt(com.google.protobuf.Timestamp.Builder builderForValue)
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
-
mergeCreatedAt
public ContractMetadataOuterClass.ContractMetadata.Builder mergeCreatedAt(com.google.protobuf.Timestamp value)
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
-
clearCreatedAt
public ContractMetadataOuterClass.ContractMetadata.Builder clearCreatedAt()
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
-
getCreatedAtBuilder
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder()
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
-
getCreatedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder()
Ledger effective time of the transaction that created the contract. Required
.google.protobuf.Timestamp created_at = 1 [json_name = "createdAt"];
- Specified by:
getCreatedAtOrBuilder
in interfaceContractMetadataOuterClass.ContractMetadataOrBuilder
-
getContractKeyHash
public com.google.protobuf.ByteString getContractKeyHash()
Hash of the contract key if defined. Optional
bytes contract_key_hash = 2 [json_name = "contractKeyHash"];
- Specified by:
getContractKeyHash
in interfaceContractMetadataOuterClass.ContractMetadataOrBuilder
- Returns:
- The contractKeyHash.
-
setContractKeyHash
public ContractMetadataOuterClass.ContractMetadata.Builder setContractKeyHash(com.google.protobuf.ByteString value)
Hash of the contract key if defined. Optional
bytes contract_key_hash = 2 [json_name = "contractKeyHash"];
- Parameters:
value
- The contractKeyHash to set.- Returns:
- This builder for chaining.
-
clearContractKeyHash
public ContractMetadataOuterClass.ContractMetadata.Builder clearContractKeyHash()
Hash of the contract key if defined. Optional
bytes contract_key_hash = 2 [json_name = "contractKeyHash"];
- Returns:
- This builder for chaining.
-
getDriverMetadata
public com.google.protobuf.ByteString getDriverMetadata()
Driver-specific metadata. This is opaque and cannot be decoded. Optional
bytes driver_metadata = 3 [json_name = "driverMetadata"];
- Specified by:
getDriverMetadata
in interfaceContractMetadataOuterClass.ContractMetadataOrBuilder
- Returns:
- The driverMetadata.
-
setDriverMetadata
public ContractMetadataOuterClass.ContractMetadata.Builder setDriverMetadata(com.google.protobuf.ByteString value)
Driver-specific metadata. This is opaque and cannot be decoded. Optional
bytes driver_metadata = 3 [json_name = "driverMetadata"];
- Parameters:
value
- The driverMetadata to set.- Returns:
- This builder for chaining.
-
clearDriverMetadata
public ContractMetadataOuterClass.ContractMetadata.Builder clearDriverMetadata()
Driver-specific metadata. This is opaque and cannot be decoded. Optional
bytes driver_metadata = 3 [json_name = "driverMetadata"];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ContractMetadataOuterClass.ContractMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
mergeUnknownFields
public final ContractMetadataOuterClass.ContractMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContractMetadataOuterClass.ContractMetadata.Builder>
-
-