Class CommandsOuterClass.DisclosedContract.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.DisclosedContract.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
com.daml.ledger.api.v2.CommandsOuterClass.DisclosedContract.Builder
All Implemented Interfaces:
CommandsOuterClass.DisclosedContractOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CommandsOuterClass.DisclosedContract

public static final class CommandsOuterClass.DisclosedContract.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder> implements CommandsOuterClass.DisclosedContractOrBuilder
 An additional contract that is used to resolve
 contract & contract key lookups.
 
Protobuf type com.daml.ledger.api.v2.DisclosedContract
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • getDefaultInstanceForType

      public CommandsOuterClass.DisclosedContract getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CommandsOuterClass.DisclosedContract buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • setField

      public CommandsOuterClass.DisclosedContract.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • clearField

      public CommandsOuterClass.DisclosedContract.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • clearOneof

      public CommandsOuterClass.DisclosedContract.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • setRepeatedField

      public CommandsOuterClass.DisclosedContract.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • addRepeatedField

      public CommandsOuterClass.DisclosedContract.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • mergeFrom

      public CommandsOuterClass.DisclosedContract.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • mergeFrom

      public CommandsOuterClass.DisclosedContract.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.DisclosedContract.Builder>
      Throws:
      IOException
    • hasTemplateId

      public boolean hasTemplateId()
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
      Specified by:
      hasTemplateId in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      Whether the templateId field is set.
    • getTemplateId

      public com.daml.ledger.api.v2.ValueOuterClass.Identifier getTemplateId()
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
      Specified by:
      getTemplateId in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      The templateId.
    • setTemplateId

      public CommandsOuterClass.DisclosedContract.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • setTemplateId

      public CommandsOuterClass.DisclosedContract.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue)
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • mergeTemplateId

      public CommandsOuterClass.DisclosedContract.Builder mergeTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • clearTemplateId

       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • getTemplateIdBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • getTemplateIdOrBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
       The template id of the contract.
       The identifier uses the package-id reference format.
      
       If provided, used to validate the template id of the contract serialized in the created_event_blob.
      
       Optional
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
      Specified by:
      getTemplateIdOrBuilder in interface CommandsOuterClass.DisclosedContractOrBuilder
    • getContractId

      public String getContractId()
       The contract id
      
       If provided, used to validate the contract id of the contract serialized in the created_event_blob.
      
       Optional
       
      string contract_id = 2;
      Specified by:
      getContractId in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      The contractId.
    • getContractIdBytes

      public com.google.protobuf.ByteString getContractIdBytes()
       The contract id
      
       If provided, used to validate the contract id of the contract serialized in the created_event_blob.
      
       Optional
       
      string contract_id = 2;
      Specified by:
      getContractIdBytes in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      The bytes for contractId.
    • setContractId

       The contract id
      
       If provided, used to validate the contract id of the contract serialized in the created_event_blob.
      
       Optional
       
      string contract_id = 2;
      Parameters:
      value - The contractId to set.
      Returns:
      This builder for chaining.
    • clearContractId

       The contract id
      
       If provided, used to validate the contract id of the contract serialized in the created_event_blob.
      
       Optional
       
      string contract_id = 2;
      Returns:
      This builder for chaining.
    • setContractIdBytes

      public CommandsOuterClass.DisclosedContract.Builder setContractIdBytes(com.google.protobuf.ByteString value)
       The contract id
      
       If provided, used to validate the contract id of the contract serialized in the created_event_blob.
      
       Optional
       
      string contract_id = 2;
      Parameters:
      value - The bytes for contractId to set.
      Returns:
      This builder for chaining.
    • getCreatedEventBlob

      public com.google.protobuf.ByteString getCreatedEventBlob()
       Opaque byte string containing the complete payload required by the Daml engine
       to reconstruct a contract not known to the receiving participant.
      
       Required: must be non-empty
       
      bytes created_event_blob = 3;
      Specified by:
      getCreatedEventBlob in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      The createdEventBlob.
    • setCreatedEventBlob

      public CommandsOuterClass.DisclosedContract.Builder setCreatedEventBlob(com.google.protobuf.ByteString value)
       Opaque byte string containing the complete payload required by the Daml engine
       to reconstruct a contract not known to the receiving participant.
      
       Required: must be non-empty
       
      bytes created_event_blob = 3;
      Parameters:
      value - The createdEventBlob to set.
      Returns:
      This builder for chaining.
    • clearCreatedEventBlob

      public CommandsOuterClass.DisclosedContract.Builder clearCreatedEventBlob()
       Opaque byte string containing the complete payload required by the Daml engine
       to reconstruct a contract not known to the receiving participant.
      
       Required: must be non-empty
       
      bytes created_event_blob = 3;
      Returns:
      This builder for chaining.
    • getSynchronizerId

      public String getSynchronizerId()
       The ID of the synchronizer where the contract is currently assigned
      
       Optional
       
      string synchronizer_id = 4;
      Specified by:
      getSynchronizerId in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      The synchronizerId.
    • getSynchronizerIdBytes

      public com.google.protobuf.ByteString getSynchronizerIdBytes()
       The ID of the synchronizer where the contract is currently assigned
      
       Optional
       
      string synchronizer_id = 4;
      Specified by:
      getSynchronizerIdBytes in interface CommandsOuterClass.DisclosedContractOrBuilder
      Returns:
      The bytes for synchronizerId.
    • setSynchronizerId

      public CommandsOuterClass.DisclosedContract.Builder setSynchronizerId(String value)
       The ID of the synchronizer where the contract is currently assigned
      
       Optional
       
      string synchronizer_id = 4;
      Parameters:
      value - The synchronizerId to set.
      Returns:
      This builder for chaining.
    • clearSynchronizerId

      public CommandsOuterClass.DisclosedContract.Builder clearSynchronizerId()
       The ID of the synchronizer where the contract is currently assigned
      
       Optional
       
      string synchronizer_id = 4;
      Returns:
      This builder for chaining.
    • setSynchronizerIdBytes

      public CommandsOuterClass.DisclosedContract.Builder setSynchronizerIdBytes(com.google.protobuf.ByteString value)
       The ID of the synchronizer where the contract is currently assigned
      
       Optional
       
      string synchronizer_id = 4;
      Parameters:
      value - The bytes for synchronizerId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CommandsOuterClass.DisclosedContract.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
    • mergeUnknownFields

      public final CommandsOuterClass.DisclosedContract.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>