Class CommandsOuterClass.PrefetchContractKey.Builder

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

public static final class CommandsOuterClass.PrefetchContractKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder> implements CommandsOuterClass.PrefetchContractKeyOrBuilder
 Preload contracts
 
Protobuf type com.daml.ledger.api.v2.PrefetchContractKey
  • 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.PrefetchContractKey.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.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • getDefaultInstanceForType

      public CommandsOuterClass.PrefetchContractKey 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

      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.PrefetchContractKey.Builder>
    • setField

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • clearField

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • clearOneof

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • setRepeatedField

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • addRepeatedField

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • mergeFrom

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • mergeFrom

      public CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
      Throws:
      IOException
    • hasTemplateId

      public boolean hasTemplateId()
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
      Specified by:
      hasTemplateId in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
      Returns:
      Whether the templateId field is set.
    • getTemplateId

      public com.daml.ledger.api.v2.ValueOuterClass.Identifier getTemplateId()
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
      Specified by:
      getTemplateId in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
      Returns:
      The templateId.
    • setTemplateId

      public CommandsOuterClass.PrefetchContractKey.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • setTemplateId

      public CommandsOuterClass.PrefetchContractKey.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue)
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • mergeTemplateId

      public CommandsOuterClass.PrefetchContractKey.Builder mergeTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value)
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • clearTemplateId

       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • getTemplateIdBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
    • getTemplateIdOrBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
       The template of contract the client wants to prefetch.
       Both package-name and package-id reference identifier formats for the template-id are supported.
       Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4.
      
       Required
       
      .com.daml.ledger.api.v2.Identifier template_id = 1;
      Specified by:
      getTemplateIdOrBuilder in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
    • hasContractKey

      public boolean hasContractKey()
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
      Specified by:
      hasContractKey in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
      Returns:
      Whether the contractKey field is set.
    • getContractKey

      public com.daml.ledger.api.v2.ValueOuterClass.Value getContractKey()
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
      Specified by:
      getContractKey in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
      Returns:
      The contractKey.
    • setContractKey

      public CommandsOuterClass.PrefetchContractKey.Builder setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value)
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • setContractKey

      public CommandsOuterClass.PrefetchContractKey.Builder setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value.Builder builderForValue)
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • mergeContractKey

      public CommandsOuterClass.PrefetchContractKey.Builder mergeContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value)
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • clearContractKey

       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • getContractKeyBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.Value.Builder getContractKeyBuilder()
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
    • getContractKeyOrBuilder

      public com.daml.ledger.api.v2.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder()
       The key of the contract the client wants to prefetch.
      
       Required
       
      .com.daml.ledger.api.v2.Value contract_key = 2;
      Specified by:
      getContractKeyOrBuilder in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
    • hasLimit

      public boolean hasLimit()
       The number of contracts to prefetch for this key, if available.
       This is in addition to disclosed contracts.
       - for backward compatibility reason, absence is interpreted as 1
       - 0 is forbidden
       - capped at 2^31 - 1. The system may impose further limits.
      
       Optional
       
      optional uint32 limit = 3;
      Specified by:
      hasLimit in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
      Returns:
      Whether the limit field is set.
    • getLimit

      public int getLimit()
       The number of contracts to prefetch for this key, if available.
       This is in addition to disclosed contracts.
       - for backward compatibility reason, absence is interpreted as 1
       - 0 is forbidden
       - capped at 2^31 - 1. The system may impose further limits.
      
       Optional
       
      optional uint32 limit = 3;
      Specified by:
      getLimit in interface CommandsOuterClass.PrefetchContractKeyOrBuilder
      Returns:
      The limit.
    • setLimit

       The number of contracts to prefetch for this key, if available.
       This is in addition to disclosed contracts.
       - for backward compatibility reason, absence is interpreted as 1
       - 0 is forbidden
       - capped at 2^31 - 1. The system may impose further limits.
      
       Optional
       
      optional uint32 limit = 3;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

       The number of contracts to prefetch for this key, if available.
       This is in addition to disclosed contracts.
       - for backward compatibility reason, absence is interpreted as 1
       - 0 is forbidden
       - capped at 2^31 - 1. The system may impose further limits.
      
       Optional
       
      optional uint32 limit = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>
    • mergeUnknownFields

      public final CommandsOuterClass.PrefetchContractKey.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.PrefetchContractKey.Builder>