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

com.digitalasset.daml_lf_1_7.DamlLf1 Maven / Gradle / Ivy

There is a newer version: 100.13.56-snapshot.20200331.3729.0.b43b8d86
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/digitalasset/daml_lf_1_7/daml_lf_1.proto

package com.digitalasset.daml_lf_1_7;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Builtin primitive types
   * 
* * Protobuf enum {@code daml_lf_1.PrimType} */ public enum PrimType implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Builtin type 'Unit'
     * 
* * UNIT = 0; */ UNIT(0), /** *
     * Builtin type 'Bool'
     * 
* * BOOL = 1; */ BOOL(1), /** *
     * Builtin type 'Int64'
     * 
* * INT64 = 2; */ INT64(2), /** *
     * Builtin type for legacy 'Decimal'
     * Alias for (Numeric 10)
     * *available in version < 1.7*
     * 
* * DECIMAL = 3; */ DECIMAL(3), /** *
     * Builtin type 'Text'
     * 
* * TEXT = 5; */ TEXT(5), /** *
     * Builtin type 'Timestamp'
     * 
* * TIMESTAMP = 6; */ TIMESTAMP(6), /** *
     * Builtin tpe 'Party'
     * 
* * PARTY = 8; */ PARTY(8), /** *
     * Builtin type 'List'
     * 
* * LIST = 9; */ LIST(9), /** *
     * Builtin type 'Update'
     * 
* * UPDATE = 10; */ UPDATE(10), /** *
     * Builtin type 'Scenario'
     * 
* * SCENARIO = 11; */ SCENARIO(11), /** *
     * Builtin type 'Date'
     * 
* * DATE = 12; */ DATE(12), /** *
     * Builtin type 'ContractId'
     * 
* * CONTRACT_ID = 13; */ CONTRACT_ID(13), /** *
     * Builtin type 'Optional'
     * *Available in versions >= 1.1*
     * 
* * OPTIONAL = 14; */ OPTIONAL(14), /** *
     * Builtin type `TArrow`
     * *Available in versions >= 1.1*
     * 
* * ARROW = 15; */ ARROW(15), /** *
     * Builtin type 'TMap`
     * *Available in versions >= 1.3*
     * 
* * MAP = 16; */ MAP(16), /** *
     * Builtin type 'Numeric'
     * *Available in versions >= 1.7*
     * 
* * NUMERIC = 17; */ NUMERIC(17), /** *
     * Builtin type 'Any'
     * *Available in versions >= 1.7*
     * 
* * ANY = 18; */ ANY(18), /** *
     * Builtin type 'TypeRep'
     * *Available in versions >= 1.7*
     * 
* * TYPE_REP = 19; */ TYPE_REP(19), UNRECOGNIZED(-1), ; /** *
     * Builtin type 'Unit'
     * 
* * UNIT = 0; */ public static final int UNIT_VALUE = 0; /** *
     * Builtin type 'Bool'
     * 
* * BOOL = 1; */ public static final int BOOL_VALUE = 1; /** *
     * Builtin type 'Int64'
     * 
* * INT64 = 2; */ public static final int INT64_VALUE = 2; /** *
     * Builtin type for legacy 'Decimal'
     * Alias for (Numeric 10)
     * *available in version < 1.7*
     * 
* * DECIMAL = 3; */ public static final int DECIMAL_VALUE = 3; /** *
     * Builtin type 'Text'
     * 
* * TEXT = 5; */ public static final int TEXT_VALUE = 5; /** *
     * Builtin type 'Timestamp'
     * 
* * TIMESTAMP = 6; */ public static final int TIMESTAMP_VALUE = 6; /** *
     * Builtin tpe 'Party'
     * 
* * PARTY = 8; */ public static final int PARTY_VALUE = 8; /** *
     * Builtin type 'List'
     * 
* * LIST = 9; */ public static final int LIST_VALUE = 9; /** *
     * Builtin type 'Update'
     * 
* * UPDATE = 10; */ public static final int UPDATE_VALUE = 10; /** *
     * Builtin type 'Scenario'
     * 
* * SCENARIO = 11; */ public static final int SCENARIO_VALUE = 11; /** *
     * Builtin type 'Date'
     * 
* * DATE = 12; */ public static final int DATE_VALUE = 12; /** *
     * Builtin type 'ContractId'
     * 
* * CONTRACT_ID = 13; */ public static final int CONTRACT_ID_VALUE = 13; /** *
     * Builtin type 'Optional'
     * *Available in versions >= 1.1*
     * 
* * OPTIONAL = 14; */ public static final int OPTIONAL_VALUE = 14; /** *
     * Builtin type `TArrow`
     * *Available in versions >= 1.1*
     * 
* * ARROW = 15; */ public static final int ARROW_VALUE = 15; /** *
     * Builtin type 'TMap`
     * *Available in versions >= 1.3*
     * 
* * MAP = 16; */ public static final int MAP_VALUE = 16; /** *
     * Builtin type 'Numeric'
     * *Available in versions >= 1.7*
     * 
* * NUMERIC = 17; */ public static final int NUMERIC_VALUE = 17; /** *
     * Builtin type 'Any'
     * *Available in versions >= 1.7*
     * 
* * ANY = 18; */ public static final int ANY_VALUE = 18; /** *
     * Builtin type 'TypeRep'
     * *Available in versions >= 1.7*
     * 
* * TYPE_REP = 19; */ public static final int TYPE_REP_VALUE = 19; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PrimType valueOf(int value) { return forNumber(value); } public static PrimType forNumber(int value) { switch (value) { case 0: return UNIT; case 1: return BOOL; case 2: return INT64; case 3: return DECIMAL; case 5: return TEXT; case 6: return TIMESTAMP; case 8: return PARTY; case 9: return LIST; case 10: return UPDATE; case 11: return SCENARIO; case 12: return DATE; case 13: return CONTRACT_ID; case 14: return OPTIONAL; case 15: return ARROW; case 16: return MAP; case 17: return NUMERIC; case 18: return ANY; case 19: return TYPE_REP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PrimType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PrimType findValueByNumber(int number) { return PrimType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.getDescriptor().getEnumTypes().get(0); } private static final PrimType[] VALUES = values(); public static PrimType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PrimType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:daml_lf_1.PrimType) } /** *
   * Primitive constructors
   * 
* * Protobuf enum {@code daml_lf_1.PrimCon} */ public enum PrimCon implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Unit value '()'
     * 
* * CON_UNIT = 0; */ CON_UNIT(0), /** *
     * 'False' boolean value
     * 
* * CON_FALSE = 1; */ CON_FALSE(1), /** *
     * 'True' boolean value
     * 
* * CON_TRUE = 2; */ CON_TRUE(2), UNRECOGNIZED(-1), ; /** *
     * Unit value '()'
     * 
* * CON_UNIT = 0; */ public static final int CON_UNIT_VALUE = 0; /** *
     * 'False' boolean value
     * 
* * CON_FALSE = 1; */ public static final int CON_FALSE_VALUE = 1; /** *
     * 'True' boolean value
     * 
* * CON_TRUE = 2; */ public static final int CON_TRUE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PrimCon valueOf(int value) { return forNumber(value); } public static PrimCon forNumber(int value) { switch (value) { case 0: return CON_UNIT; case 1: return CON_FALSE; case 2: return CON_TRUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PrimCon> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PrimCon findValueByNumber(int number) { return PrimCon.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.getDescriptor().getEnumTypes().get(1); } private static final PrimCon[] VALUES = values(); public static PrimCon valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PrimCon(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:daml_lf_1.PrimCon) } /** *
   * Builtin functions
   * Refer to DAML-LF major version 1 specification for types and behavior of those.
   * 
* * Protobuf enum {@code daml_lf_1.BuiltinFunction} */ public enum BuiltinFunction implements com.google.protobuf.ProtocolMessageEnum { /** *
     * *Available in versions < 1.7*
     * 
* * ADD_DECIMAL = 0; */ ADD_DECIMAL(0), /** *
     * *Available in versions < 1.7*
     * 
* * SUB_DECIMAL = 1; */ SUB_DECIMAL(1), /** *
     * *Available in versions < 1.7*
     * 
* * MUL_DECIMAL = 2; */ MUL_DECIMAL(2), /** *
     * *Available in versions < 1.7*
     * 
* * DIV_DECIMAL = 3; */ DIV_DECIMAL(3), /** *
     * *Available in versions < 1.7*
     * 
* * ROUND_DECIMAL = 6; */ ROUND_DECIMAL(6), /** *
     * *Available in versions >= 1.7*
     * 
* * ADD_NUMERIC = 107; */ ADD_NUMERIC(107), /** *
     * *Available in versions >= 1.7*
     * 
* * SUB_NUMERIC = 108; */ SUB_NUMERIC(108), /** *
     * *Available in versions >= 1.7*
     * 
* * MUL_NUMERIC = 109; */ MUL_NUMERIC(109), /** *
     * *Available in versions >= 1.7*
     * 
* * DIV_NUMERIC = 110; */ DIV_NUMERIC(110), /** *
     * *Available in versions >= 1.7*
     * 
* * ROUND_NUMERIC = 111; */ ROUND_NUMERIC(111), /** *
     * *Available in versions >= 1.7*
     * 
* * CAST_NUMERIC = 121; */ CAST_NUMERIC(121), /** *
     * *Available in versions >= 1.7*
     * 
* * SHIFT_NUMERIC = 122; */ SHIFT_NUMERIC(122), /** * ADD_INT64 = 7; */ ADD_INT64(7), /** * SUB_INT64 = 8; */ SUB_INT64(8), /** * MUL_INT64 = 9; */ MUL_INT64(9), /** * DIV_INT64 = 10; */ DIV_INT64(10), /** * MOD_INT64 = 11; */ MOD_INT64(11), /** * EXP_INT64 = 12; */ EXP_INT64(12), /** * FOLDL = 20; */ FOLDL(20), /** * FOLDR = 21; */ FOLDR(21), /** * MAP_EMPTY = 96; */ MAP_EMPTY(96), /** * MAP_INSERT = 97; */ MAP_INSERT(97), /** * MAP_LOOKUP = 98; */ MAP_LOOKUP(98), /** * MAP_DELETE = 99; */ MAP_DELETE(99), /** * MAP_TO_LIST = 100; */ MAP_TO_LIST(100), /** * MAP_SIZE = 101; */ MAP_SIZE(101), /** * EXPLODE_TEXT = 23; */ EXPLODE_TEXT(23), /** * APPEND_TEXT = 24; */ APPEND_TEXT(24), /** * ERROR = 25; */ ERROR(25), /** * LEQ_INT64 = 33; */ LEQ_INT64(33), /** *
     * *Available in versions < 1.7*
     * 
* * LEQ_DECIMAL = 34; */ LEQ_DECIMAL(34), /** *
     * *Available in versions >= 1.7*
     * 
* * LEQ_NUMERIC = 112; */ LEQ_NUMERIC(112), /** * LEQ_TEXT = 36; */ LEQ_TEXT(36), /** * LEQ_TIMESTAMP = 37; */ LEQ_TIMESTAMP(37), /** * LEQ_DATE = 67; */ LEQ_DATE(67), /** *
     * *Available in versions >= 1.1*
     * 
* * LEQ_PARTY = 89; */ LEQ_PARTY(89), /** * LESS_INT64 = 39; */ LESS_INT64(39), /** *
     * *Available in versions < 1.7*
     * 
* * LESS_DECIMAL = 40; */ LESS_DECIMAL(40), /** *
     * *Available in versions >= 1.7*
     * 
* * LESS_NUMERIC = 113; */ LESS_NUMERIC(113), /** * LESS_TEXT = 42; */ LESS_TEXT(42), /** * LESS_TIMESTAMP = 43; */ LESS_TIMESTAMP(43), /** * LESS_DATE = 68; */ LESS_DATE(68), /** *
     * *Available in versions >= 1.1*
     * 
* * LESS_PARTY = 90; */ LESS_PARTY(90), /** * GEQ_INT64 = 45; */ GEQ_INT64(45), /** *
     * *Available in versions < 1.7*
     * 
* * GEQ_DECIMAL = 46; */ GEQ_DECIMAL(46), /** *
     * *Available in versions >= 1.7*
     * 
* * GEQ_NUMERIC = 114; */ GEQ_NUMERIC(114), /** * GEQ_TEXT = 48; */ GEQ_TEXT(48), /** * GEQ_TIMESTAMP = 49; */ GEQ_TIMESTAMP(49), /** * GEQ_DATE = 69; */ GEQ_DATE(69), /** *
     * *Available in versions >= 1.1*
     * 
* * GEQ_PARTY = 91; */ GEQ_PARTY(91), /** * GREATER_INT64 = 51; */ GREATER_INT64(51), /** *
     * *Available in versions < 1.7*
     * 
* * GREATER_DECIMAL = 52; */ GREATER_DECIMAL(52), /** *
     * *Available in versions >= 1.7*
     * 
* * GREATER_NUMERIC = 115; */ GREATER_NUMERIC(115), /** * GREATER_TEXT = 54; */ GREATER_TEXT(54), /** * GREATER_TIMESTAMP = 55; */ GREATER_TIMESTAMP(55), /** * GREATER_DATE = 70; */ GREATER_DATE(70), /** *
     * *Available in versions >= 1.1*
     * 
* * GREATER_PARTY = 92; */ GREATER_PARTY(92), /** * TO_TEXT_INT64 = 57; */ TO_TEXT_INT64(57), /** *
     * *Available in versions < 1.7*
     * 
* * TO_TEXT_DECIMAL = 58; */ TO_TEXT_DECIMAL(58), /** *
     * *Available in versions >= 1.7*
     * 
* * TO_TEXT_NUMERIC = 116; */ TO_TEXT_NUMERIC(116), /** * TO_TEXT_TEXT = 60; */ TO_TEXT_TEXT(60), /** * TO_TEXT_TIMESTAMP = 61; */ TO_TEXT_TIMESTAMP(61), /** * TO_TEXT_DATE = 71; */ TO_TEXT_DATE(71), /** *
     * legacy, remove in next major version
     * 
* * TO_QUOTED_TEXT_PARTY = 63; */ TO_QUOTED_TEXT_PARTY(63), /** *
     * *Available in versions >= 1.2*
     * 
* * TO_TEXT_PARTY = 94; */ TO_TEXT_PARTY(94), /** *
     * *Available in versions >= 1.2*, was named FROM_TEXT_PARTY in 1.2, 1.3 and 1.4
     * 
* * FROM_TEXT_PARTY = 95; */ FROM_TEXT_PARTY(95), /** *
     * *Available in versions >= 1.5*
     * 
* * FROM_TEXT_INT64 = 103; */ FROM_TEXT_INT64(103), /** *
     * *Available in versions 1.5 and 1.6
     * 
* * FROM_TEXT_DECIMAL = 104; */ FROM_TEXT_DECIMAL(104), /** *
     * *Available in versions >= 1.7*
     * 
* * FROM_TEXT_NUMERIC = 117; */ FROM_TEXT_NUMERIC(117), /** *
     * *Available in versions >= 1.2*
     * 
* * SHA256_TEXT = 93; */ SHA256_TEXT(93), /** *
     * Date -> Int64
     * 
* * DATE_TO_UNIX_DAYS = 72; */ DATE_TO_UNIX_DAYS(72), /** *
     * Int64 -> Date
     * 
* * UNIX_DAYS_TO_DATE = 73; */ UNIX_DAYS_TO_DATE(73), /** *
     * Timestamp -> Int64
     * 
* * TIMESTAMP_TO_UNIX_MICROSECONDS = 74; */ TIMESTAMP_TO_UNIX_MICROSECONDS(74), /** *
     * Int64 -> Timestamp
     * 
* * UNIX_MICROSECONDS_TO_TIMESTAMP = 75; */ UNIX_MICROSECONDS_TO_TIMESTAMP(75), /** *
     * *Available in versions < 1.7*
     * 
* * INT64_TO_DECIMAL = 76; */ INT64_TO_DECIMAL(76), /** *
     * *Available in versions < 1.7*
     * 
* * DECIMAL_TO_INT64 = 77; */ DECIMAL_TO_INT64(77), /** *
     * *Available in versions >= 1.7*
     * 
* * INT64_TO_NUMERIC = 118; */ INT64_TO_NUMERIC(118), /** *
     * *Available in versions >= 1.7*
     * 
* * NUMERIC_TO_INT64 = 119; */ NUMERIC_TO_INT64(119), /** * IMPLODE_TEXT = 78; */ IMPLODE_TEXT(78), /** * EQUAL_INT64 = 79; */ EQUAL_INT64(79), /** *
     * *Available in versions < 1.7*
     * 
* * EQUAL_DECIMAL = 80; */ EQUAL_DECIMAL(80), /** *
     * *Available in versions >= 1.7*
     * 
* * EQUAL_NUMERIC = 120; */ EQUAL_NUMERIC(120), /** * EQUAL_TEXT = 81; */ EQUAL_TEXT(81), /** * EQUAL_TIMESTAMP = 82; */ EQUAL_TIMESTAMP(82), /** * EQUAL_DATE = 83; */ EQUAL_DATE(83), /** * EQUAL_PARTY = 84; */ EQUAL_PARTY(84), /** * EQUAL_BOOL = 85; */ EQUAL_BOOL(85), /** * EQUAL_CONTRACT_ID = 86; */ EQUAL_CONTRACT_ID(86), /** * EQUAL_LIST = 87; */ EQUAL_LIST(87), /** * EQUAL_TYPE_REP = 123; */ EQUAL_TYPE_REP(123), /** * TRACE = 88; */ TRACE(88), /** * COERCE_CONTRACT_ID = 102; */ COERCE_CONTRACT_ID(102), /** *
     * *Available in versions >= 1.6*
     * 
* * TEXT_FROM_CODE_POINTS = 105; */ TEXT_FROM_CODE_POINTS(105), /** *
     * *Available in versions >= 1.6*
     * 
* * TEXT_TO_CODE_POINTS = 106; */ TEXT_TO_CODE_POINTS(106), UNRECOGNIZED(-1), ; /** *
     * *Available in versions < 1.7*
     * 
* * ADD_DECIMAL = 0; */ public static final int ADD_DECIMAL_VALUE = 0; /** *
     * *Available in versions < 1.7*
     * 
* * SUB_DECIMAL = 1; */ public static final int SUB_DECIMAL_VALUE = 1; /** *
     * *Available in versions < 1.7*
     * 
* * MUL_DECIMAL = 2; */ public static final int MUL_DECIMAL_VALUE = 2; /** *
     * *Available in versions < 1.7*
     * 
* * DIV_DECIMAL = 3; */ public static final int DIV_DECIMAL_VALUE = 3; /** *
     * *Available in versions < 1.7*
     * 
* * ROUND_DECIMAL = 6; */ public static final int ROUND_DECIMAL_VALUE = 6; /** *
     * *Available in versions >= 1.7*
     * 
* * ADD_NUMERIC = 107; */ public static final int ADD_NUMERIC_VALUE = 107; /** *
     * *Available in versions >= 1.7*
     * 
* * SUB_NUMERIC = 108; */ public static final int SUB_NUMERIC_VALUE = 108; /** *
     * *Available in versions >= 1.7*
     * 
* * MUL_NUMERIC = 109; */ public static final int MUL_NUMERIC_VALUE = 109; /** *
     * *Available in versions >= 1.7*
     * 
* * DIV_NUMERIC = 110; */ public static final int DIV_NUMERIC_VALUE = 110; /** *
     * *Available in versions >= 1.7*
     * 
* * ROUND_NUMERIC = 111; */ public static final int ROUND_NUMERIC_VALUE = 111; /** *
     * *Available in versions >= 1.7*
     * 
* * CAST_NUMERIC = 121; */ public static final int CAST_NUMERIC_VALUE = 121; /** *
     * *Available in versions >= 1.7*
     * 
* * SHIFT_NUMERIC = 122; */ public static final int SHIFT_NUMERIC_VALUE = 122; /** * ADD_INT64 = 7; */ public static final int ADD_INT64_VALUE = 7; /** * SUB_INT64 = 8; */ public static final int SUB_INT64_VALUE = 8; /** * MUL_INT64 = 9; */ public static final int MUL_INT64_VALUE = 9; /** * DIV_INT64 = 10; */ public static final int DIV_INT64_VALUE = 10; /** * MOD_INT64 = 11; */ public static final int MOD_INT64_VALUE = 11; /** * EXP_INT64 = 12; */ public static final int EXP_INT64_VALUE = 12; /** * FOLDL = 20; */ public static final int FOLDL_VALUE = 20; /** * FOLDR = 21; */ public static final int FOLDR_VALUE = 21; /** * MAP_EMPTY = 96; */ public static final int MAP_EMPTY_VALUE = 96; /** * MAP_INSERT = 97; */ public static final int MAP_INSERT_VALUE = 97; /** * MAP_LOOKUP = 98; */ public static final int MAP_LOOKUP_VALUE = 98; /** * MAP_DELETE = 99; */ public static final int MAP_DELETE_VALUE = 99; /** * MAP_TO_LIST = 100; */ public static final int MAP_TO_LIST_VALUE = 100; /** * MAP_SIZE = 101; */ public static final int MAP_SIZE_VALUE = 101; /** * EXPLODE_TEXT = 23; */ public static final int EXPLODE_TEXT_VALUE = 23; /** * APPEND_TEXT = 24; */ public static final int APPEND_TEXT_VALUE = 24; /** * ERROR = 25; */ public static final int ERROR_VALUE = 25; /** * LEQ_INT64 = 33; */ public static final int LEQ_INT64_VALUE = 33; /** *
     * *Available in versions < 1.7*
     * 
* * LEQ_DECIMAL = 34; */ public static final int LEQ_DECIMAL_VALUE = 34; /** *
     * *Available in versions >= 1.7*
     * 
* * LEQ_NUMERIC = 112; */ public static final int LEQ_NUMERIC_VALUE = 112; /** * LEQ_TEXT = 36; */ public static final int LEQ_TEXT_VALUE = 36; /** * LEQ_TIMESTAMP = 37; */ public static final int LEQ_TIMESTAMP_VALUE = 37; /** * LEQ_DATE = 67; */ public static final int LEQ_DATE_VALUE = 67; /** *
     * *Available in versions >= 1.1*
     * 
* * LEQ_PARTY = 89; */ public static final int LEQ_PARTY_VALUE = 89; /** * LESS_INT64 = 39; */ public static final int LESS_INT64_VALUE = 39; /** *
     * *Available in versions < 1.7*
     * 
* * LESS_DECIMAL = 40; */ public static final int LESS_DECIMAL_VALUE = 40; /** *
     * *Available in versions >= 1.7*
     * 
* * LESS_NUMERIC = 113; */ public static final int LESS_NUMERIC_VALUE = 113; /** * LESS_TEXT = 42; */ public static final int LESS_TEXT_VALUE = 42; /** * LESS_TIMESTAMP = 43; */ public static final int LESS_TIMESTAMP_VALUE = 43; /** * LESS_DATE = 68; */ public static final int LESS_DATE_VALUE = 68; /** *
     * *Available in versions >= 1.1*
     * 
* * LESS_PARTY = 90; */ public static final int LESS_PARTY_VALUE = 90; /** * GEQ_INT64 = 45; */ public static final int GEQ_INT64_VALUE = 45; /** *
     * *Available in versions < 1.7*
     * 
* * GEQ_DECIMAL = 46; */ public static final int GEQ_DECIMAL_VALUE = 46; /** *
     * *Available in versions >= 1.7*
     * 
* * GEQ_NUMERIC = 114; */ public static final int GEQ_NUMERIC_VALUE = 114; /** * GEQ_TEXT = 48; */ public static final int GEQ_TEXT_VALUE = 48; /** * GEQ_TIMESTAMP = 49; */ public static final int GEQ_TIMESTAMP_VALUE = 49; /** * GEQ_DATE = 69; */ public static final int GEQ_DATE_VALUE = 69; /** *
     * *Available in versions >= 1.1*
     * 
* * GEQ_PARTY = 91; */ public static final int GEQ_PARTY_VALUE = 91; /** * GREATER_INT64 = 51; */ public static final int GREATER_INT64_VALUE = 51; /** *
     * *Available in versions < 1.7*
     * 
* * GREATER_DECIMAL = 52; */ public static final int GREATER_DECIMAL_VALUE = 52; /** *
     * *Available in versions >= 1.7*
     * 
* * GREATER_NUMERIC = 115; */ public static final int GREATER_NUMERIC_VALUE = 115; /** * GREATER_TEXT = 54; */ public static final int GREATER_TEXT_VALUE = 54; /** * GREATER_TIMESTAMP = 55; */ public static final int GREATER_TIMESTAMP_VALUE = 55; /** * GREATER_DATE = 70; */ public static final int GREATER_DATE_VALUE = 70; /** *
     * *Available in versions >= 1.1*
     * 
* * GREATER_PARTY = 92; */ public static final int GREATER_PARTY_VALUE = 92; /** * TO_TEXT_INT64 = 57; */ public static final int TO_TEXT_INT64_VALUE = 57; /** *
     * *Available in versions < 1.7*
     * 
* * TO_TEXT_DECIMAL = 58; */ public static final int TO_TEXT_DECIMAL_VALUE = 58; /** *
     * *Available in versions >= 1.7*
     * 
* * TO_TEXT_NUMERIC = 116; */ public static final int TO_TEXT_NUMERIC_VALUE = 116; /** * TO_TEXT_TEXT = 60; */ public static final int TO_TEXT_TEXT_VALUE = 60; /** * TO_TEXT_TIMESTAMP = 61; */ public static final int TO_TEXT_TIMESTAMP_VALUE = 61; /** * TO_TEXT_DATE = 71; */ public static final int TO_TEXT_DATE_VALUE = 71; /** *
     * legacy, remove in next major version
     * 
* * TO_QUOTED_TEXT_PARTY = 63; */ public static final int TO_QUOTED_TEXT_PARTY_VALUE = 63; /** *
     * *Available in versions >= 1.2*
     * 
* * TO_TEXT_PARTY = 94; */ public static final int TO_TEXT_PARTY_VALUE = 94; /** *
     * *Available in versions >= 1.2*, was named FROM_TEXT_PARTY in 1.2, 1.3 and 1.4
     * 
* * FROM_TEXT_PARTY = 95; */ public static final int FROM_TEXT_PARTY_VALUE = 95; /** *
     * *Available in versions >= 1.5*
     * 
* * FROM_TEXT_INT64 = 103; */ public static final int FROM_TEXT_INT64_VALUE = 103; /** *
     * *Available in versions 1.5 and 1.6
     * 
* * FROM_TEXT_DECIMAL = 104; */ public static final int FROM_TEXT_DECIMAL_VALUE = 104; /** *
     * *Available in versions >= 1.7*
     * 
* * FROM_TEXT_NUMERIC = 117; */ public static final int FROM_TEXT_NUMERIC_VALUE = 117; /** *
     * *Available in versions >= 1.2*
     * 
* * SHA256_TEXT = 93; */ public static final int SHA256_TEXT_VALUE = 93; /** *
     * Date -> Int64
     * 
* * DATE_TO_UNIX_DAYS = 72; */ public static final int DATE_TO_UNIX_DAYS_VALUE = 72; /** *
     * Int64 -> Date
     * 
* * UNIX_DAYS_TO_DATE = 73; */ public static final int UNIX_DAYS_TO_DATE_VALUE = 73; /** *
     * Timestamp -> Int64
     * 
* * TIMESTAMP_TO_UNIX_MICROSECONDS = 74; */ public static final int TIMESTAMP_TO_UNIX_MICROSECONDS_VALUE = 74; /** *
     * Int64 -> Timestamp
     * 
* * UNIX_MICROSECONDS_TO_TIMESTAMP = 75; */ public static final int UNIX_MICROSECONDS_TO_TIMESTAMP_VALUE = 75; /** *
     * *Available in versions < 1.7*
     * 
* * INT64_TO_DECIMAL = 76; */ public static final int INT64_TO_DECIMAL_VALUE = 76; /** *
     * *Available in versions < 1.7*
     * 
* * DECIMAL_TO_INT64 = 77; */ public static final int DECIMAL_TO_INT64_VALUE = 77; /** *
     * *Available in versions >= 1.7*
     * 
* * INT64_TO_NUMERIC = 118; */ public static final int INT64_TO_NUMERIC_VALUE = 118; /** *
     * *Available in versions >= 1.7*
     * 
* * NUMERIC_TO_INT64 = 119; */ public static final int NUMERIC_TO_INT64_VALUE = 119; /** * IMPLODE_TEXT = 78; */ public static final int IMPLODE_TEXT_VALUE = 78; /** * EQUAL_INT64 = 79; */ public static final int EQUAL_INT64_VALUE = 79; /** *
     * *Available in versions < 1.7*
     * 
* * EQUAL_DECIMAL = 80; */ public static final int EQUAL_DECIMAL_VALUE = 80; /** *
     * *Available in versions >= 1.7*
     * 
* * EQUAL_NUMERIC = 120; */ public static final int EQUAL_NUMERIC_VALUE = 120; /** * EQUAL_TEXT = 81; */ public static final int EQUAL_TEXT_VALUE = 81; /** * EQUAL_TIMESTAMP = 82; */ public static final int EQUAL_TIMESTAMP_VALUE = 82; /** * EQUAL_DATE = 83; */ public static final int EQUAL_DATE_VALUE = 83; /** * EQUAL_PARTY = 84; */ public static final int EQUAL_PARTY_VALUE = 84; /** * EQUAL_BOOL = 85; */ public static final int EQUAL_BOOL_VALUE = 85; /** * EQUAL_CONTRACT_ID = 86; */ public static final int EQUAL_CONTRACT_ID_VALUE = 86; /** * EQUAL_LIST = 87; */ public static final int EQUAL_LIST_VALUE = 87; /** * EQUAL_TYPE_REP = 123; */ public static final int EQUAL_TYPE_REP_VALUE = 123; /** * TRACE = 88; */ public static final int TRACE_VALUE = 88; /** * COERCE_CONTRACT_ID = 102; */ public static final int COERCE_CONTRACT_ID_VALUE = 102; /** *
     * *Available in versions >= 1.6*
     * 
* * TEXT_FROM_CODE_POINTS = 105; */ public static final int TEXT_FROM_CODE_POINTS_VALUE = 105; /** *
     * *Available in versions >= 1.6*
     * 
* * TEXT_TO_CODE_POINTS = 106; */ public static final int TEXT_TO_CODE_POINTS_VALUE = 106; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BuiltinFunction valueOf(int value) { return forNumber(value); } public static BuiltinFunction forNumber(int value) { switch (value) { case 0: return ADD_DECIMAL; case 1: return SUB_DECIMAL; case 2: return MUL_DECIMAL; case 3: return DIV_DECIMAL; case 6: return ROUND_DECIMAL; case 107: return ADD_NUMERIC; case 108: return SUB_NUMERIC; case 109: return MUL_NUMERIC; case 110: return DIV_NUMERIC; case 111: return ROUND_NUMERIC; case 121: return CAST_NUMERIC; case 122: return SHIFT_NUMERIC; case 7: return ADD_INT64; case 8: return SUB_INT64; case 9: return MUL_INT64; case 10: return DIV_INT64; case 11: return MOD_INT64; case 12: return EXP_INT64; case 20: return FOLDL; case 21: return FOLDR; case 96: return MAP_EMPTY; case 97: return MAP_INSERT; case 98: return MAP_LOOKUP; case 99: return MAP_DELETE; case 100: return MAP_TO_LIST; case 101: return MAP_SIZE; case 23: return EXPLODE_TEXT; case 24: return APPEND_TEXT; case 25: return ERROR; case 33: return LEQ_INT64; case 34: return LEQ_DECIMAL; case 112: return LEQ_NUMERIC; case 36: return LEQ_TEXT; case 37: return LEQ_TIMESTAMP; case 67: return LEQ_DATE; case 89: return LEQ_PARTY; case 39: return LESS_INT64; case 40: return LESS_DECIMAL; case 113: return LESS_NUMERIC; case 42: return LESS_TEXT; case 43: return LESS_TIMESTAMP; case 68: return LESS_DATE; case 90: return LESS_PARTY; case 45: return GEQ_INT64; case 46: return GEQ_DECIMAL; case 114: return GEQ_NUMERIC; case 48: return GEQ_TEXT; case 49: return GEQ_TIMESTAMP; case 69: return GEQ_DATE; case 91: return GEQ_PARTY; case 51: return GREATER_INT64; case 52: return GREATER_DECIMAL; case 115: return GREATER_NUMERIC; case 54: return GREATER_TEXT; case 55: return GREATER_TIMESTAMP; case 70: return GREATER_DATE; case 92: return GREATER_PARTY; case 57: return TO_TEXT_INT64; case 58: return TO_TEXT_DECIMAL; case 116: return TO_TEXT_NUMERIC; case 60: return TO_TEXT_TEXT; case 61: return TO_TEXT_TIMESTAMP; case 71: return TO_TEXT_DATE; case 63: return TO_QUOTED_TEXT_PARTY; case 94: return TO_TEXT_PARTY; case 95: return FROM_TEXT_PARTY; case 103: return FROM_TEXT_INT64; case 104: return FROM_TEXT_DECIMAL; case 117: return FROM_TEXT_NUMERIC; case 93: return SHA256_TEXT; case 72: return DATE_TO_UNIX_DAYS; case 73: return UNIX_DAYS_TO_DATE; case 74: return TIMESTAMP_TO_UNIX_MICROSECONDS; case 75: return UNIX_MICROSECONDS_TO_TIMESTAMP; case 76: return INT64_TO_DECIMAL; case 77: return DECIMAL_TO_INT64; case 118: return INT64_TO_NUMERIC; case 119: return NUMERIC_TO_INT64; case 78: return IMPLODE_TEXT; case 79: return EQUAL_INT64; case 80: return EQUAL_DECIMAL; case 120: return EQUAL_NUMERIC; case 81: return EQUAL_TEXT; case 82: return EQUAL_TIMESTAMP; case 83: return EQUAL_DATE; case 84: return EQUAL_PARTY; case 85: return EQUAL_BOOL; case 86: return EQUAL_CONTRACT_ID; case 87: return EQUAL_LIST; case 123: return EQUAL_TYPE_REP; case 88: return TRACE; case 102: return COERCE_CONTRACT_ID; case 105: return TEXT_FROM_CODE_POINTS; case 106: return TEXT_TO_CODE_POINTS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BuiltinFunction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BuiltinFunction findValueByNumber(int number) { return BuiltinFunction.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.getDescriptor().getEnumTypes().get(2); } private static final BuiltinFunction[] VALUES = values(); public static BuiltinFunction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private BuiltinFunction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:daml_lf_1.BuiltinFunction) } public interface UnitOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Unit) com.google.protobuf.MessageOrBuilder { } /** *
   * Canonical encoding in one-ofs for cases that carry no meaningful
   * values.
   * 
* * Protobuf type {@code daml_lf_1.Unit} */ public static final class Unit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Unit) UnitOrBuilder { private static final long serialVersionUID = 0L; // Use Unit.newBuilder() to construct. private Unit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Unit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Unit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Unit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.class, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Unit)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Unit other = (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit 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.digitalasset.daml_lf_1_7.DamlLf1.Unit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit 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.digitalasset.daml_lf_1_7.DamlLf1.Unit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit 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.digitalasset.daml_lf_1_7.DamlLf1.Unit 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; } /** *
     * Canonical encoding in one-ofs for cases that carry no meaningful
     * values.
     * 
* * Protobuf type {@code daml_lf_1.Unit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Unit) com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.class, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Unit_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Unit build() { com.digitalasset.daml_lf_1_7.DamlLf1.Unit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Unit buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Unit result = new com.digitalasset.daml_lf_1_7.DamlLf1.Unit(this); 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.digitalasset.daml_lf_1_7.DamlLf1.Unit) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Unit other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Unit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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:daml_lf_1.Unit) } // @@protoc_insertion_point(class_scope:daml_lf_1.Unit) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Unit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Unit(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Unit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Unit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unit(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Unit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageRefOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.PackageRef) com.google.protobuf.MessageOrBuilder { /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ boolean hasSelf(); /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getSelf(); /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getSelfOrBuilder(); /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ java.lang.String getPackageIdStr(); /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ com.google.protobuf.ByteString getPackageIdStrBytes(); /** *
     * An index into `interned_package_ids` of the Package containing
     * this reference.
     * *Must be a valid interned package Id string*
     * 
* * int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"]; */ int getPackageIdInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.SumCase getSumCase(); } /** *
   * Package reference
   * 
* * Protobuf type {@code daml_lf_1.PackageRef} */ public static final class PackageRef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.PackageRef) PackageRefOrBuilder { private static final long serialVersionUID = 0L; // Use PackageRef.newBuilder() to construct. private PackageRef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PackageRef() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PackageRef(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PackageRef( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 2; sum_ = s; break; } case 24: { sumCase_ = 3; sum_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PackageRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.class, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder.class); } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { SELF(1), PACKAGE_ID_STR(2), PACKAGE_ID_INTERNED_STR(3), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return SELF; case 2: return PACKAGE_ID_STR; case 3: return PACKAGE_ID_INTERNED_STR; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int SELF_FIELD_NUMBER = 1; /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public boolean hasSelf() { return sumCase_ == 1; } /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getSelf() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getSelfOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int PACKAGE_ID_STR_FIELD_NUMBER = 2; /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public java.lang.String getPackageIdStr() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } 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(); if (sumCase_ == 2) { sum_ = s; } return s; } } /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public com.google.protobuf.ByteString getPackageIdStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 2) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PACKAGE_ID_INTERNED_STR_FIELD_NUMBER = 3; /** *
     * An index into `interned_package_ids` of the Package containing
     * this reference.
     * *Must be a valid interned package Id string*
     * 
* * int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"]; */ public int getPackageIdInternedStr() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sum_); } if (sumCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) sum_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) sum_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.PackageRef)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef other = (com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getSelf() .equals(other.getSelf())) return false; break; case 2: if (!getPackageIdStr() .equals(other.getPackageIdStr())) return false; break; case 3: if (getPackageIdInternedStr() != other.getPackageIdInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + SELF_FIELD_NUMBER; hash = (53 * hash) + getSelf().hashCode(); break; case 2: hash = (37 * hash) + PACKAGE_ID_STR_FIELD_NUMBER; hash = (53 * hash) + getPackageIdStr().hashCode(); break; case 3: hash = (37 * hash) + PACKAGE_ID_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getPackageIdInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef 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.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef 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.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef 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.digitalasset.daml_lf_1_7.DamlLf1.PackageRef 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; } /** *
     * Package reference
     * 
* * Protobuf type {@code daml_lf_1.PackageRef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.PackageRef) com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PackageRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.class, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef build() { com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef result = new com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef(this); if (sumCase_ == 1) { if (selfBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = selfBuilder_.build(); } } if (sumCase_ == 2) { result.sum_ = sum_; } if (sumCase_ == 3) { result.sum_ = sum_; } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.PackageRef) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.getDefaultInstance()) return this; switch (other.getSumCase()) { case SELF: { mergeSelf(other.getSelf()); break; } case PACKAGE_ID_STR: { sumCase_ = 2; sum_ = other.sum_; onChanged(); break; } case PACKAGE_ID_INTERNED_STR: { setPackageIdInternedStr(other.getPackageIdInternedStr()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> selfBuilder_; /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public boolean hasSelf() { return sumCase_ == 1; } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getSelf() { if (selfBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return selfBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public Builder setSelf(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (selfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { selfBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public Builder setSelf( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (selfBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { selfBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public Builder mergeSelf(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (selfBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { selfBuilder_.mergeFrom(value); } selfBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public Builder clearSelf() { if (selfBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } selfBuilder_.clear(); } return this; } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getSelfBuilder() { return getSelfFieldBuilder().getBuilder(); } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getSelfOrBuilder() { if ((sumCase_ == 1) && (selfBuilder_ != null)) { return selfBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1[json_name = "self"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getSelfFieldBuilder() { if (selfBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return selfBuilder_; } /** *
       * A `Package identifier` for an imported Package.
       * *Must be a list of valid packageId string*
       * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public java.lang.String getPackageIdStr() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 2) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * A `Package identifier` for an imported Package.
       * *Must be a list of valid packageId string*
       * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public com.google.protobuf.ByteString getPackageIdStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 2) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A `Package identifier` for an imported Package.
       * *Must be a list of valid packageId string*
       * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public Builder setPackageIdStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 2; sum_ = value; onChanged(); return this; } /** *
       * A `Package identifier` for an imported Package.
       * *Must be a list of valid packageId string*
       * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public Builder clearPackageIdStr() { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * A `Package identifier` for an imported Package.
       * *Must be a list of valid packageId string*
       * 
* * string package_id_str = 2[json_name = "packageIdStr"]; */ public Builder setPackageIdStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 2; sum_ = value; onChanged(); return this; } /** *
       * An index into `interned_package_ids` of the Package containing
       * this reference.
       * *Must be a valid interned package Id string*
       * 
* * int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"]; */ public int getPackageIdInternedStr() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } /** *
       * An index into `interned_package_ids` of the Package containing
       * this reference.
       * *Must be a valid interned package Id string*
       * 
* * int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"]; */ public Builder setPackageIdInternedStr(int value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** *
       * An index into `interned_package_ids` of the Package containing
       * this reference.
       * *Must be a valid interned package Id string*
       * 
* * int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"]; */ public Builder clearPackageIdInternedStr() { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; 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:daml_lf_1.PackageRef) } // @@protoc_insertion_point(class_scope:daml_lf_1.PackageRef) private static final com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackageRef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PackageRef(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.PackageRef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DottedNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DottedName) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ java.util.List getSegmentsList(); /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ int getSegmentsCount(); /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ java.lang.String getSegments(int index); /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ com.google.protobuf.ByteString getSegmentsBytes(int index); } /** *
   * A `name`, e.g. Util.Either.isLeft
   * *Available in version < 1.7*
   * 
* * Protobuf type {@code daml_lf_1.DottedName} */ public static final class DottedName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DottedName) DottedNameOrBuilder { private static final long serialVersionUID = 0L; // Use DottedName.newBuilder() to construct. private DottedName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DottedName() { segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DottedName(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DottedName( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } segments_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = segments_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.class, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder.class); } public static final int SEGMENTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList segments_; /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ public com.google.protobuf.ProtocolStringList getSegmentsList() { return segments_; } /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ public int getSegmentsCount() { return segments_.size(); } /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ public java.lang.String getSegments(int index) { return segments_.get(index); } /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1[json_name = "segments"]; */ public com.google.protobuf.ByteString getSegmentsBytes(int index) { return segments_.getByteString(index); } 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 { for (int i = 0; i < segments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, segments_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < segments_.size(); i++) { dataSize += computeStringSizeNoTag(segments_.getRaw(i)); } size += dataSize; size += 1 * getSegmentsList().size(); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DottedName)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DottedName other = (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) obj; if (!getSegmentsList() .equals(other.getSegmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSegmentsCount() > 0) { hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getSegmentsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName 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.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName 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.digitalasset.daml_lf_1_7.DamlLf1.DottedName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName 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.digitalasset.daml_lf_1_7.DamlLf1.DottedName 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; } /** *
     * A `name`, e.g. Util.Either.isLeft
     * *Available in version < 1.7*
     * 
* * Protobuf type {@code daml_lf_1.DottedName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DottedName) com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.class, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName build() { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName result = new com.digitalasset.daml_lf_1_7.DamlLf1.DottedName(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { segments_ = segments_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.segments_ = segments_; 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.digitalasset.daml_lf_1_7.DamlLf1.DottedName) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance()) return this; if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSegmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { segments_ = new com.google.protobuf.LazyStringArrayList(segments_); bitField0_ |= 0x00000001; } } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public com.google.protobuf.ProtocolStringList getSegmentsList() { return segments_.getUnmodifiableView(); } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public int getSegmentsCount() { return segments_.size(); } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public java.lang.String getSegments(int index) { return segments_.get(index); } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public com.google.protobuf.ByteString getSegmentsBytes(int index) { return segments_.getByteString(index); } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public Builder setSegments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.set(index, value); onChanged(); return this; } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public Builder addSegments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.add(value); onChanged(); return this; } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public Builder addAllSegments( java.lang.Iterable values) { ensureSegmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, segments_); onChanged(); return this; } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public Builder clearSegments() { segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1[json_name = "segments"]; */ public Builder addSegmentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSegmentsIsMutable(); segments_.add(value); 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:daml_lf_1.DottedName) } // @@protoc_insertion_point(class_scope:daml_lf_1.DottedName) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DottedName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DottedName(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DottedName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DottedName(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DottedName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModuleRefOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.ModuleRef) com.google.protobuf.MessageOrBuilder { /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ boolean hasPackageRef(); /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef getPackageRef(); /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder(); /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ boolean hasModuleNameDname(); /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getModuleNameDname(); /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder(); /** *
     * *Available in version >= 1.7*
     * 
* * int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"]; */ int getModuleNameInternedDname(); public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.ModuleNameCase getModuleNameCase(); } /** *
   * A fully qualified module reference
   * 
* * Protobuf type {@code daml_lf_1.ModuleRef} */ public static final class ModuleRef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.ModuleRef) ModuleRefOrBuilder { private static final long serialVersionUID = 0L; // Use ModuleRef.newBuilder() to construct. private ModuleRef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ModuleRef() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ModuleRef(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModuleRef( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder subBuilder = null; if (packageRef_ != null) { subBuilder = packageRef_.toBuilder(); } packageRef_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(packageRef_); packageRef_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder subBuilder = null; if (moduleNameCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_).toBuilder(); } moduleName_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_); moduleName_ = subBuilder.buildPartial(); } moduleNameCase_ = 2; break; } case 24: { moduleNameCase_ = 3; moduleName_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ModuleRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.class, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder.class); } private int moduleNameCase_ = 0; private java.lang.Object moduleName_; public enum ModuleNameCase implements com.google.protobuf.Internal.EnumLite { MODULE_NAME_DNAME(2), MODULE_NAME_INTERNED_DNAME(3), MODULENAME_NOT_SET(0); private final int value; private ModuleNameCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ModuleNameCase valueOf(int value) { return forNumber(value); } public static ModuleNameCase forNumber(int value) { switch (value) { case 2: return MODULE_NAME_DNAME; case 3: return MODULE_NAME_INTERNED_DNAME; case 0: return MODULENAME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ModuleNameCase getModuleNameCase() { return ModuleNameCase.forNumber( moduleNameCase_); } public static final int PACKAGE_REF_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef packageRef_; /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public boolean hasPackageRef() { return packageRef_ != null; } /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef getPackageRef() { return packageRef_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder() { return getPackageRef(); } public static final int MODULE_NAME_DNAME_FIELD_NUMBER = 2; /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public boolean hasModuleNameDname() { return moduleNameCase_ == 2; } /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getModuleNameDname() { if (moduleNameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder() { if (moduleNameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } public static final int MODULE_NAME_INTERNED_DNAME_FIELD_NUMBER = 3; /** *
     * *Available in version >= 1.7*
     * 
* * int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"]; */ public int getModuleNameInternedDname() { if (moduleNameCase_ == 3) { return (java.lang.Integer) moduleName_; } return 0; } 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 (packageRef_ != null) { output.writeMessage(1, getPackageRef()); } if (moduleNameCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_); } if (moduleNameCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) moduleName_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (packageRef_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPackageRef()); } if (moduleNameCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_); } if (moduleNameCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) moduleName_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef other = (com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef) obj; if (hasPackageRef() != other.hasPackageRef()) return false; if (hasPackageRef()) { if (!getPackageRef() .equals(other.getPackageRef())) return false; } if (!getModuleNameCase().equals(other.getModuleNameCase())) return false; switch (moduleNameCase_) { case 2: if (!getModuleNameDname() .equals(other.getModuleNameDname())) return false; break; case 3: if (getModuleNameInternedDname() != other.getModuleNameInternedDname()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPackageRef()) { hash = (37 * hash) + PACKAGE_REF_FIELD_NUMBER; hash = (53 * hash) + getPackageRef().hashCode(); } switch (moduleNameCase_) { case 2: hash = (37 * hash) + MODULE_NAME_DNAME_FIELD_NUMBER; hash = (53 * hash) + getModuleNameDname().hashCode(); break; case 3: hash = (37 * hash) + MODULE_NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getModuleNameInternedDname(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef 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.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef 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.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef 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.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef 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; } /** *
     * A fully qualified module reference
     * 
* * Protobuf type {@code daml_lf_1.ModuleRef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.ModuleRef) com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ModuleRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.class, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (packageRefBuilder_ == null) { packageRef_ = null; } else { packageRef_ = null; packageRefBuilder_ = null; } moduleNameCase_ = 0; moduleName_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef build() { com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef result = new com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef(this); if (packageRefBuilder_ == null) { result.packageRef_ = packageRef_; } else { result.packageRef_ = packageRefBuilder_.build(); } if (moduleNameCase_ == 2) { if (moduleNameDnameBuilder_ == null) { result.moduleName_ = moduleName_; } else { result.moduleName_ = moduleNameDnameBuilder_.build(); } } if (moduleNameCase_ == 3) { result.moduleName_ = moduleName_; } result.moduleNameCase_ = moduleNameCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance()) return this; if (other.hasPackageRef()) { mergePackageRef(other.getPackageRef()); } switch (other.getModuleNameCase()) { case MODULE_NAME_DNAME: { mergeModuleNameDname(other.getModuleNameDname()); break; } case MODULE_NAME_INTERNED_DNAME: { setModuleNameInternedDname(other.getModuleNameInternedDname()); break; } case MODULENAME_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int moduleNameCase_ = 0; private java.lang.Object moduleName_; public ModuleNameCase getModuleNameCase() { return ModuleNameCase.forNumber( moduleNameCase_); } public Builder clearModuleName() { moduleNameCase_ = 0; moduleName_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef packageRef_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder> packageRefBuilder_; /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public boolean hasPackageRef() { return packageRefBuilder_ != null || packageRef_ != null; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef getPackageRef() { if (packageRefBuilder_ == null) { return packageRef_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } else { return packageRefBuilder_.getMessage(); } } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public Builder setPackageRef(com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef value) { if (packageRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } packageRef_ = value; onChanged(); } else { packageRefBuilder_.setMessage(value); } return this; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public Builder setPackageRef( com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder builderForValue) { if (packageRefBuilder_ == null) { packageRef_ = builderForValue.build(); onChanged(); } else { packageRefBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public Builder mergePackageRef(com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef value) { if (packageRefBuilder_ == null) { if (packageRef_ != null) { packageRef_ = com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.newBuilder(packageRef_).mergeFrom(value).buildPartial(); } else { packageRef_ = value; } onChanged(); } else { packageRefBuilder_.mergeFrom(value); } return this; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public Builder clearPackageRef() { if (packageRefBuilder_ == null) { packageRef_ = null; onChanged(); } else { packageRef_ = null; packageRefBuilder_ = null; } return this; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder getPackageRefBuilder() { onChanged(); return getPackageRefFieldBuilder().getBuilder(); } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder() { if (packageRefBuilder_ != null) { return packageRefBuilder_.getMessageOrBuilder(); } else { return packageRef_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder> getPackageRefFieldBuilder() { if (packageRefBuilder_ == null) { packageRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PackageRefOrBuilder>( getPackageRef(), getParentForChildren(), isClean()); packageRef_ = null; } return packageRefBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> moduleNameDnameBuilder_; /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public boolean hasModuleNameDname() { return moduleNameCase_ == 2; } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getModuleNameDname() { if (moduleNameDnameBuilder_ == null) { if (moduleNameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } else { if (moduleNameCase_ == 2) { return moduleNameDnameBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public Builder setModuleNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (moduleNameDnameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } moduleName_ = value; onChanged(); } else { moduleNameDnameBuilder_.setMessage(value); } moduleNameCase_ = 2; return this; } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public Builder setModuleNameDname( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder builderForValue) { if (moduleNameDnameBuilder_ == null) { moduleName_ = builderForValue.build(); onChanged(); } else { moduleNameDnameBuilder_.setMessage(builderForValue.build()); } moduleNameCase_ = 2; return this; } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public Builder mergeModuleNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (moduleNameDnameBuilder_ == null) { if (moduleNameCase_ == 2 && moduleName_ != com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance()) { moduleName_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_) .mergeFrom(value).buildPartial(); } else { moduleName_ = value; } onChanged(); } else { if (moduleNameCase_ == 2) { moduleNameDnameBuilder_.mergeFrom(value); } moduleNameDnameBuilder_.setMessage(value); } moduleNameCase_ = 2; return this; } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public Builder clearModuleNameDname() { if (moduleNameDnameBuilder_ == null) { if (moduleNameCase_ == 2) { moduleNameCase_ = 0; moduleName_ = null; onChanged(); } } else { if (moduleNameCase_ == 2) { moduleNameCase_ = 0; moduleName_ = null; } moduleNameDnameBuilder_.clear(); } return this; } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder getModuleNameDnameBuilder() { return getModuleNameDnameFieldBuilder().getBuilder(); } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder() { if ((moduleNameCase_ == 2) && (moduleNameDnameBuilder_ != null)) { return moduleNameDnameBuilder_.getMessageOrBuilder(); } else { if (moduleNameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> getModuleNameDnameFieldBuilder() { if (moduleNameDnameBuilder_ == null) { if (!(moduleNameCase_ == 2)) { moduleName_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } moduleNameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) moduleName_, getParentForChildren(), isClean()); moduleName_ = null; } moduleNameCase_ = 2; onChanged();; return moduleNameDnameBuilder_; } /** *
       * *Available in version >= 1.7*
       * 
* * int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"]; */ public int getModuleNameInternedDname() { if (moduleNameCase_ == 3) { return (java.lang.Integer) moduleName_; } return 0; } /** *
       * *Available in version >= 1.7*
       * 
* * int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"]; */ public Builder setModuleNameInternedDname(int value) { moduleNameCase_ = 3; moduleName_ = value; onChanged(); return this; } /** *
       * *Available in version >= 1.7*
       * 
* * int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"]; */ public Builder clearModuleNameInternedDname() { if (moduleNameCase_ == 3) { moduleNameCase_ = 0; moduleName_ = null; 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:daml_lf_1.ModuleRef) } // @@protoc_insertion_point(class_scope:daml_lf_1.ModuleRef) private static final com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModuleRef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModuleRef(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeConNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.TypeConName) com.google.protobuf.MessageOrBuilder { /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ boolean hasModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ boolean hasNameDname(); /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname(); /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ int getNameInternedDname(); public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.NameCase getNameCase(); } /** *
   * A fully qualified reference to a type constructor name.
   * 
* * Protobuf type {@code daml_lf_1.TypeConName} */ public static final class TypeConName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.TypeConName) TypeConNameOrBuilder { private static final long serialVersionUID = 0L; // Use TypeConName.newBuilder() to construct. private TypeConName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TypeConName() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TypeConName(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TypeConName( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(module_); module_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); name_ = subBuilder.buildPartial(); } nameCase_ = 2; break; } case 24: { nameCase_ = 3; name_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeConName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.class, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite { NAME_DNAME(2), NAME_INTERNED_DNAME(3), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NameCase valueOf(int value) { return forNumber(value); } public static NameCase forNumber(int value) { switch (value) { case 2: return NAME_DNAME; case 3: return NAME_INTERNED_DNAME; case 0: return NAME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } public static final int MODULE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef module_; /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public boolean hasModule() { return module_ != null; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule() { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { return getModule(); } public static final int NAME_DNAME_FIELD_NUMBER = 2; /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public boolean hasNameDname() { return nameCase_ == 2; } /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname() { if (nameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { if (nameCase_ == 3) { return (java.lang.Integer) name_; } return 0; } 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 (module_ != null) { output.writeMessage(1, getModule()); } if (nameCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); } if (nameCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) name_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (module_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModule()); } if (nameCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); } if (nameCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) name_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.TypeConName)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName other = (com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName) obj; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) return false; } if (!getNameCase().equals(other.getNameCase())) return false; switch (nameCase_) { case 2: if (!getNameDname() .equals(other.getNameDname())) return false; break; case 3: if (getNameInternedDname() != other.getNameInternedDname()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasModule()) { hash = (37 * hash) + MODULE_FIELD_NUMBER; hash = (53 * hash) + getModule().hashCode(); } switch (nameCase_) { case 2: hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameDname().hashCode(); break; case 3: hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName 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.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName 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.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName 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.digitalasset.daml_lf_1_7.DamlLf1.TypeConName 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; } /** *
     * A fully qualified reference to a type constructor name.
     * 
* * Protobuf type {@code daml_lf_1.TypeConName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.TypeConName) com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeConName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.class, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (moduleBuilder_ == null) { module_ = null; } else { module_ = null; moduleBuilder_ = null; } nameCase_ = 0; name_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName build() { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName result = new com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName(this); if (moduleBuilder_ == null) { result.module_ = module_; } else { result.module_ = moduleBuilder_.build(); } if (nameCase_ == 2) { if (nameDnameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameDnameBuilder_.build(); } } if (nameCase_ == 3) { result.name_ = name_; } result.nameCase_ = nameCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.TypeConName) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance()) return this; if (other.hasModule()) { mergeModule(other.getModule()); } switch (other.getNameCase()) { case NAME_DNAME: { mergeNameDname(other.getNameDname()); break; } case NAME_INTERNED_DNAME: { setNameInternedDname(other.getNameInternedDname()); break; } case NAME_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int nameCase_ = 0; private java.lang.Object name_; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } public Builder clearName() { nameCase_ = 0; name_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder setModule(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } module_ = value; onChanged(); } else { moduleBuilder_.setMessage(value); } return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder setModule( com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder builderForValue) { if (moduleBuilder_ == null) { module_ = builderForValue.build(); onChanged(); } else { moduleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder mergeModule(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial(); } else { module_ = value; } onChanged(); } else { moduleBuilder_.mergeFrom(value); } return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder clearModule() { if (moduleBuilder_ == null) { module_ = null; onChanged(); } else { module_ = null; moduleBuilder_ = null; } return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public boolean hasNameDname() { return nameCase_ == 2; } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 2) { return nameDnameBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public Builder setNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameDnameBuilder_.setMessage(value); } nameCase_ = 2; return this; } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public Builder setNameDname( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder builderForValue) { if (nameDnameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameDnameBuilder_.setMessage(builderForValue.build()); } nameCase_ = 2; return this; } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public Builder mergeNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 2 && name_ != com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_) .mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { if (nameCase_ == 2) { nameDnameBuilder_.mergeFrom(value); } nameDnameBuilder_.setMessage(value); } nameCase_ = 2; return this; } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public Builder clearNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 2) { nameCase_ = 0; name_ = null; onChanged(); } } else { if (nameCase_ == 2) { nameCase_ = 0; name_ = null; } nameDnameBuilder_.clear(); } return this; } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 2) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 2)) { name_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 2; onChanged();; return nameDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { if (nameCase_ == 3) { return (java.lang.Integer) name_; } return 0; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public Builder setNameInternedDname(int value) { nameCase_ = 3; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public Builder clearNameInternedDname() { if (nameCase_ == 3) { nameCase_ = 0; name_ = null; 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:daml_lf_1.TypeConName) } // @@protoc_insertion_point(class_scope:daml_lf_1.TypeConName) private static final com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TypeConName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TypeConName(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.ValName) com.google.protobuf.MessageOrBuilder { /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ boolean hasModule(); /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule(); /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ java.util.List getNameDnameList(); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ int getNameDnameCount(); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ java.lang.String getNameDname(int index); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ com.google.protobuf.ByteString getNameDnameBytes(int index); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ int getNameInternedDname(); } /** *
   * A fully qualified reference to a value definition.
   * 
* * Protobuf type {@code daml_lf_1.ValName} */ public static final class ValName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.ValName) ValNameOrBuilder { private static final long serialVersionUID = 0L; // Use ValName.newBuilder() to construct. private ValName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValName() { nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ValName(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValName( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(module_); module_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { nameDname_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } nameDname_.add(s); break; } case 24: { nameInternedDname_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { nameDname_ = nameDname_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ValName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ValName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.ValName.class, com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder.class); } public static final int MODULE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef module_; /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public boolean hasModule() { return module_ != null; } /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule() { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { return getModule(); } public static final int NAME_DNAME_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nameDname_; /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_; } /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public int getNameDnameCount() { return nameDname_.size(); } /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public java.lang.String getNameDname(int index) { return nameDname_.get(index); } /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public com.google.protobuf.ByteString getNameDnameBytes(int index) { return nameDname_.getByteString(index); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3; private int nameInternedDname_; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { return nameInternedDname_; } 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 (module_ != null) { output.writeMessage(1, getModule()); } for (int i = 0; i < nameDname_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nameDname_.getRaw(i)); } if (nameInternedDname_ != 0) { output.writeInt32(3, nameInternedDname_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (module_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModule()); } { int dataSize = 0; for (int i = 0; i < nameDname_.size(); i++) { dataSize += computeStringSizeNoTag(nameDname_.getRaw(i)); } size += dataSize; size += 1 * getNameDnameList().size(); } if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, nameInternedDname_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.ValName)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.ValName other = (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) obj; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) return false; } if (!getNameDnameList() .equals(other.getNameDnameList())) return false; if (getNameInternedDname() != other.getNameInternedDname()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasModule()) { hash = (37 * hash) + MODULE_FIELD_NUMBER; hash = (53 * hash) + getModule().hashCode(); } if (getNameDnameCount() > 0) { hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameDnameList().hashCode(); } hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName 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.digitalasset.daml_lf_1_7.DamlLf1.ValName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName 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.digitalasset.daml_lf_1_7.DamlLf1.ValName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName 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.digitalasset.daml_lf_1_7.DamlLf1.ValName 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; } /** *
     * A fully qualified reference to a value definition.
     * 
* * Protobuf type {@code daml_lf_1.ValName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.ValName) com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ValName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ValName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.ValName.class, com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.ValName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (moduleBuilder_ == null) { module_ = null; } else { module_ = null; moduleBuilder_ = null; } nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); nameInternedDname_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_ValName_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.ValName getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.ValName build() { com.digitalasset.daml_lf_1_7.DamlLf1.ValName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.ValName buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.ValName result = new com.digitalasset.daml_lf_1_7.DamlLf1.ValName(this); int from_bitField0_ = bitField0_; if (moduleBuilder_ == null) { result.module_ = module_; } else { result.module_ = moduleBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { nameDname_ = nameDname_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.nameDname_ = nameDname_; result.nameInternedDname_ = nameInternedDname_; 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.digitalasset.daml_lf_1_7.DamlLf1.ValName) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.ValName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.ValName other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance()) return this; if (other.hasModule()) { mergeModule(other.getModule()); } if (!other.nameDname_.isEmpty()) { if (nameDname_.isEmpty()) { nameDname_ = other.nameDname_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNameDnameIsMutable(); nameDname_.addAll(other.nameDname_); } onChanged(); } if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.ValName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder setModule(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } module_ = value; onChanged(); } else { moduleBuilder_.setMessage(value); } return this; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder setModule( com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder builderForValue) { if (moduleBuilder_ == null) { module_ = builderForValue.build(); onChanged(); } else { moduleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder mergeModule(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial(); } else { module_ = value; } onChanged(); } else { moduleBuilder_.mergeFrom(value); } return this; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder clearModule() { if (moduleBuilder_ == null) { module_ = null; onChanged(); } else { module_ = null; moduleBuilder_ = null; } return this; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.google.protobuf.LazyStringList nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNameDnameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nameDname_ = new com.google.protobuf.LazyStringArrayList(nameDname_); bitField0_ |= 0x00000001; } } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_.getUnmodifiableView(); } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public int getNameDnameCount() { return nameDname_.size(); } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public java.lang.String getNameDname(int index) { return nameDname_.get(index); } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public com.google.protobuf.ByteString getNameDnameBytes(int index) { return nameDname_.getByteString(index); } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public Builder setNameDname( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameDnameIsMutable(); nameDname_.set(index, value); onChanged(); return this; } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public Builder addNameDname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameDnameIsMutable(); nameDname_.add(value); onChanged(); return this; } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public Builder addAllNameDname( java.lang.Iterable values) { ensureNameDnameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nameDname_); onChanged(); return this; } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public Builder clearNameDname() { nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2[json_name = "nameDname"]; */ public Builder addNameDnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNameDnameIsMutable(); nameDname_.add(value); onChanged(); return this; } private int nameInternedDname_ ; /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { return nameInternedDname_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public Builder clearNameInternedDname() { nameInternedDname_ = 0; 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:daml_lf_1.ValName) } // @@protoc_insertion_point(class_scope:daml_lf_1.ValName) private static final com.digitalasset.daml_lf_1_7.DamlLf1.ValName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.ValName(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.ValName getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValName(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.ValName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldWithTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.FieldWithType) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ boolean hasType(); /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.FieldCase getFieldCase(); } /** *
   * A field name definition in a record or a variant associated with a type.
   * 
* * Protobuf type {@code daml_lf_1.FieldWithType} */ public static final class FieldWithType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.FieldWithType) FieldWithTypeOrBuilder { private static final long serialVersionUID = 0L; // Use FieldWithType.newBuilder() to construct. private FieldWithType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldWithType() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldWithType(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldWithType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 1; field_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 24: { fieldCase_ = 3; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.class, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 1: return FIELD_STR; case 3: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int FIELD_STR_FIELD_NUMBER = 1; /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } 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(); if (fieldCase_ == 1) { field_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int TYPE_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } 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 (fieldCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } if (type_ != null) { output.writeMessage(2, getType()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType other = (com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 1: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 3: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } switch (fieldCase_) { case 1: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 3: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType 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; } /** *
     * A field name definition in a record or a variant associated with a type.
     * 
* * Protobuf type {@code daml_lf_1.FieldWithType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.FieldWithType) com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.class, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType build() { com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType result = new com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 3) { result.field_ = field_; } if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 1; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 1) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } @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:daml_lf_1.FieldWithType) } // @@protoc_insertion_point(class_scope:daml_lf_1.FieldWithType) private static final com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldWithType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldWithType(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VarWithTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.VarWithType) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ java.lang.String getVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ com.google.protobuf.ByteString getVarStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ int getVarInternedStr(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ boolean hasType(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.VarCase getVarCase(); } /** *
   * Binder associated with a type.
   * 
* * Protobuf type {@code daml_lf_1.VarWithType} */ public static final class VarWithType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.VarWithType) VarWithTypeOrBuilder { private static final long serialVersionUID = 0L; // Use VarWithType.newBuilder() to construct. private VarWithType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VarWithType() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VarWithType(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VarWithType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); varCase_ = 1; var_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 24: { varCase_ = 3; var_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_VarWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.class, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder.class); } private int varCase_ = 0; private java.lang.Object var_; public enum VarCase implements com.google.protobuf.Internal.EnumLite { VAR_STR(1), VAR_INTERNED_STR(3), VAR_NOT_SET(0); private final int value; private VarCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VarCase valueOf(int value) { return forNumber(value); } public static VarCase forNumber(int value) { switch (value) { case 1: return VAR_STR; case 3: return VAR_INTERNED_STR; case 0: return VAR_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VarCase getVarCase() { return VarCase.forNumber( varCase_); } public static final int VAR_STR_FIELD_NUMBER = 1; /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } 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(); if (varCase_ == 1) { var_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varCase_ == 1) { var_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } public static final int TYPE_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } 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 (varCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); } if (type_ != null) { output.writeMessage(2, getType()); } if (varCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) var_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (varCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) var_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.VarWithType)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType other = (com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!getVarCase().equals(other.getVarCase())) return false; switch (varCase_) { case 1: if (!getVarStr() .equals(other.getVarStr())) return false; break; case 3: if (getVarInternedStr() != other.getVarInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } switch (varCase_) { case 1: hash = (37 * hash) + VAR_STR_FIELD_NUMBER; hash = (53 * hash) + getVarStr().hashCode(); break; case 3: hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType 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.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType 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.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType 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.digitalasset.daml_lf_1_7.DamlLf1.VarWithType 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; } /** *
     * Binder associated with a type.
     * 
* * Protobuf type {@code daml_lf_1.VarWithType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.VarWithType) com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_VarWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.class, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } varCase_ = 0; var_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType build() { com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType result = new com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType(this); if (varCase_ == 1) { result.var_ = var_; } if (varCase_ == 3) { result.var_ = var_; } if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } result.varCase_ = varCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.VarWithType) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } switch (other.getVarCase()) { case VAR_STR: { varCase_ = 1; var_ = other.var_; onChanged(); break; } case VAR_INTERNED_STR: { setVarInternedStr(other.getVarInternedStr()); break; } case VAR_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int varCase_ = 0; private java.lang.Object var_; public VarCase getVarCase() { return VarCase.forNumber( varCase_); } public Builder clearVar() { varCase_ = 0; var_ = null; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (varCase_ == 1) { var_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varCase_ == 1) { var_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varCase_ = 1; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder clearVarStr() { if (varCase_ == 1) { varCase_ = 0; var_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varCase_ = 1; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public Builder setVarInternedStr(int value) { varCase_ = 3; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public Builder clearVarInternedStr() { if (varCase_ == 3) { varCase_ = 0; var_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } @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:daml_lf_1.VarWithType) } // @@protoc_insertion_point(class_scope:daml_lf_1.VarWithType) private static final com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VarWithType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VarWithType(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeVarWithKindOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.TypeVarWithKind) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ java.lang.String getVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ com.google.protobuf.ByteString getVarStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ int getVarInternedStr(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ boolean hasKind(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Kind getKind(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getKindOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.VarCase getVarCase(); } /** *
   * Type binder associated with a kind.
   * 
* * Protobuf type {@code daml_lf_1.TypeVarWithKind} */ public static final class TypeVarWithKind extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.TypeVarWithKind) TypeVarWithKindOrBuilder { private static final long serialVersionUID = 0L; // Use TypeVarWithKind.newBuilder() to construct. private TypeVarWithKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TypeVarWithKind() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TypeVarWithKind(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TypeVarWithKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); varCase_ = 1; var_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder subBuilder = null; if (kind_ != null) { subBuilder = kind_.toBuilder(); } kind_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(kind_); kind_ = subBuilder.buildPartial(); } break; } case 24: { varCase_ = 3; var_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.class, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder.class); } private int varCase_ = 0; private java.lang.Object var_; public enum VarCase implements com.google.protobuf.Internal.EnumLite { VAR_STR(1), VAR_INTERNED_STR(3), VAR_NOT_SET(0); private final int value; private VarCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VarCase valueOf(int value) { return forNumber(value); } public static VarCase forNumber(int value) { switch (value) { case 1: return VAR_STR; case 3: return VAR_INTERNED_STR; case 0: return VAR_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VarCase getVarCase() { return VarCase.forNumber( varCase_); } public static final int VAR_STR_FIELD_NUMBER = 1; /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } 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(); if (varCase_ == 1) { var_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varCase_ == 1) { var_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } public static final int KIND_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Kind kind_; /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public boolean hasKind() { return kind_ != null; } /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getKind() { return kind_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance() : kind_; } /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getKindOrBuilder() { return getKind(); } 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 (varCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); } if (kind_ != null) { output.writeMessage(2, getKind()); } if (varCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) var_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); } if (kind_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKind()); } if (varCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) var_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind other = (com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind) obj; if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind() .equals(other.getKind())) return false; } if (!getVarCase().equals(other.getVarCase())) return false; switch (varCase_) { case 1: if (!getVarStr() .equals(other.getVarStr())) return false; break; case 3: if (getVarInternedStr() != other.getVarInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } switch (varCase_) { case 1: hash = (37 * hash) + VAR_STR_FIELD_NUMBER; hash = (53 * hash) + getVarStr().hashCode(); break; case 3: hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind 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.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind 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.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind 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.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind 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; } /** *
     * Type binder associated with a kind.
     * 
* * Protobuf type {@code daml_lf_1.TypeVarWithKind} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.TypeVarWithKind) com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.class, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (kindBuilder_ == null) { kind_ = null; } else { kind_ = null; kindBuilder_ = null; } varCase_ = 0; var_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind build() { com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind result = new com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind(this); if (varCase_ == 1) { result.var_ = var_; } if (varCase_ == 3) { result.var_ = var_; } if (kindBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = kindBuilder_.build(); } result.varCase_ = varCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()) return this; if (other.hasKind()) { mergeKind(other.getKind()); } switch (other.getVarCase()) { case VAR_STR: { varCase_ = 1; var_ = other.var_; onChanged(); break; } case VAR_INTERNED_STR: { setVarInternedStr(other.getVarInternedStr()); break; } case VAR_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int varCase_ = 0; private java.lang.Object var_; public VarCase getVarCase() { return VarCase.forNumber( varCase_); } public Builder clearVar() { varCase_ = 0; var_ = null; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (varCase_ == 1) { var_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varCase_ == 1) { var_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varCase_ = 1; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder clearVarStr() { if (varCase_ == 1) { varCase_ = 0; var_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varCase_ = 1; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public Builder setVarInternedStr(int value) { varCase_ = 3; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public Builder clearVarInternedStr() { if (varCase_ == 3) { varCase_ = 0; var_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Kind kind_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder> kindBuilder_; /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public boolean hasKind() { return kindBuilder_ != null || kind_ != null; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getKind() { if (kindBuilder_ == null) { return kind_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance() : kind_; } else { return kindBuilder_.getMessage(); } } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public Builder setKind(com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (kindBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { kindBuilder_.setMessage(value); } return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public Builder setKind( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder builderForValue) { if (kindBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { kindBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public Builder mergeKind(com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (kindBuilder_ == null) { if (kind_ != null) { kind_ = com.digitalasset.daml_lf_1_7.DamlLf1.Kind.newBuilder(kind_).mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { kindBuilder_.mergeFrom(value); } return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public Builder clearKind() { if (kindBuilder_ == null) { kind_ = null; onChanged(); } else { kind_ = null; kindBuilder_ = null; } return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder getKindBuilder() { onChanged(); return getKindFieldBuilder().getBuilder(); } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getKindOrBuilder() { if (kindBuilder_ != null) { return kindBuilder_.getMessageOrBuilder(); } else { return kind_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance() : kind_; } } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2[json_name = "kind"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder> getKindFieldBuilder() { if (kindBuilder_ == null) { kindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder>( getKind(), getParentForChildren(), isClean()); kind_ = null; } return kindBuilder_; } @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:daml_lf_1.TypeVarWithKind) } // @@protoc_insertion_point(class_scope:daml_lf_1.TypeVarWithKind) private static final com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TypeVarWithKind parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TypeVarWithKind(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldWithExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.FieldWithExpr) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.FieldCase getFieldCase(); } /** *
   * A field in a record with its value.
   * 
* * Protobuf type {@code daml_lf_1.FieldWithExpr} */ public static final class FieldWithExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.FieldWithExpr) FieldWithExprOrBuilder { private static final long serialVersionUID = 0L; // Use FieldWithExpr.newBuilder() to construct. private FieldWithExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldWithExpr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldWithExpr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldWithExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 1; field_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 24: { fieldCase_ = 3; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 1: return FIELD_STR; case 3: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int FIELD_STR_FIELD_NUMBER = 1; /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } 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(); if (fieldCase_ == 1) { field_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } 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 (fieldCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } if (expr_ != null) { output.writeMessage(2, getExpr()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr other = (com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr) obj; if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 1: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 3: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } switch (fieldCase_) { case 1: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 3: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr 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; } /** *
     * A field in a record with its value.
     * 
* * Protobuf type {@code daml_lf_1.FieldWithExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.FieldWithExpr) com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr build() { com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr result = new com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 3) { result.field_ = field_; } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.getDefaultInstance()) return this; if (other.hasExpr()) { mergeExpr(other.getExpr()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 1; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 1) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } @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:daml_lf_1.FieldWithExpr) } // @@protoc_insertion_point(class_scope:daml_lf_1.FieldWithExpr) private static final com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldWithExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldWithExpr(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BindingOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Binding) com.google.protobuf.MessageOrBuilder { /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ boolean hasBinder(); /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getBinder(); /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ boolean hasBound(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBound(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBoundOrBuilder(); } /** *
   * A binding of a typed binder to an expression
   * 
* * Protobuf type {@code daml_lf_1.Binding} */ public static final class Binding extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Binding) BindingOrBuilder { private static final long serialVersionUID = 0L; // Use Binding.newBuilder() to construct. private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Binding() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Binding(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Binding( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder subBuilder = null; if (binder_ != null) { subBuilder = binder_.toBuilder(); } binder_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(binder_); binder_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (bound_ != null) { subBuilder = bound_.toBuilder(); } bound_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bound_); bound_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Binding.class, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder.class); } public static final int BINDER_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType binder_; /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public boolean hasBinder() { return binder_ != null; } /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getBinder() { return binder_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance() : binder_; } /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder() { return getBinder(); } public static final int BOUND_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr bound_; /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public boolean hasBound() { return bound_ != null; } /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBound() { return bound_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : bound_; } /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBoundOrBuilder() { return getBound(); } 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 (binder_ != null) { output.writeMessage(1, getBinder()); } if (bound_ != null) { output.writeMessage(2, getBound()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (binder_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBinder()); } if (bound_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBound()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Binding)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Binding other = (com.digitalasset.daml_lf_1_7.DamlLf1.Binding) obj; if (hasBinder() != other.hasBinder()) return false; if (hasBinder()) { if (!getBinder() .equals(other.getBinder())) return false; } if (hasBound() != other.hasBound()) return false; if (hasBound()) { if (!getBound() .equals(other.getBound())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBinder()) { hash = (37 * hash) + BINDER_FIELD_NUMBER; hash = (53 * hash) + getBinder().hashCode(); } if (hasBound()) { hash = (37 * hash) + BOUND_FIELD_NUMBER; hash = (53 * hash) + getBound().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding 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.digitalasset.daml_lf_1_7.DamlLf1.Binding parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding 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.digitalasset.daml_lf_1_7.DamlLf1.Binding parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding 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.digitalasset.daml_lf_1_7.DamlLf1.Binding 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; } /** *
     * A binding of a typed binder to an expression
     * 
* * Protobuf type {@code daml_lf_1.Binding} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Binding) com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Binding.class, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Binding.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (binderBuilder_ == null) { binder_ = null; } else { binder_ = null; binderBuilder_ = null; } if (boundBuilder_ == null) { bound_ = null; } else { bound_ = null; boundBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Binding_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Binding getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Binding.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Binding build() { com.digitalasset.daml_lf_1_7.DamlLf1.Binding result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Binding buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Binding result = new com.digitalasset.daml_lf_1_7.DamlLf1.Binding(this); if (binderBuilder_ == null) { result.binder_ = binder_; } else { result.binder_ = binderBuilder_.build(); } if (boundBuilder_ == null) { result.bound_ = bound_; } else { result.bound_ = boundBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Binding) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Binding)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Binding other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Binding.getDefaultInstance()) return this; if (other.hasBinder()) { mergeBinder(other.getBinder()); } if (other.hasBound()) { mergeBound(other.getBound()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Binding parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Binding) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType binder_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder> binderBuilder_; /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public boolean hasBinder() { return binderBuilder_ != null || binder_ != null; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getBinder() { if (binderBuilder_ == null) { return binder_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance() : binder_; } else { return binderBuilder_.getMessage(); } } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public Builder setBinder(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (binderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } binder_ = value; onChanged(); } else { binderBuilder_.setMessage(value); } return this; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public Builder setBinder( com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder builderForValue) { if (binderBuilder_ == null) { binder_ = builderForValue.build(); onChanged(); } else { binderBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public Builder mergeBinder(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (binderBuilder_ == null) { if (binder_ != null) { binder_ = com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.newBuilder(binder_).mergeFrom(value).buildPartial(); } else { binder_ = value; } onChanged(); } else { binderBuilder_.mergeFrom(value); } return this; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public Builder clearBinder() { if (binderBuilder_ == null) { binder_ = null; onChanged(); } else { binder_ = null; binderBuilder_ = null; } return this; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder getBinderBuilder() { onChanged(); return getBinderFieldBuilder().getBuilder(); } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder() { if (binderBuilder_ != null) { return binderBuilder_.getMessageOrBuilder(); } else { return binder_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance() : binder_; } } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1[json_name = "binder"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder> getBinderFieldBuilder() { if (binderBuilder_ == null) { binderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder>( getBinder(), getParentForChildren(), isClean()); binder_ = null; } return binderBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr bound_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> boundBuilder_; /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public boolean hasBound() { return boundBuilder_ != null || bound_ != null; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBound() { if (boundBuilder_ == null) { return bound_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : bound_; } else { return boundBuilder_.getMessage(); } } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public Builder setBound(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (boundBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bound_ = value; onChanged(); } else { boundBuilder_.setMessage(value); } return this; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public Builder setBound( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (boundBuilder_ == null) { bound_ = builderForValue.build(); onChanged(); } else { boundBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public Builder mergeBound(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (boundBuilder_ == null) { if (bound_ != null) { bound_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(bound_).mergeFrom(value).buildPartial(); } else { bound_ = value; } onChanged(); } else { boundBuilder_.mergeFrom(value); } return this; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public Builder clearBound() { if (boundBuilder_ == null) { bound_ = null; onChanged(); } else { bound_ = null; boundBuilder_ = null; } return this; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBoundBuilder() { onChanged(); return getBoundFieldBuilder().getBuilder(); } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBoundOrBuilder() { if (boundBuilder_ != null) { return boundBuilder_.getMessageOrBuilder(); } else { return bound_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : bound_; } } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2[json_name = "bound"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBoundFieldBuilder() { if (boundBuilder_ == null) { boundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBound(), getParentForChildren(), isClean()); bound_ = null; } return boundBuilder_; } @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:daml_lf_1.Binding) } // @@protoc_insertion_point(class_scope:daml_lf_1.Binding) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Binding DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Binding(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Binding getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Binding parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Binding(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Binding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KindOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Kind) com.google.protobuf.MessageOrBuilder { /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ boolean hasStar(); /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getStar(); /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getStarOrBuilder(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ boolean hasArrow(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow getArrow(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder(); /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ boolean hasNat(); /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getNat(); /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getNatOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.SumCase getSumCase(); } /** *
   * Kinds
   * 
* * Protobuf type {@code daml_lf_1.Kind} */ public static final class Kind extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Kind) KindOrBuilder { private static final long serialVersionUID = 0L; // Use Kind.newBuilder() to construct. private Kind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Kind() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Kind(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Kind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.class, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder.class); } public interface ArrowOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Kind.Arrow) com.google.protobuf.MessageOrBuilder { /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ java.util.List getParamsList(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Kind getParams(int index); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ int getParamsCount(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ java.util.List getParamsOrBuilderList(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getParamsOrBuilder( int index); /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ boolean hasResult(); /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Kind getResult(); /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getResultOrBuilder(); } /** *
     * The kind of polimorphic type.
     * 
* * Protobuf type {@code daml_lf_1.Kind.Arrow} */ public static final class Arrow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Kind.Arrow) ArrowOrBuilder { private static final long serialVersionUID = 0L; // Use Arrow.newBuilder() to construct. private Arrow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Arrow() { params_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Arrow(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Arrow( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } params_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.parser(), extensionRegistry)); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.class, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder.class); } public static final int PARAMS_FIELD_NUMBER = 1; private java.util.List params_; /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public java.util.List getParamsList() { return params_; } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public java.util.List getParamsOrBuilderList() { return params_; } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public int getParamsCount() { return params_.size(); } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getParams(int index) { return params_.get(index); } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int RESULT_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Kind result_; /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public boolean hasResult() { return result_ != null; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getResult() { return result_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance() : result_; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getResultOrBuilder() { return getResult(); } 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 { for (int i = 0; i < params_.size(); i++) { output.writeMessage(1, params_.get(i)); } if (result_ != null) { output.writeMessage(2, getResult()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, params_.get(i)); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResult()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow other = (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) obj; if (!getParamsList() .equals(other.getParamsList())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParamsCount() > 0) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParamsList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow 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.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow 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.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow 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.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow 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; } /** *
       * The kind of polimorphic type.
       * 
* * Protobuf type {@code daml_lf_1.Kind.Arrow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Kind.Arrow) com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.class, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { paramsBuilder_.clear(); } if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow build() { com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow result = new com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow(this); int from_bitField0_ = bitField0_; if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000001); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance()) return this; if (paramsBuilder_ == null) { if (!other.params_.isEmpty()) { if (params_.isEmpty()) { params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); paramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List params_ = java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder> paramsBuilder_; /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder setParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.set(index, value); onChanged(); } else { paramsBuilder_.setMessage(index, value); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder setParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder addParams(com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(value); onChanged(); } else { paramsBuilder_.addMessage(value); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder addParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(index, value); onChanged(); } else { paramsBuilder_.addMessage(index, value); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder addParams( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder addParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder addAllParams( java.lang.Iterable values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance()); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance()); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1[json_name = "params"]; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Kind result_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder> resultBuilder_; /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getResult() { if (resultBuilder_ == null) { return result_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public Builder setResult(com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public Builder setResult( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public Builder mergeResult(com.digitalasset.daml_lf_1_7.DamlLf1.Kind value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = com.digitalasset.daml_lf_1_7.DamlLf1.Kind.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance() : result_; } } /** * .daml_lf_1.Kind result = 2[json_name = "result"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @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:daml_lf_1.Kind.Arrow) } // @@protoc_insertion_point(class_scope:daml_lf_1.Kind.Arrow) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Arrow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Arrow(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { STAR(1), ARROW(2), NAT(3), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return STAR; case 2: return ARROW; case 3: return NAT; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int STAR_FIELD_NUMBER = 1; /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public boolean hasStar() { return sumCase_ == 1; } /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getStar() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getStarOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int ARROW_FIELD_NUMBER = 2; /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public boolean hasArrow() { return sumCase_ == 2; } /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow getArrow() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } public static final int NAT_FIELD_NUMBER = 3; /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public boolean hasNat() { return sumCase_ == 3; } /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getNat() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getNatOrBuilder() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Kind)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Kind other = (com.digitalasset.daml_lf_1_7.DamlLf1.Kind) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getStar() .equals(other.getStar())) return false; break; case 2: if (!getArrow() .equals(other.getArrow())) return false; break; case 3: if (!getNat() .equals(other.getNat())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + STAR_FIELD_NUMBER; hash = (53 * hash) + getStar().hashCode(); break; case 2: hash = (37 * hash) + ARROW_FIELD_NUMBER; hash = (53 * hash) + getArrow().hashCode(); break; case 3: hash = (37 * hash) + NAT_FIELD_NUMBER; hash = (53 * hash) + getNat().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind 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.digitalasset.daml_lf_1_7.DamlLf1.Kind parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind 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.digitalasset.daml_lf_1_7.DamlLf1.Kind parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind 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.digitalasset.daml_lf_1_7.DamlLf1.Kind 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; } /** *
     * Kinds
     * 
* * Protobuf type {@code daml_lf_1.Kind} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Kind) com.digitalasset.daml_lf_1_7.DamlLf1.KindOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.class, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Kind.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Kind_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Kind getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Kind build() { com.digitalasset.daml_lf_1_7.DamlLf1.Kind result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Kind buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Kind result = new com.digitalasset.daml_lf_1_7.DamlLf1.Kind(this); if (sumCase_ == 1) { if (starBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = starBuilder_.build(); } } if (sumCase_ == 2) { if (arrowBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = arrowBuilder_.build(); } } if (sumCase_ == 3) { if (natBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = natBuilder_.build(); } } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Kind) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Kind)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Kind other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Kind.getDefaultInstance()) return this; switch (other.getSumCase()) { case STAR: { mergeStar(other.getStar()); break; } case ARROW: { mergeArrow(other.getArrow()); break; } case NAT: { mergeNat(other.getNat()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Kind parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Kind) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> starBuilder_; /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public boolean hasStar() { return sumCase_ == 1; } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getStar() { if (starBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return starBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public Builder setStar(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (starBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { starBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public Builder setStar( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (starBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { starBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public Builder mergeStar(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (starBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { starBuilder_.mergeFrom(value); } starBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public Builder clearStar() { if (starBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } starBuilder_.clear(); } return this; } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getStarBuilder() { return getStarFieldBuilder().getBuilder(); } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getStarOrBuilder() { if ((sumCase_ == 1) && (starBuilder_ != null)) { return starBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1[json_name = "star"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getStarFieldBuilder() { if (starBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } starBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return starBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder> arrowBuilder_; /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public boolean hasArrow() { return sumCase_ == 2; } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow getArrow() { if (arrowBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } else { if (sumCase_ == 2) { return arrowBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public Builder setArrow(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow value) { if (arrowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { arrowBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public Builder setArrow( com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder builderForValue) { if (arrowBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { arrowBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public Builder mergeArrow(com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow value) { if (arrowBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { arrowBuilder_.mergeFrom(value); } arrowBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public Builder clearArrow() { if (arrowBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } arrowBuilder_.clear(); } return this; } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder getArrowBuilder() { return getArrowFieldBuilder().getBuilder(); } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder() { if ((sumCase_ == 2) && (arrowBuilder_ != null)) { return arrowBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder> getArrowFieldBuilder() { if (arrowBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.getDefaultInstance(); } arrowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Kind.ArrowOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Kind.Arrow) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return arrowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> natBuilder_; /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public boolean hasNat() { return sumCase_ == 3; } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getNat() { if (natBuilder_ == null) { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 3) { return natBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public Builder setNat(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (natBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { natBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public Builder setNat( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (natBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { natBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public Builder mergeNat(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (natBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { natBuilder_.mergeFrom(value); } natBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public Builder clearNat() { if (natBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } natBuilder_.clear(); } return this; } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getNatBuilder() { return getNatFieldBuilder().getBuilder(); } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getNatOrBuilder() { if ((sumCase_ == 3) && (natBuilder_ != null)) { return natBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3[json_name = "nat"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getNatFieldBuilder() { if (natBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } natBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return natBuilder_; } @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:daml_lf_1.Kind) } // @@protoc_insertion_point(class_scope:daml_lf_1.Kind) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Kind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Kind(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Kind getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Kind parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Kind(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Kind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ boolean hasVar(); /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var getVar(); /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder getVarOrBuilder(); /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ boolean hasCon(); /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getCon(); /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getConOrBuilder(); /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ boolean hasPrim(); /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim getPrim(); /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder(); /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ boolean hasFun(); /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun getFun(); /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder getFunOrBuilder(); /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ boolean hasForall(); /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall getForall(); /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder getForallOrBuilder(); /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ boolean hasTuple(); /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple getTuple(); /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder getTupleOrBuilder(); /** *
     * *Available in versions >= 1.7*
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 11[json_name = "nat"]; */ long getNat(); public com.digitalasset.daml_lf_1_7.DamlLf1.Type.SumCase getSumCase(); } /** *
   * Types
   * 
* * Protobuf type {@code daml_lf_1.Type} */ public static final class Type extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type) TypeOrBuilder { private static final long serialVersionUID = 0L; // Use Type.newBuilder() to construct. private Type(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Type() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Type(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Type( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 58: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 88: { sumCase_ = 11; sum_ = input.readSInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder.class); } public interface VarOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Var) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ java.lang.String getVarStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ com.google.protobuf.ByteString getVarStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ int getVarInternedStr(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ java.util.List getArgsList(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ int getArgsCount(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index); public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.VarCase getVarCase(); } /** *
     * Possibly applied type variable 'TyVar'
     * 
* * Protobuf type {@code daml_lf_1.Type.Var} */ public static final class Var extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Var) VarOrBuilder { private static final long serialVersionUID = 0L; // Use Var.newBuilder() to construct. private Var(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Var() { args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Var(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Var( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); varCase_ = 1; var_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } args_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry)); break; } case 24: { varCase_ = 3; var_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Var_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder.class); } private int varCase_ = 0; private java.lang.Object var_; public enum VarCase implements com.google.protobuf.Internal.EnumLite { VAR_STR(1), VAR_INTERNED_STR(3), VAR_NOT_SET(0); private final int value; private VarCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VarCase valueOf(int value) { return forNumber(value); } public static VarCase forNumber(int value) { switch (value) { case 1: return VAR_STR; case 3: return VAR_INTERNED_STR; case 0: return VAR_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VarCase getVarCase() { return VarCase.forNumber( varCase_); } public static final int VAR_STR_FIELD_NUMBER = 1; /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } 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(); if (varCase_ == 1) { var_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varCase_ == 1) { var_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } public static final int ARGS_FIELD_NUMBER = 2; private java.util.List args_; /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsList() { return args_; } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public int getArgsCount() { return args_.size(); } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } 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 (varCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } if (varCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) var_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, args_.get(i)); } if (varCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) var_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type.Var)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) obj; if (!getArgsList() .equals(other.getArgsList())) return false; if (!getVarCase().equals(other.getVarCase())) return false; switch (varCase_) { case 1: if (!getVarStr() .equals(other.getVarStr())) return false; break; case 3: if (getVarInternedStr() != other.getVarInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } switch (varCase_) { case 1: hash = (37 * hash) + VAR_STR_FIELD_NUMBER; hash = (53 * hash) + getVarStr().hashCode(); break; case 3: hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Var 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; } /** *
       * Possibly applied type variable 'TyVar'
       * 
* * Protobuf type {@code daml_lf_1.Type.Var} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Var) com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Var_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argsBuilder_.clear(); } varCase_ = 0; var_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var(this); int from_bitField0_ = bitField0_; if (varCase_ == 1) { result.var_ = var_; } if (varCase_ == 3) { result.var_ = var_; } if (argsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000001); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } result.varCase_ = varCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance()) return this; if (argsBuilder_ == null) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } switch (other.getVarCase()) { case VAR_STR: { varCase_ = 1; var_ = other.var_; onChanged(); break; } case VAR_INTERNED_STR: { setVarInternedStr(other.getVarInternedStr()); break; } case VAR_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int varCase_ = 0; private java.lang.Object var_; public VarCase getVarCase() { return VarCase.forNumber( varCase_); } public Builder clearVar() { varCase_ = 0; var_ = null; onChanged(); return this; } private int bitField0_; /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (varCase_ == 1) { var_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (varCase_ == 1) { ref = var_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varCase_ == 1) { var_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varCase_ = 1; var_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder clearVarStr() { if (varCase_ == 1) { varCase_ = 0; var_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varCase_ = 1; var_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public Builder setVarInternedStr(int value) { varCase_ = 3; var_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3[json_name = "varInternedStr"]; */ public Builder clearVarInternedStr() { if (varCase_ == 3) { varCase_ = 0; var_ = null; onChanged(); } return this; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); } else { argsBuilder_.setMessage(index, value); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.set(index, builderForValue.build()); onChanged(); } else { argsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); } else { argsBuilder_.addMessage(value); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(index, value); onChanged(); } else { argsBuilder_.addMessage(index, value); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(index, builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( args_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } @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:daml_lf_1.Type.Var) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Var) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Var parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Var(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Var getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Con) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ java.util.List getArgsList(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ int getArgsCount(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ java.util.List getArgsOrBuilderList(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Possibly applied type constructor 'TyCon'
     * 
* * Protobuf type {@code daml_lf_1.Type.Con} */ public static final class Con extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Con) ConOrBuilder { private static final long serialVersionUID = 0L; // Use Con.newBuilder() to construct. private Con(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Con() { args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Con(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Con( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } args_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Con_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder.class); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName tycon_; /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int ARGS_FIELD_NUMBER = 2; private java.util.List args_; /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsList() { return args_; } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public int getArgsCount() { return args_.size(); } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, args_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type.Con)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (!getArgsList() .equals(other.getArgsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Con 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; } /** *
       * Possibly applied type constructor 'TyCon'
       * 
* * Protobuf type {@code daml_lf_1.Type.Con} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Con) com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Con_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con(this); int from_bitField0_ = bitField0_; if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (argsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000001); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (argsBuilder_ == null) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> tyconBuilder_; /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); } else { argsBuilder_.setMessage(index, value); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.set(index, builderForValue.build()); onChanged(); } else { argsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); } else { argsBuilder_.addMessage(value); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(index, value); onChanged(); } else { argsBuilder_.addMessage(index, value); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(index, builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( args_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } @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:daml_lf_1.Type.Con) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Con) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Con parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Con(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrimOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Prim) com.google.protobuf.MessageOrBuilder { /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ int getPrimValue(); /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PrimType getPrim(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ java.util.List getArgsList(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ int getArgsCount(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Possibly applied builtin types
     * 
* * Protobuf type {@code daml_lf_1.Type.Prim} */ public static final class Prim extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Prim) PrimOrBuilder { private static final long serialVersionUID = 0L; // Use Prim.newBuilder() to construct. private Prim(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Prim() { prim_ = 0; args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Prim(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Prim( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); prim_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } args_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Prim_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder.class); } public static final int PRIM_FIELD_NUMBER = 1; private int prim_; /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public int getPrimValue() { return prim_; } /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimType getPrim() { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.PrimType result = com.digitalasset.daml_lf_1_7.DamlLf1.PrimType.valueOf(prim_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PrimType.UNRECOGNIZED : result; } public static final int ARGS_FIELD_NUMBER = 2; private java.util.List args_; /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsList() { return args_; } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public int getArgsCount() { return args_.size(); } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } 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 (prim_ != com.digitalasset.daml_lf_1_7.DamlLf1.PrimType.UNIT.getNumber()) { output.writeEnum(1, prim_); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (prim_ != com.digitalasset.daml_lf_1_7.DamlLf1.PrimType.UNIT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, prim_); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, args_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) obj; if (prim_ != other.prim_) return false; if (!getArgsList() .equals(other.getArgsList())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + PRIM_FIELD_NUMBER; hash = (53 * hash) + prim_; if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim 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; } /** *
       * Possibly applied builtin types
       * 
* * Protobuf type {@code daml_lf_1.Type.Prim} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Prim) com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Prim_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); prim_ = 0; if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim(this); int from_bitField0_ = bitField0_; result.prim_ = prim_; if (argsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000001); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance()) return this; if (other.prim_ != 0) { setPrimValue(other.getPrimValue()); } if (argsBuilder_ == null) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int prim_ = 0; /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public int getPrimValue() { return prim_; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public Builder setPrimValue(int value) { prim_ = value; onChanged(); return this; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimType getPrim() { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.PrimType result = com.digitalasset.daml_lf_1_7.DamlLf1.PrimType.valueOf(prim_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PrimType.UNRECOGNIZED : result; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public Builder setPrim(com.digitalasset.daml_lf_1_7.DamlLf1.PrimType value) { if (value == null) { throw new NullPointerException(); } prim_ = value.getNumber(); onChanged(); return this; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1[json_name = "prim"]; */ public Builder clearPrim() { prim_ = 0; onChanged(); return this; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); } else { argsBuilder_.setMessage(index, value); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.set(index, builderForValue.build()); onChanged(); } else { argsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); } else { argsBuilder_.addMessage(value); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(index, value); onChanged(); } else { argsBuilder_.addMessage(index, value); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(index, builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2[json_name = "args"]; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( args_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } @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:daml_lf_1.Type.Prim) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Prim) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Prim parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Prim(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Fun) com.google.protobuf.MessageOrBuilder { /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ java.util.List getParamsList(); /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getParams(int index); /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ int getParamsCount(); /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ java.util.List getParamsOrBuilderList(); /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getParamsOrBuilder( int index); /** *
       * type of the result
       * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ boolean hasResult(); /** *
       * type of the result
       * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getResult(); /** *
       * type of the result
       * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getResultOrBuilder(); } /** *
     * n-ary function type
     * *Available in versions < 1.2*
     * 
* * Protobuf type {@code daml_lf_1.Type.Fun} */ public static final class Fun extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Fun) FunOrBuilder { private static final long serialVersionUID = 0L; // Use Fun.newBuilder() to construct. private Fun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Fun() { params_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Fun(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Fun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } params_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry)); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Fun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Fun_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder.class); } public static final int PARAMS_FIELD_NUMBER = 1; private java.util.List params_; /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public java.util.List getParamsList() { return params_; } /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public java.util.List getParamsOrBuilderList() { return params_; } /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public int getParamsCount() { return params_.size(); } /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getParams(int index) { return params_.get(index); } /** *
       * type of the arguments
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int RESULT_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Type result_; /** *
       * type of the result
       * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public boolean hasResult() { return result_ != null; } /** *
       * type of the result
       * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getResult() { return result_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : result_; } /** *
       * type of the result
       * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getResultOrBuilder() { return getResult(); } 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 { for (int i = 0; i < params_.size(); i++) { output.writeMessage(1, params_.get(i)); } if (result_ != null) { output.writeMessage(2, getResult()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, params_.get(i)); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResult()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) obj; if (!getParamsList() .equals(other.getParamsList())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParamsCount() > 0) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParamsList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun 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; } /** *
       * n-ary function type
       * *Available in versions < 1.2*
       * 
* * Protobuf type {@code daml_lf_1.Type.Fun} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Fun) com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Fun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Fun_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { paramsBuilder_.clear(); } if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Fun_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun(this); int from_bitField0_ = bitField0_; if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000001); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance()) return this; if (paramsBuilder_ == null) { if (!other.params_.isEmpty()) { if (params_.isEmpty()) { params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); paramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List params_ = java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> paramsBuilder_; /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder setParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.set(index, value); onChanged(); } else { paramsBuilder_.setMessage(index, value); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder setParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder addParams(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(value); onChanged(); } else { paramsBuilder_.addMessage(value); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder addParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(index, value); onChanged(); } else { paramsBuilder_.addMessage(index, value); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder addParams( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder addParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder addAllParams( java.lang.Iterable values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * type of the arguments
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type params = 1[json_name = "params"]; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type result_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> resultBuilder_; /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getResult() { if (resultBuilder_ == null) { return result_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public Builder setResult(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public Builder setResult( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public Builder mergeResult(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : result_; } } /** *
         * type of the result
         * 
* * .daml_lf_1.Type result = 2[json_name = "result"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @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:daml_lf_1.Type.Fun) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Fun) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Fun parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Fun(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForallOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Forall) com.google.protobuf.MessageOrBuilder { /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ java.util.List getVarsList(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getVars(int index); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ int getVarsCount(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ java.util.List getVarsOrBuilderList(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder( int index); /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ boolean hasBody(); /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getBody(); /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getBodyOrBuilder(); } /** *
     * Universal quantification 'TyForAll'
     * 
* * Protobuf type {@code daml_lf_1.Type.Forall} */ public static final class Forall extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Forall) ForallOrBuilder { private static final long serialVersionUID = 0L; // Use Forall.newBuilder() to construct. private Forall(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Forall() { vars_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Forall(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Forall( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { vars_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } vars_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { vars_ = java.util.Collections.unmodifiableList(vars_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Forall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder.class); } public static final int VARS_FIELD_NUMBER = 1; private java.util.List vars_; /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public java.util.List getVarsList() { return vars_; } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public java.util.List getVarsOrBuilderList() { return vars_; } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public int getVarsCount() { return vars_.size(); } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getVars(int index) { return vars_.get(index); } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder( int index) { return vars_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Type body_; /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : body_; } /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getBodyOrBuilder() { return getBody(); } 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 { for (int i = 0; i < vars_.size(); i++) { output.writeMessage(1, vars_.get(i)); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < vars_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, vars_.get(i)); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) obj; if (!getVarsList() .equals(other.getVarsList())) return false; if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVarsCount() > 0) { hash = (37 * hash) + VARS_FIELD_NUMBER; hash = (53 * hash) + getVarsList().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall 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; } /** *
       * Universal quantification 'TyForAll'
       * 
* * Protobuf type {@code daml_lf_1.Type.Forall} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Forall) com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Forall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVarsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { varsBuilder_.clear(); } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall(this); int from_bitField0_ = bitField0_; if (varsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { vars_ = java.util.Collections.unmodifiableList(vars_); bitField0_ = (bitField0_ & ~0x00000001); } result.vars_ = vars_; } else { result.vars_ = varsBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance()) return this; if (varsBuilder_ == null) { if (!other.vars_.isEmpty()) { if (vars_.isEmpty()) { vars_ = other.vars_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVarsIsMutable(); vars_.addAll(other.vars_); } onChanged(); } } else { if (!other.vars_.isEmpty()) { if (varsBuilder_.isEmpty()) { varsBuilder_.dispose(); varsBuilder_ = null; vars_ = other.vars_; bitField0_ = (bitField0_ & ~0x00000001); varsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVarsFieldBuilder() : null; } else { varsBuilder_.addAllMessages(other.vars_); } } } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List vars_ = java.util.Collections.emptyList(); private void ensureVarsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { vars_ = new java.util.ArrayList(vars_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder> varsBuilder_; /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public java.util.List getVarsList() { if (varsBuilder_ == null) { return java.util.Collections.unmodifiableList(vars_); } else { return varsBuilder_.getMessageList(); } } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public int getVarsCount() { if (varsBuilder_ == null) { return vars_.size(); } else { return varsBuilder_.getCount(); } } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getVars(int index) { if (varsBuilder_ == null) { return vars_.get(index); } else { return varsBuilder_.getMessage(index); } } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder setVars( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.set(index, value); onChanged(); } else { varsBuilder_.setMessage(index, value); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder setVars( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.set(index, builderForValue.build()); onChanged(); } else { varsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder addVars(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.add(value); onChanged(); } else { varsBuilder_.addMessage(value); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder addVars( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.add(index, value); onChanged(); } else { varsBuilder_.addMessage(index, value); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder addVars( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(builderForValue.build()); onChanged(); } else { varsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder addVars( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(index, builderForValue.build()); onChanged(); } else { varsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder addAllVars( java.lang.Iterable values) { if (varsBuilder_ == null) { ensureVarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vars_); onChanged(); } else { varsBuilder_.addAllMessages(values); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder clearVars() { if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { varsBuilder_.clear(); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public Builder removeVars(int index) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.remove(index); onChanged(); } else { varsBuilder_.remove(index); } return this; } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder getVarsBuilder( int index) { return getVarsFieldBuilder().getBuilder(index); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder( int index) { if (varsBuilder_ == null) { return vars_.get(index); } else { return varsBuilder_.getMessageOrBuilder(index); } } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public java.util.List getVarsOrBuilderList() { if (varsBuilder_ != null) { return varsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(vars_); } } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder addVarsBuilder() { return getVarsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder addVarsBuilder( int index) { return getVarsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"]; */ public java.util.List getVarsBuilderList() { return getVarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder> getVarsFieldBuilder() { if (varsBuilder_ == null) { varsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder>( vars_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vars_ = null; } return varsBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> bodyBuilder_; /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : body_; } } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Type.Forall) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Forall) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Forall parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Forall(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TupleOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Tuple) com.google.protobuf.MessageOrBuilder { /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ java.util.List getFieldsList(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getFields(int index); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ int getFieldsCount(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ java.util.List getFieldsOrBuilderList(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index); } /** *
     * Tuple type
     * 
* * Protobuf type {@code daml_lf_1.Type.Tuple} */ public static final class Tuple extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Tuple) TupleOrBuilder { private static final long serialVersionUID = 0L; // Use Tuple.newBuilder() to construct. private Tuple(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tuple() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tuple(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tuple( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fields_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Tuple_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Tuple_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; private java.util.List fields_; /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsList() { return fields_; } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public int getFieldsCount() { return fields_.size(); } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getFields(int index) { return fields_.get(index); } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } 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 { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, fields_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) obj; if (!getFieldsList() .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple 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; } /** *
       * Tuple type
       * 
* * Protobuf type {@code daml_lf_1.Type.Tuple} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Tuple) com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Tuple_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Tuple_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fieldsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_Tuple_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple(this); int from_bitField0_ = bitField0_; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance()) return this; if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder> fieldsBuilder_; /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.getDefaultInstance()); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.getDefaultInstance()); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder>( fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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:daml_lf_1.Type.Tuple) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Tuple) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tuple parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Tuple(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { VAR(1), CON(2), PRIM(3), FUN(4), FORALL(5), TUPLE(7), NAT(11), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return VAR; case 2: return CON; case 3: return PRIM; case 4: return FUN; case 5: return FORALL; case 7: return TUPLE; case 11: return NAT; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int VAR_FIELD_NUMBER = 1; /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public boolean hasVar() { return sumCase_ == 1; } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var getVar() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder getVarOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } public static final int CON_FIELD_NUMBER = 2; /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public boolean hasCon() { return sumCase_ == 2; } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getCon() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getConOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } public static final int PRIM_FIELD_NUMBER = 3; /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public boolean hasPrim() { return sumCase_ == 3; } /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim getPrim() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } public static final int FUN_FIELD_NUMBER = 4; /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public boolean hasFun() { return sumCase_ == 4; } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun getFun() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder getFunOrBuilder() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } public static final int FORALL_FIELD_NUMBER = 5; /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public boolean hasForall() { return sumCase_ == 5; } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall getForall() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder getForallOrBuilder() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } public static final int TUPLE_FIELD_NUMBER = 7; /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public boolean hasTuple() { return sumCase_ == 7; } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple getTuple() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder getTupleOrBuilder() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } public static final int NAT_FIELD_NUMBER = 11; /** *
     * *Available in versions >= 1.7*
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 11[json_name = "nat"]; */ public long getNat() { if (sumCase_ == 11) { return (java.lang.Long) sum_; } return 0L; } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_); } if (sumCase_ == 11) { output.writeSInt64( 11, (long)((java.lang.Long) sum_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size( 11, (long)((java.lang.Long) sum_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Type)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Type other = (com.digitalasset.daml_lf_1_7.DamlLf1.Type) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getVar() .equals(other.getVar())) return false; break; case 2: if (!getCon() .equals(other.getCon())) return false; break; case 3: if (!getPrim() .equals(other.getPrim())) return false; break; case 4: if (!getFun() .equals(other.getFun())) return false; break; case 5: if (!getForall() .equals(other.getForall())) return false; break; case 7: if (!getTuple() .equals(other.getTuple())) return false; break; case 11: if (getNat() != other.getNat()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + VAR_FIELD_NUMBER; hash = (53 * hash) + getVar().hashCode(); break; case 2: hash = (37 * hash) + CON_FIELD_NUMBER; hash = (53 * hash) + getCon().hashCode(); break; case 3: hash = (37 * hash) + PRIM_FIELD_NUMBER; hash = (53 * hash) + getPrim().hashCode(); break; case 4: hash = (37 * hash) + FUN_FIELD_NUMBER; hash = (53 * hash) + getFun().hashCode(); break; case 5: hash = (37 * hash) + FORALL_FIELD_NUMBER; hash = (53 * hash) + getForall().hashCode(); break; case 7: hash = (37 * hash) + TUPLE_FIELD_NUMBER; hash = (53 * hash) + getTuple().hashCode(); break; case 11: hash = (37 * hash) + NAT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNat()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type 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.digitalasset.daml_lf_1_7.DamlLf1.Type parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type 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.digitalasset.daml_lf_1_7.DamlLf1.Type parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type 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.digitalasset.daml_lf_1_7.DamlLf1.Type 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; } /** *
     * Types
     * 
* * Protobuf type {@code daml_lf_1.Type} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type) com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Type.class, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Type_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type build() { com.digitalasset.daml_lf_1_7.DamlLf1.Type result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Type buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Type result = new com.digitalasset.daml_lf_1_7.DamlLf1.Type(this); if (sumCase_ == 1) { if (varBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = varBuilder_.build(); } } if (sumCase_ == 2) { if (conBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = conBuilder_.build(); } } if (sumCase_ == 3) { if (primBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = primBuilder_.build(); } } if (sumCase_ == 4) { if (funBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = funBuilder_.build(); } } if (sumCase_ == 5) { if (forallBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = forallBuilder_.build(); } } if (sumCase_ == 7) { if (tupleBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tupleBuilder_.build(); } } if (sumCase_ == 11) { result.sum_ = sum_; } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Type) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Type other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()) return this; switch (other.getSumCase()) { case VAR: { mergeVar(other.getVar()); break; } case CON: { mergeCon(other.getCon()); break; } case PRIM: { mergePrim(other.getPrim()); break; } case FUN: { mergeFun(other.getFun()); break; } case FORALL: { mergeForall(other.getForall()); break; } case TUPLE: { mergeTuple(other.getTuple()); break; } case NAT: { setNat(other.getNat()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Type parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Type) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder> varBuilder_; /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public boolean hasVar() { return sumCase_ == 1; } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var getVar() { if (varBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } else { if (sumCase_ == 1) { return varBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public Builder setVar(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var value) { if (varBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { varBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public Builder setVar( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder builderForValue) { if (varBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { varBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public Builder mergeVar(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var value) { if (varBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { varBuilder_.mergeFrom(value); } varBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public Builder clearVar() { if (varBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } varBuilder_.clear(); } return this; } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder getVarBuilder() { return getVarFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder getVarOrBuilder() { if ((sumCase_ == 1) && (varBuilder_ != null)) { return varBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } } /** * .daml_lf_1.Type.Var var = 1[json_name = "var"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder> getVarFieldBuilder() { if (varBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.getDefaultInstance(); } varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.VarOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Var) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return varBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> conBuilder_; /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public boolean hasCon() { return sumCase_ == 2; } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getCon() { if (conBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } else { if (sumCase_ == 2) { return conBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public Builder setCon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (conBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { conBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public Builder setCon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (conBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { conBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public Builder mergeCon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (conBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { conBuilder_.mergeFrom(value); } conBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public Builder clearCon() { if (conBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } conBuilder_.clear(); } return this; } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getConBuilder() { return getConFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getConOrBuilder() { if ((sumCase_ == 2) && (conBuilder_ != null)) { return conBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } } /** * .daml_lf_1.Type.Con con = 2[json_name = "con"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance(); } conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return conBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder> primBuilder_; /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public boolean hasPrim() { return sumCase_ == 3; } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim getPrim() { if (primBuilder_ == null) { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } else { if (sumCase_ == 3) { return primBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public Builder setPrim(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim value) { if (primBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { primBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public Builder setPrim( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder builderForValue) { if (primBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { primBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public Builder mergePrim(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim value) { if (primBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { primBuilder_.mergeFrom(value); } primBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public Builder clearPrim() { if (primBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } primBuilder_.clear(); } return this; } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder getPrimBuilder() { return getPrimFieldBuilder().getBuilder(); } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder() { if ((sumCase_ == 3) && (primBuilder_ != null)) { return primBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3[json_name = "prim"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder> getPrimFieldBuilder() { if (primBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.getDefaultInstance(); } primBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.PrimOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Prim) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return primBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder> funBuilder_; /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public boolean hasFun() { return sumCase_ == 4; } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun getFun() { if (funBuilder_ == null) { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } else { if (sumCase_ == 4) { return funBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public Builder setFun(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun value) { if (funBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { funBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public Builder setFun( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder builderForValue) { if (funBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { funBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public Builder mergeFun(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun value) { if (funBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 4) { funBuilder_.mergeFrom(value); } funBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public Builder clearFun() { if (funBuilder_ == null) { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; } funBuilder_.clear(); } return this; } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder getFunBuilder() { return getFunFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder getFunOrBuilder() { if ((sumCase_ == 4) && (funBuilder_ != null)) { return funBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } } /** * .daml_lf_1.Type.Fun fun = 4[json_name = "fun"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder> getFunFieldBuilder() { if (funBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.getDefaultInstance(); } funBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.FunOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Fun) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return funBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder> forallBuilder_; /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public boolean hasForall() { return sumCase_ == 5; } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall getForall() { if (forallBuilder_ == null) { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } else { if (sumCase_ == 5) { return forallBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public Builder setForall(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall value) { if (forallBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { forallBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public Builder setForall( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder builderForValue) { if (forallBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { forallBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public Builder mergeForall(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall value) { if (forallBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { forallBuilder_.mergeFrom(value); } forallBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public Builder clearForall() { if (forallBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } forallBuilder_.clear(); } return this; } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder getForallBuilder() { return getForallFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder getForallOrBuilder() { if ((sumCase_ == 5) && (forallBuilder_ != null)) { return forallBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } } /** * .daml_lf_1.Type.Forall forall = 5[json_name = "forall"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder> getForallFieldBuilder() { if (forallBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.getDefaultInstance(); } forallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ForallOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Forall) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return forallBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder> tupleBuilder_; /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public boolean hasTuple() { return sumCase_ == 7; } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple getTuple() { if (tupleBuilder_ == null) { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } else { if (sumCase_ == 7) { return tupleBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public Builder setTuple(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple value) { if (tupleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tupleBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public Builder setTuple( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder builderForValue) { if (tupleBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tupleBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public Builder mergeTuple(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple value) { if (tupleBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { tupleBuilder_.mergeFrom(value); } tupleBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public Builder clearTuple() { if (tupleBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } tupleBuilder_.clear(); } return this; } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder getTupleBuilder() { return getTupleFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder getTupleOrBuilder() { if ((sumCase_ == 7) && (tupleBuilder_ != null)) { return tupleBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } } /** * .daml_lf_1.Type.Tuple tuple = 7[json_name = "tuple"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder> getTupleFieldBuilder() { if (tupleBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.getDefaultInstance(); } tupleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.TupleOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type.Tuple) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return tupleBuilder_; } /** *
       * *Available in versions >= 1.7*
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 11[json_name = "nat"]; */ public long getNat() { if (sumCase_ == 11) { return (java.lang.Long) sum_; } return 0L; } /** *
       * *Available in versions >= 1.7*
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 11[json_name = "nat"]; */ public Builder setNat(long value) { sumCase_ = 11; sum_ = value; onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 11[json_name = "nat"]; */ public Builder clearNat() { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; 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:daml_lf_1.Type) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Type DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Type(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Type getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Type parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Type(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Type getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrimLitOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.PrimLit) com.google.protobuf.MessageOrBuilder { /** *
     *  64-bit integer literal ('LitInt64')
     * 
* * sint64 int64 = 1[json_name = "int64"]; */ long getInt64(); /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ java.lang.String getDecimalStr(); /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ com.google.protobuf.ByteString getDecimalStrBytes(); /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 10[json_name = "numericInternedStr"]; */ int getNumericInternedStr(); /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4[json_name = "textStr"]; */ java.lang.String getTextStr(); /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4[json_name = "textStr"]; */ com.google.protobuf.ByteString getTextStrBytes(); /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 11[json_name = "textInternedStr"]; */ int getTextInternedStr(); /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 5[json_name = "timestamp"]; */ long getTimestamp(); /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7[json_name = "partyStr"]; */ java.lang.String getPartyStr(); /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7[json_name = "partyStr"]; */ com.google.protobuf.ByteString getPartyStrBytes(); /** *
     * *Must be a valid interned PartyId string*
     * 
* * int32 party_interned_str = 12[json_name = "partyInternedStr"]; */ int getPartyInternedStr(); /** *
     * *Must be a valid date*
     * 
* * int32 date = 8[json_name = "date"]; */ int getDate(); public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.SumCase getSumCase(); } /** *
   * Builtin literals
   * FixMe: Renamed
   * 
* * Protobuf type {@code daml_lf_1.PrimLit} */ public static final class PrimLit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.PrimLit) PrimLitOrBuilder { private static final long serialVersionUID = 0L; // Use PrimLit.newBuilder() to construct. private PrimLit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrimLit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrimLit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrimLit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { sumCase_ = 1; sum_ = input.readSInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 2; sum_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 4; sum_ = s; break; } case 41: { sumCase_ = 5; sum_ = input.readSFixed64(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 7; sum_ = s; break; } case 64: { sumCase_ = 8; sum_ = input.readInt32(); break; } case 80: { sumCase_ = 10; sum_ = input.readInt32(); break; } case 88: { sumCase_ = 11; sum_ = input.readInt32(); break; } case 96: { sumCase_ = 12; sum_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PrimLit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.class, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder.class); } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { INT64(1), DECIMAL_STR(2), NUMERIC_INTERNED_STR(10), TEXT_STR(4), TEXT_INTERNED_STR(11), TIMESTAMP(5), PARTY_STR(7), PARTY_INTERNED_STR(12), DATE(8), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return INT64; case 2: return DECIMAL_STR; case 10: return NUMERIC_INTERNED_STR; case 4: return TEXT_STR; case 11: return TEXT_INTERNED_STR; case 5: return TIMESTAMP; case 7: return PARTY_STR; case 12: return PARTY_INTERNED_STR; case 8: return DATE; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int INT64_FIELD_NUMBER = 1; /** *
     *  64-bit integer literal ('LitInt64')
     * 
* * sint64 int64 = 1[json_name = "int64"]; */ public long getInt64() { if (sumCase_ == 1) { return (java.lang.Long) sum_; } return 0L; } public static final int DECIMAL_STR_FIELD_NUMBER = 2; /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public java.lang.String getDecimalStr() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } 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(); if (sumCase_ == 2) { sum_ = s; } return s; } } /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public com.google.protobuf.ByteString getDecimalStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 2) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NUMERIC_INTERNED_STR_FIELD_NUMBER = 10; /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 10[json_name = "numericInternedStr"]; */ public int getNumericInternedStr() { if (sumCase_ == 10) { return (java.lang.Integer) sum_; } return 0; } public static final int TEXT_STR_FIELD_NUMBER = 4; /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4[json_name = "textStr"]; */ public java.lang.String getTextStr() { java.lang.Object ref = ""; if (sumCase_ == 4) { ref = sum_; } 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(); if (sumCase_ == 4) { sum_ = s; } return s; } } /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4[json_name = "textStr"]; */ public com.google.protobuf.ByteString getTextStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 4) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 4) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_INTERNED_STR_FIELD_NUMBER = 11; /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 11[json_name = "textInternedStr"]; */ public int getTextInternedStr() { if (sumCase_ == 11) { return (java.lang.Integer) sum_; } return 0; } public static final int TIMESTAMP_FIELD_NUMBER = 5; /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 5[json_name = "timestamp"]; */ public long getTimestamp() { if (sumCase_ == 5) { return (java.lang.Long) sum_; } return 0L; } public static final int PARTY_STR_FIELD_NUMBER = 7; /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7[json_name = "partyStr"]; */ public java.lang.String getPartyStr() { java.lang.Object ref = ""; if (sumCase_ == 7) { ref = sum_; } 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(); if (sumCase_ == 7) { sum_ = s; } return s; } } /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7[json_name = "partyStr"]; */ public com.google.protobuf.ByteString getPartyStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 7) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 7) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTY_INTERNED_STR_FIELD_NUMBER = 12; /** *
     * *Must be a valid interned PartyId string*
     * 
* * int32 party_interned_str = 12[json_name = "partyInternedStr"]; */ public int getPartyInternedStr() { if (sumCase_ == 12) { return (java.lang.Integer) sum_; } return 0; } public static final int DATE_FIELD_NUMBER = 8; /** *
     * *Must be a valid date*
     * 
* * int32 date = 8[json_name = "date"]; */ public int getDate() { if (sumCase_ == 8) { return (java.lang.Integer) sum_; } return 0; } 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 (sumCase_ == 1) { output.writeSInt64( 1, (long)((java.lang.Long) sum_)); } if (sumCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sum_); } if (sumCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sum_); } if (sumCase_ == 5) { output.writeSFixed64( 5, (long)((java.lang.Long) sum_)); } if (sumCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sum_); } if (sumCase_ == 8) { output.writeInt32( 8, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 10) { output.writeInt32( 10, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 11) { output.writeInt32( 11, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 12) { output.writeInt32( 12, (int)((java.lang.Integer) sum_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size( 1, (long)((java.lang.Long) sum_)); } if (sumCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sum_); } if (sumCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size( 5, (long)((java.lang.Long) sum_)); } if (sumCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 8, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 10, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 11, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 12, (int)((java.lang.Integer) sum_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.PrimLit)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit other = (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (getInt64() != other.getInt64()) return false; break; case 2: if (!getDecimalStr() .equals(other.getDecimalStr())) return false; break; case 10: if (getNumericInternedStr() != other.getNumericInternedStr()) return false; break; case 4: if (!getTextStr() .equals(other.getTextStr())) return false; break; case 11: if (getTextInternedStr() != other.getTextInternedStr()) return false; break; case 5: if (getTimestamp() != other.getTimestamp()) return false; break; case 7: if (!getPartyStr() .equals(other.getPartyStr())) return false; break; case 12: if (getPartyInternedStr() != other.getPartyInternedStr()) return false; break; case 8: if (getDate() != other.getDate()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + INT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt64()); break; case 2: hash = (37 * hash) + DECIMAL_STR_FIELD_NUMBER; hash = (53 * hash) + getDecimalStr().hashCode(); break; case 10: hash = (37 * hash) + NUMERIC_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getNumericInternedStr(); break; case 4: hash = (37 * hash) + TEXT_STR_FIELD_NUMBER; hash = (53 * hash) + getTextStr().hashCode(); break; case 11: hash = (37 * hash) + TEXT_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getTextInternedStr(); break; case 5: hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); break; case 7: hash = (37 * hash) + PARTY_STR_FIELD_NUMBER; hash = (53 * hash) + getPartyStr().hashCode(); break; case 12: hash = (37 * hash) + PARTY_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getPartyInternedStr(); break; case 8: hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit 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.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit 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.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit 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.digitalasset.daml_lf_1_7.DamlLf1.PrimLit 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; } /** *
     * Builtin literals
     * FixMe: Renamed
     * 
* * Protobuf type {@code daml_lf_1.PrimLit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.PrimLit) com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PrimLit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.class, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit build() { com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit result = new com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit(this); if (sumCase_ == 1) { result.sum_ = sum_; } if (sumCase_ == 2) { result.sum_ = sum_; } if (sumCase_ == 10) { result.sum_ = sum_; } if (sumCase_ == 4) { result.sum_ = sum_; } if (sumCase_ == 11) { result.sum_ = sum_; } if (sumCase_ == 5) { result.sum_ = sum_; } if (sumCase_ == 7) { result.sum_ = sum_; } if (sumCase_ == 12) { result.sum_ = sum_; } if (sumCase_ == 8) { result.sum_ = sum_; } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance()) return this; switch (other.getSumCase()) { case INT64: { setInt64(other.getInt64()); break; } case DECIMAL_STR: { sumCase_ = 2; sum_ = other.sum_; onChanged(); break; } case NUMERIC_INTERNED_STR: { setNumericInternedStr(other.getNumericInternedStr()); break; } case TEXT_STR: { sumCase_ = 4; sum_ = other.sum_; onChanged(); break; } case TEXT_INTERNED_STR: { setTextInternedStr(other.getTextInternedStr()); break; } case TIMESTAMP: { setTimestamp(other.getTimestamp()); break; } case PARTY_STR: { sumCase_ = 7; sum_ = other.sum_; onChanged(); break; } case PARTY_INTERNED_STR: { setPartyInternedStr(other.getPartyInternedStr()); break; } case DATE: { setDate(other.getDate()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } /** *
       *  64-bit integer literal ('LitInt64')
       * 
* * sint64 int64 = 1[json_name = "int64"]; */ public long getInt64() { if (sumCase_ == 1) { return (java.lang.Long) sum_; } return 0L; } /** *
       *  64-bit integer literal ('LitInt64')
       * 
* * sint64 int64 = 1[json_name = "int64"]; */ public Builder setInt64(long value) { sumCase_ = 1; sum_ = value; onChanged(); return this; } /** *
       *  64-bit integer literal ('LitInt64')
       * 
* * sint64 int64 = 1[json_name = "int64"]; */ public Builder clearInt64() { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public java.lang.String getDecimalStr() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 2) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public com.google.protobuf.ByteString getDecimalStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 2) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 2) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public Builder setDecimalStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 2; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public Builder clearDecimalStr() { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2[json_name = "decimalStr"]; */ public Builder setDecimalStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 2; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 10[json_name = "numericInternedStr"]; */ public int getNumericInternedStr() { if (sumCase_ == 10) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 10[json_name = "numericInternedStr"]; */ public Builder setNumericInternedStr(int value) { sumCase_ = 10; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 10[json_name = "numericInternedStr"]; */ public Builder clearNumericInternedStr() { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4[json_name = "textStr"]; */ public java.lang.String getTextStr() { java.lang.Object ref = ""; if (sumCase_ == 4) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 4) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4[json_name = "textStr"]; */ public com.google.protobuf.ByteString getTextStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 4) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 4) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4[json_name = "textStr"]; */ public Builder setTextStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 4; sum_ = value; onChanged(); return this; } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4[json_name = "textStr"]; */ public Builder clearTextStr() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4[json_name = "textStr"]; */ public Builder setTextStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 4; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 11[json_name = "textInternedStr"]; */ public int getTextInternedStr() { if (sumCase_ == 11) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 11[json_name = "textInternedStr"]; */ public Builder setTextInternedStr(int value) { sumCase_ = 11; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 11[json_name = "textInternedStr"]; */ public Builder clearTextInternedStr() { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5[json_name = "timestamp"]; */ public long getTimestamp() { if (sumCase_ == 5) { return (java.lang.Long) sum_; } return 0L; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5[json_name = "timestamp"]; */ public Builder setTimestamp(long value) { sumCase_ = 5; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5[json_name = "timestamp"]; */ public Builder clearTimestamp() { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7[json_name = "partyStr"]; */ public java.lang.String getPartyStr() { java.lang.Object ref = ""; if (sumCase_ == 7) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 7) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7[json_name = "partyStr"]; */ public com.google.protobuf.ByteString getPartyStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 7) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 7) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7[json_name = "partyStr"]; */ public Builder setPartyStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 7; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7[json_name = "partyStr"]; */ public Builder clearPartyStr() { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7[json_name = "partyStr"]; */ public Builder setPartyStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 7; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned PartyId string*
       * 
* * int32 party_interned_str = 12[json_name = "partyInternedStr"]; */ public int getPartyInternedStr() { if (sumCase_ == 12) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned PartyId string*
       * 
* * int32 party_interned_str = 12[json_name = "partyInternedStr"]; */ public Builder setPartyInternedStr(int value) { sumCase_ = 12; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned PartyId string*
       * 
* * int32 party_interned_str = 12[json_name = "partyInternedStr"]; */ public Builder clearPartyInternedStr() { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8[json_name = "date"]; */ public int getDate() { if (sumCase_ == 8) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8[json_name = "date"]; */ public Builder setDate(int value) { sumCase_ = 8; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8[json_name = "date"]; */ public Builder clearDate() { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; 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:daml_lf_1.PrimLit) } // @@protoc_insertion_point(class_scope:daml_lf_1.PrimLit) private static final com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrimLit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrimLit(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.PrimLit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Location) com.google.protobuf.MessageOrBuilder { /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ boolean hasModule(); /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule(); /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ boolean hasRange(); /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range getRange(); /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder(); } /** *
   * Source code locations
   * 
* * Protobuf type {@code daml_lf_1.Location} */ public static final class Location extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Location) LocationOrBuilder { private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Location() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Location(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(module_); module_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder subBuilder = null; if (range_ != null) { subBuilder = range_.toBuilder(); } range_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(range_); range_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Location.class, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder.class); } public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Location.Range) com.google.protobuf.MessageOrBuilder { /** * int32 start_line = 1[json_name = "startLine"]; */ int getStartLine(); /** * int32 start_col = 2[json_name = "startCol"]; */ int getStartCol(); /** * int32 end_line = 3[json_name = "endLine"]; */ int getEndLine(); /** * int32 end_col = 4[json_name = "endCol"]; */ int getEndCol(); } /** *
     * 0-indexed start and end line and column numbers.
     * 
* * Protobuf type {@code daml_lf_1.Location.Range} */ public static final class Range extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Location.Range) RangeOrBuilder { private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Range() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Range(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Range( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startLine_ = input.readInt32(); break; } case 16: { startCol_ = input.readInt32(); break; } case 24: { endLine_ = input.readInt32(); break; } case 32: { endCol_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.class, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder.class); } public static final int START_LINE_FIELD_NUMBER = 1; private int startLine_; /** * int32 start_line = 1[json_name = "startLine"]; */ public int getStartLine() { return startLine_; } public static final int START_COL_FIELD_NUMBER = 2; private int startCol_; /** * int32 start_col = 2[json_name = "startCol"]; */ public int getStartCol() { return startCol_; } public static final int END_LINE_FIELD_NUMBER = 3; private int endLine_; /** * int32 end_line = 3[json_name = "endLine"]; */ public int getEndLine() { return endLine_; } public static final int END_COL_FIELD_NUMBER = 4; private int endCol_; /** * int32 end_col = 4[json_name = "endCol"]; */ public int getEndCol() { return endCol_; } 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 (startLine_ != 0) { output.writeInt32(1, startLine_); } if (startCol_ != 0) { output.writeInt32(2, startCol_); } if (endLine_ != 0) { output.writeInt32(3, endLine_); } if (endCol_ != 0) { output.writeInt32(4, endCol_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startLine_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, startLine_); } if (startCol_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, startCol_); } if (endLine_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, endLine_); } if (endCol_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, endCol_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Location.Range)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range other = (com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range) obj; if (getStartLine() != other.getStartLine()) return false; if (getStartCol() != other.getStartCol()) return false; if (getEndLine() != other.getEndLine()) return false; if (getEndCol() != other.getEndCol()) return false; if (!unknownFields.equals(other.unknownFields)) 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) + START_LINE_FIELD_NUMBER; hash = (53 * hash) + getStartLine(); hash = (37 * hash) + START_COL_FIELD_NUMBER; hash = (53 * hash) + getStartCol(); hash = (37 * hash) + END_LINE_FIELD_NUMBER; hash = (53 * hash) + getEndLine(); hash = (37 * hash) + END_COL_FIELD_NUMBER; hash = (53 * hash) + getEndCol(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range 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.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range 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.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range 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.digitalasset.daml_lf_1_7.DamlLf1.Location.Range 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; } /** *
       * 0-indexed start and end line and column numbers.
       * 
* * Protobuf type {@code daml_lf_1.Location.Range} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Location.Range) com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.class, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); startLine_ = 0; startCol_ = 0; endLine_ = 0; endCol_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range build() { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range result = new com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range(this); result.startLine_ = startLine_; result.startCol_ = startCol_; result.endLine_ = endLine_; result.endCol_ = endCol_; 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.digitalasset.daml_lf_1_7.DamlLf1.Location.Range) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.getDefaultInstance()) return this; if (other.getStartLine() != 0) { setStartLine(other.getStartLine()); } if (other.getStartCol() != 0) { setStartCol(other.getStartCol()); } if (other.getEndLine() != 0) { setEndLine(other.getEndLine()); } if (other.getEndCol() != 0) { setEndCol(other.getEndCol()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int startLine_ ; /** * int32 start_line = 1[json_name = "startLine"]; */ public int getStartLine() { return startLine_; } /** * int32 start_line = 1[json_name = "startLine"]; */ public Builder setStartLine(int value) { startLine_ = value; onChanged(); return this; } /** * int32 start_line = 1[json_name = "startLine"]; */ public Builder clearStartLine() { startLine_ = 0; onChanged(); return this; } private int startCol_ ; /** * int32 start_col = 2[json_name = "startCol"]; */ public int getStartCol() { return startCol_; } /** * int32 start_col = 2[json_name = "startCol"]; */ public Builder setStartCol(int value) { startCol_ = value; onChanged(); return this; } /** * int32 start_col = 2[json_name = "startCol"]; */ public Builder clearStartCol() { startCol_ = 0; onChanged(); return this; } private int endLine_ ; /** * int32 end_line = 3[json_name = "endLine"]; */ public int getEndLine() { return endLine_; } /** * int32 end_line = 3[json_name = "endLine"]; */ public Builder setEndLine(int value) { endLine_ = value; onChanged(); return this; } /** * int32 end_line = 3[json_name = "endLine"]; */ public Builder clearEndLine() { endLine_ = 0; onChanged(); return this; } private int endCol_ ; /** * int32 end_col = 4[json_name = "endCol"]; */ public int getEndCol() { return endCol_; } /** * int32 end_col = 4[json_name = "endCol"]; */ public Builder setEndCol(int value) { endCol_ = value; onChanged(); return this; } /** * int32 end_col = 4[json_name = "endCol"]; */ public Builder clearEndCol() { endCol_ = 0; 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:daml_lf_1.Location.Range) } // @@protoc_insertion_point(class_scope:daml_lf_1.Location.Range) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Range parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Range(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Location.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MODULE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef module_; /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public boolean hasModule() { return module_ != null; } /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule() { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { return getModule(); } public static final int RANGE_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range range_; /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public boolean hasRange() { return range_ != null; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range getRange() { return range_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.getDefaultInstance() : range_; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder() { return getRange(); } 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 (module_ != null) { output.writeMessage(1, getModule()); } if (range_ != null) { output.writeMessage(2, getRange()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (module_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModule()); } if (range_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRange()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Location)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Location other = (com.digitalasset.daml_lf_1_7.DamlLf1.Location) obj; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) return false; } if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (!getRange() .equals(other.getRange())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasModule()) { hash = (37 * hash) + MODULE_FIELD_NUMBER; hash = (53 * hash) + getModule().hashCode(); } if (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location 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.digitalasset.daml_lf_1_7.DamlLf1.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location 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.digitalasset.daml_lf_1_7.DamlLf1.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location 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.digitalasset.daml_lf_1_7.DamlLf1.Location 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; } /** *
     * Source code locations
     * 
* * Protobuf type {@code daml_lf_1.Location} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Location) com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Location.class, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Location.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (moduleBuilder_ == null) { module_ = null; } else { module_ = null; moduleBuilder_ = null; } if (rangeBuilder_ == null) { range_ = null; } else { range_ = null; rangeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Location_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Location getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Location build() { com.digitalasset.daml_lf_1_7.DamlLf1.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Location buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Location result = new com.digitalasset.daml_lf_1_7.DamlLf1.Location(this); if (moduleBuilder_ == null) { result.module_ = module_; } else { result.module_ = moduleBuilder_.build(); } if (rangeBuilder_ == null) { result.range_ = range_; } else { result.range_ = rangeBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Location) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Location other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance()) return this; if (other.hasModule()) { mergeModule(other.getModule()); } if (other.hasRange()) { mergeRange(other.getRange()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Location parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Location) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder setModule(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } module_ = value; onChanged(); } else { moduleBuilder_.setMessage(value); } return this; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder setModule( com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder builderForValue) { if (moduleBuilder_ == null) { module_ = builderForValue.build(); onChanged(); } else { moduleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder mergeModule(com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial(); } else { module_ = value; } onChanged(); } else { moduleBuilder_.mergeFrom(value); } return this; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public Builder clearModule() { if (moduleBuilder_ == null) { module_ = null; onChanged(); } else { module_ = null; moduleBuilder_ = null; } return this; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1[json_name = "module"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range range_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder> rangeBuilder_; /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public boolean hasRange() { return rangeBuilder_ != null || range_ != null; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public Builder setRange(com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; onChanged(); } else { rangeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public Builder setRange( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); onChanged(); } else { rangeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public Builder mergeRange(com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range value) { if (rangeBuilder_ == null) { if (range_ != null) { range_ = com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.newBuilder(range_).mergeFrom(value).buildPartial(); } else { range_ = value; } onChanged(); } else { rangeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public Builder clearRange() { if (rangeBuilder_ == null) { range_ = null; onChanged(); } else { range_ = null; rangeBuilder_ = null; } return this; } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder getRangeBuilder() { onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.getDefaultInstance() : range_; } } /** * .daml_lf_1.Location.Range range = 2[json_name = "range"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Range.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Location.RangeOrBuilder>( getRange(), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } @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:daml_lf_1.Location) } // @@protoc_insertion_point(class_scope:daml_lf_1.Location) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Location(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Location getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Location parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Location(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr) com.google.protobuf.MessageOrBuilder { /** *
     * Location of the expression in the DAML code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ boolean hasLocation(); /** *
     * Location of the expression in the DAML code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation(); /** *
     * Location of the expression in the DAML code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ java.lang.String getVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ com.google.protobuf.ByteString getVarStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 29[json_name = "varInternedStr"]; */ int getVarInternedStr(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ boolean hasVal(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ValName getVal(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder getValOrBuilder(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ int getBuiltinValue(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction getBuiltin(); /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ int getPrimConValue(); /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon getPrimCon(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ boolean hasPrimLit(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit getPrimLit(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ boolean hasRecCon(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon getRecCon(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ boolean hasRecProj(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj getRecProj(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ boolean hasRecUpd(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd getRecUpd(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ boolean hasVariantCon(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon getVariantCon(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ boolean hasEnumCon(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon getEnumCon(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder(); /** *
     * Tuple construction ('ExpTupleCon')
     * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ boolean hasTupleCon(); /** *
     * Tuple construction ('ExpTupleCon')
     * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon getTupleCon(); /** *
     * Tuple construction ('ExpTupleCon')
     * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder getTupleConOrBuilder(); /** *
     * Tuple project ('ExpTupleProj')
     * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ boolean hasTupleProj(); /** *
     * Tuple project ('ExpTupleProj')
     * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj getTupleProj(); /** *
     * Tuple project ('ExpTupleProj')
     * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder getTupleProjOrBuilder(); /** *
     * Tuple update ('ExpTupleUpdate')
     * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ boolean hasTupleUpd(); /** *
     * Tuple update ('ExpTupleUpdate')
     * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd getTupleUpd(); /** *
     * Tuple update ('ExpTupleUpdate')
     * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder getTupleUpdOrBuilder(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ boolean hasApp(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App getApp(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder getAppOrBuilder(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ boolean hasTyApp(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp getTyApp(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ boolean hasAbs(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs getAbs(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ boolean hasTyAbs(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs getTyAbs(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ boolean hasCase(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Case getCase(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder getCaseOrBuilder(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ boolean hasLet(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Block getLet(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getLetOrBuilder(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ boolean hasNil(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil getNil(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder getNilOrBuilder(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ boolean hasCons(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons getCons(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ boolean hasUpdate(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update getUpdate(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder getUpdateOrBuilder(); /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ boolean hasScenario(); /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario getScenario(); /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder(); /** *
     * empty optional value ('ExpNone')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ boolean hasOptionalNone(); /** *
     * empty optional value ('ExpNone')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone getOptionalNone(); /** *
     * empty optional value ('ExpNone')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder(); /** *
     * non empty optional value ('ExpSome')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ boolean hasOptionalSome(); /** *
     * non empty optional value ('ExpSome')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome getOptionalSome(); /** *
     * non empty optional value ('ExpSome')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ boolean hasToAny(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny getToAny(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder getToAnyOrBuilder(); /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ boolean hasFromAny(); /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny getFromAny(); /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder(); /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ boolean hasTypeRep(); /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getTypeRep(); /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeRepOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.SumCase getSumCase(); } /** *
   * Expressions
   * 
* * Protobuf type {@code daml_lf_1.Expr} */ public static final class Expr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr) ExprOrBuilder { private static final long serialVersionUID = 0L; // Use Expr.newBuilder() to construct. private Expr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Expr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Expr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Expr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 1; sum_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.ValName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 24: { int rawValue = input.readEnum(); sumCase_ = 3; sum_ = rawValue; break; } case 32: { int rawValue = input.readEnum(); sumCase_ = 4; sum_ = rawValue; break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder subBuilder = null; if (sumCase_ == 6) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 6; break; } case 58: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } case 74: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder subBuilder = null; if (sumCase_ == 9) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 9; break; } case 82: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder subBuilder = null; if (sumCase_ == 10) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 10; break; } case 90: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder subBuilder = null; if (sumCase_ == 11) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 11; break; } case 98: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder subBuilder = null; if (sumCase_ == 12) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 12; break; } case 106: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder subBuilder = null; if (sumCase_ == 13) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 13; break; } case 114: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder subBuilder = null; if (sumCase_ == 14) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 14; break; } case 122: { com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder subBuilder = null; if (sumCase_ == 15) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Case.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 15; break; } case 130: { com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder subBuilder = null; if (sumCase_ == 16) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 16; break; } case 138: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder subBuilder = null; if (sumCase_ == 17) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 17; break; } case 146: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder subBuilder = null; if (sumCase_ == 18) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 18; break; } case 162: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder subBuilder = null; if (sumCase_ == 20) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 20; break; } case 170: { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder subBuilder = null; if (sumCase_ == 21) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 21; break; } case 178: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder subBuilder = null; if (sumCase_ == 22) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 22; break; } case 186: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder subBuilder = null; if (sumCase_ == 23) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 23; break; } case 202: { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 210: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder subBuilder = null; if (sumCase_ == 26) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 26; break; } case 218: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder subBuilder = null; if (sumCase_ == 27) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 27; break; } case 226: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder subBuilder = null; if (sumCase_ == 28) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 28; break; } case 232: { sumCase_ = 29; sum_ = input.readInt32(); break; } case 242: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder subBuilder = null; if (sumCase_ == 30) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 30; break; } case 250: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder subBuilder = null; if (sumCase_ == 31) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 31; break; } case 258: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (sumCase_ == 32) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 32; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder.class); } public interface RecConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.RecCon) com.google.protobuf.MessageOrBuilder { /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon(); /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ java.util.List getFieldsList(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getFields(int index); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ int getFieldsCount(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ java.util.List getFieldsOrBuilderList(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index); } /** *
     * Record construction ('ExpRecCon')
     * 
* * Protobuf type {@code daml_lf_1.Expr.RecCon} */ public static final class RecCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.RecCon) RecConOrBuilder { private static final long serialVersionUID = 0L; // Use RecCon.newBuilder() to construct. private RecCon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecCon() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecCon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecCon( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fields_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder.class); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELDS_FIELD_NUMBER = 2; private java.util.List fields_; /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public java.util.List getFieldsList() { return fields_; } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public int getFieldsCount() { return fields_.size(); } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getFields(int index) { return fields_.get(index); } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(2, fields_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fields_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (!getFieldsList() .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon 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; } /** *
       * Record construction ('ExpRecCon')
       * 
* * Protobuf type {@code daml_lf_1.Expr.RecCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.RecCon) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fieldsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon(this); int from_bitField0_ = bitField0_; if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder> fieldsBuilder_; /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder addFields(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder addFields( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"]; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder>( fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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:daml_lf_1.Expr.RecCon) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.RecCon) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecCon parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecCon(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecProjOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.RecProj) com.google.protobuf.MessageOrBuilder { /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon(); /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ boolean hasRecord(); /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getRecord(); /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getRecordOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.FieldCase getFieldCase(); } /** *
     * Record projection (ExpRecProj)
     * 
* * Protobuf type {@code daml_lf_1.Expr.RecProj} */ public static final class RecProj extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.RecProj) RecProjOrBuilder { private static final long serialVersionUID = 0L; // Use RecProj.newBuilder() to construct. private RecProj(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecProj() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecProj(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecProj( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 2; field_ = s; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (record_ != null) { subBuilder = record_.toBuilder(); } record_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(record_); record_ = subBuilder.buildPartial(); } break; } case 32: { fieldCase_ = 4; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(2), FIELD_INTERNED_STR(4), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 2: return FIELD_STR; case 4: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELD_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } 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(); if (fieldCase_ == 2) { field_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 2) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 4; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 4) { return (java.lang.Integer) field_; } return 0; } public static final int RECORD_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr record_; /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public boolean hasRecord() { return record_ != null; } /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getRecord() { return record_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : record_; } /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getRecordOrBuilder() { return getRecord(); } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } if (fieldCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); } if (record_ != null) { output.writeMessage(3, getRecord()); } if (fieldCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (fieldCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); } if (record_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecord()); } if (fieldCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (hasRecord() != other.hasRecord()) return false; if (hasRecord()) { if (!getRecord() .equals(other.getRecord())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 2: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 4: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } if (hasRecord()) { hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); } switch (fieldCase_) { case 2: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 4: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj 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; } /** *
       * Record projection (ExpRecProj)
       * 
* * Protobuf type {@code daml_lf_1.Expr.RecProj} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.RecProj) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } if (recordBuilder_ == null) { record_ = null; } else { record_ = null; recordBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj(this); if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (fieldCase_ == 2) { result.field_ = field_; } if (fieldCase_ == 4) { result.field_ = field_; } if (recordBuilder_ == null) { result.record_ = record_; } else { result.record_ = recordBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.hasRecord()) { mergeRecord(other.getRecord()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 2; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 2) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 2) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 2; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 2) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 2; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 4) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 4; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 4) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr record_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> recordBuilder_; /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public boolean hasRecord() { return recordBuilder_ != null || record_ != null; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder setRecord(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } record_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder setRecord( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (recordBuilder_ == null) { record_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder mergeRecord(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (recordBuilder_ == null) { if (record_ != null) { record_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(record_).mergeFrom(value).buildPartial(); } else { record_ = value; } onChanged(); } else { recordBuilder_.mergeFrom(value); } return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder clearRecord() { if (recordBuilder_ == null) { record_ = null; onChanged(); } else { record_ = null; recordBuilder_ = null; } return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getRecordBuilder() { onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : record_; } } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getRecord(), getParentForChildren(), isClean()); record_ = null; } return recordBuilder_; } @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:daml_lf_1.Expr.RecProj) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.RecProj) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecProj parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecProj(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecUpdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.RecUpd) com.google.protobuf.MessageOrBuilder { /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon(); /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 5[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ boolean hasRecord(); /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getRecord(); /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getRecordOrBuilder(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ boolean hasUpdate(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.FieldCase getFieldCase(); } /** *
     * Record update ('ExpRecUp')
     * 
* * Protobuf type {@code daml_lf_1.Expr.RecUpd} */ public static final class RecUpd extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.RecUpd) RecUpdOrBuilder { private static final long serialVersionUID = 0L; // Use RecUpd.newBuilder() to construct. private RecUpd(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecUpd() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecUpd(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecUpd( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 2; field_ = s; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (record_ != null) { subBuilder = record_.toBuilder(); } record_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(record_); record_ = subBuilder.buildPartial(); } break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(update_); update_ = subBuilder.buildPartial(); } break; } case 40: { fieldCase_ = 5; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(2), FIELD_INTERNED_STR(5), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 2: return FIELD_STR; case 5: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELD_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } 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(); if (fieldCase_ == 2) { field_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 2) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 5; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 5[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 5) { return (java.lang.Integer) field_; } return 0; } public static final int RECORD_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr record_; /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public boolean hasRecord() { return record_ != null; } /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getRecord() { return record_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : record_; } /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getRecordOrBuilder() { return getRecord(); } public static final int UPDATE_FIELD_NUMBER = 4; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr update_; /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public boolean hasUpdate() { return update_ != null; } /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate() { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { return getUpdate(); } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } if (fieldCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); } if (record_ != null) { output.writeMessage(3, getRecord()); } if (update_ != null) { output.writeMessage(4, getUpdate()); } if (fieldCase_ == 5) { output.writeInt32( 5, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (fieldCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); } if (record_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecord()); } if (update_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdate()); } if (fieldCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 5, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (hasRecord() != other.hasRecord()) return false; if (hasRecord()) { if (!getRecord() .equals(other.getRecord())) return false; } if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { if (!getUpdate() .equals(other.getUpdate())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 2: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 5: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } if (hasRecord()) { hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); } if (hasUpdate()) { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } switch (fieldCase_) { case 2: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 5: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd 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; } /** *
       * Record update ('ExpRecUp')
       * 
* * Protobuf type {@code daml_lf_1.Expr.RecUpd} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.RecUpd) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } if (recordBuilder_ == null) { record_ = null; } else { record_ = null; recordBuilder_ = null; } if (updateBuilder_ == null) { update_ = null; } else { update_ = null; updateBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd(this); if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (fieldCase_ == 2) { result.field_ = field_; } if (fieldCase_ == 5) { result.field_ = field_; } if (recordBuilder_ == null) { result.record_ = record_; } else { result.record_ = recordBuilder_.build(); } if (updateBuilder_ == null) { result.update_ = update_; } else { result.update_ = updateBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.hasRecord()) { mergeRecord(other.getRecord()); } if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 2; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 2) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 2) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 2; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 2) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 2; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 5[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 5) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 5[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 5; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 5[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 5) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr record_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> recordBuilder_; /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public boolean hasRecord() { return recordBuilder_ != null || record_ != null; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder setRecord(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } record_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder setRecord( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (recordBuilder_ == null) { record_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder mergeRecord(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (recordBuilder_ == null) { if (record_ != null) { record_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(record_).mergeFrom(value).buildPartial(); } else { record_ = value; } onChanged(); } else { recordBuilder_.mergeFrom(value); } return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public Builder clearRecord() { if (recordBuilder_ == null) { record_ = null; onChanged(); } else { record_ = null; recordBuilder_ = null; } return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getRecordBuilder() { onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : record_; } } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3[json_name = "record"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getRecord(), getParentForChildren(), isClean()); record_ = null; } return recordBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> updateBuilder_; /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public boolean hasUpdate() { return updateBuilder_ != null || update_ != null; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public Builder setUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public Builder setUpdate( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public Builder mergeUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(update_).mergeFrom(value).buildPartial(); } else { update_ = value; } onChanged(); } else { updateBuilder_.mergeFrom(value); } return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public Builder clearUpdate() { if (updateBuilder_ == null) { update_ = null; onChanged(); } else { update_ = null; updateBuilder_ = null; } return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getUpdateBuilder() { onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4[json_name = "update"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getUpdate(), getParentForChildren(), isClean()); update_ = null; } return updateBuilder_; } @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:daml_lf_1.Expr.RecUpd) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.RecUpd) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecUpd parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecUpd(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariantConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.VariantCon) com.google.protobuf.MessageOrBuilder { /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon(); /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ java.lang.String getVariantConStr(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ com.google.protobuf.ByteString getVariantConStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"]; */ int getVariantConInternedStr(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ boolean hasVariantArg(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getVariantArg(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getVariantArgOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.VariantConCase getVariantConCase(); } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * Protobuf type {@code daml_lf_1.Expr.VariantCon} */ public static final class VariantCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.VariantCon) VariantConOrBuilder { private static final long serialVersionUID = 0L; // Use VariantCon.newBuilder() to construct. private VariantCon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VariantCon() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VariantCon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VariantCon( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); variantConCase_ = 2; variantCon_ = s; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (variantArg_ != null) { subBuilder = variantArg_.toBuilder(); } variantArg_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(variantArg_); variantArg_ = subBuilder.buildPartial(); } break; } case 32: { variantConCase_ = 4; variantCon_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder.class); } private int variantConCase_ = 0; private java.lang.Object variantCon_; public enum VariantConCase implements com.google.protobuf.Internal.EnumLite { VARIANT_CON_STR(2), VARIANT_CON_INTERNED_STR(4), VARIANTCON_NOT_SET(0); private final int value; private VariantConCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VariantConCase valueOf(int value) { return forNumber(value); } public static VariantConCase forNumber(int value) { switch (value) { case 2: return VARIANT_CON_STR; case 4: return VARIANT_CON_INTERNED_STR; case 0: return VARIANTCON_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VariantConCase getVariantConCase() { return VariantConCase.forNumber( variantConCase_); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int VARIANT_CON_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public java.lang.String getVariantConStr() { java.lang.Object ref = ""; if (variantConCase_ == 2) { ref = variantCon_; } 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(); if (variantConCase_ == 2) { variantCon_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public com.google.protobuf.ByteString getVariantConStrBytes() { java.lang.Object ref = ""; if (variantConCase_ == 2) { ref = variantCon_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (variantConCase_ == 2) { variantCon_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VARIANT_CON_INTERNED_STR_FIELD_NUMBER = 4; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"]; */ public int getVariantConInternedStr() { if (variantConCase_ == 4) { return (java.lang.Integer) variantCon_; } return 0; } public static final int VARIANT_ARG_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr variantArg_; /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public boolean hasVariantArg() { return variantArg_ != null; } /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getVariantArg() { return variantArg_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : variantArg_; } /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getVariantArgOrBuilder() { return getVariantArg(); } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } if (variantConCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, variantCon_); } if (variantArg_ != null) { output.writeMessage(3, getVariantArg()); } if (variantConCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) variantCon_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (variantConCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, variantCon_); } if (variantArg_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getVariantArg()); } if (variantConCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) variantCon_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (hasVariantArg() != other.hasVariantArg()) return false; if (hasVariantArg()) { if (!getVariantArg() .equals(other.getVariantArg())) return false; } if (!getVariantConCase().equals(other.getVariantConCase())) return false; switch (variantConCase_) { case 2: if (!getVariantConStr() .equals(other.getVariantConStr())) return false; break; case 4: if (getVariantConInternedStr() != other.getVariantConInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } if (hasVariantArg()) { hash = (37 * hash) + VARIANT_ARG_FIELD_NUMBER; hash = (53 * hash) + getVariantArg().hashCode(); } switch (variantConCase_) { case 2: hash = (37 * hash) + VARIANT_CON_STR_FIELD_NUMBER; hash = (53 * hash) + getVariantConStr().hashCode(); break; case 4: hash = (37 * hash) + VARIANT_CON_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVariantConInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon 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; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * Protobuf type {@code daml_lf_1.Expr.VariantCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.VariantCon) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } if (variantArgBuilder_ == null) { variantArg_ = null; } else { variantArg_ = null; variantArgBuilder_ = null; } variantConCase_ = 0; variantCon_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon(this); if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (variantConCase_ == 2) { result.variantCon_ = variantCon_; } if (variantConCase_ == 4) { result.variantCon_ = variantCon_; } if (variantArgBuilder_ == null) { result.variantArg_ = variantArg_; } else { result.variantArg_ = variantArgBuilder_.build(); } result.variantConCase_ = variantConCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.hasVariantArg()) { mergeVariantArg(other.getVariantArg()); } switch (other.getVariantConCase()) { case VARIANT_CON_STR: { variantConCase_ = 2; variantCon_ = other.variantCon_; onChanged(); break; } case VARIANT_CON_INTERNED_STR: { setVariantConInternedStr(other.getVariantConInternedStr()); break; } case VARIANTCON_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int variantConCase_ = 0; private java.lang.Object variantCon_; public VariantConCase getVariantConCase() { return VariantConCase.forNumber( variantConCase_); } public Builder clearVariantCon() { variantConCase_ = 0; variantCon_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public java.lang.String getVariantConStr() { java.lang.Object ref = ""; if (variantConCase_ == 2) { ref = variantCon_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (variantConCase_ == 2) { variantCon_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public com.google.protobuf.ByteString getVariantConStrBytes() { java.lang.Object ref = ""; if (variantConCase_ == 2) { ref = variantCon_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (variantConCase_ == 2) { variantCon_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public Builder setVariantConStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } variantConCase_ = 2; variantCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public Builder clearVariantConStr() { if (variantConCase_ == 2) { variantConCase_ = 0; variantCon_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2[json_name = "variantConStr"]; */ public Builder setVariantConStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); variantConCase_ = 2; variantCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"]; */ public int getVariantConInternedStr() { if (variantConCase_ == 4) { return (java.lang.Integer) variantCon_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"]; */ public Builder setVariantConInternedStr(int value) { variantConCase_ = 4; variantCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"]; */ public Builder clearVariantConInternedStr() { if (variantConCase_ == 4) { variantConCase_ = 0; variantCon_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr variantArg_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> variantArgBuilder_; /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public boolean hasVariantArg() { return variantArgBuilder_ != null || variantArg_ != null; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getVariantArg() { if (variantArgBuilder_ == null) { return variantArg_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : variantArg_; } else { return variantArgBuilder_.getMessage(); } } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public Builder setVariantArg(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (variantArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } variantArg_ = value; onChanged(); } else { variantArgBuilder_.setMessage(value); } return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public Builder setVariantArg( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (variantArgBuilder_ == null) { variantArg_ = builderForValue.build(); onChanged(); } else { variantArgBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public Builder mergeVariantArg(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (variantArgBuilder_ == null) { if (variantArg_ != null) { variantArg_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(variantArg_).mergeFrom(value).buildPartial(); } else { variantArg_ = value; } onChanged(); } else { variantArgBuilder_.mergeFrom(value); } return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public Builder clearVariantArg() { if (variantArgBuilder_ == null) { variantArg_ = null; onChanged(); } else { variantArg_ = null; variantArgBuilder_ = null; } return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getVariantArgBuilder() { onChanged(); return getVariantArgFieldBuilder().getBuilder(); } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getVariantArgOrBuilder() { if (variantArgBuilder_ != null) { return variantArgBuilder_.getMessageOrBuilder(); } else { return variantArg_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : variantArg_; } } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getVariantArgFieldBuilder() { if (variantArgBuilder_ == null) { variantArgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getVariantArg(), getParentForChildren(), isClean()); variantArg_ = null; } return variantArgBuilder_; } @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:daml_lf_1.Expr.VariantCon) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.VariantCon) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VariantCon parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VariantCon(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.EnumCon) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ java.lang.String getEnumConStr(); /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ com.google.protobuf.ByteString getEnumConStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"]; */ int getEnumConInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.EnumConCase getEnumConCase(); } /** *
     * Enum construction ('ExpEnumCon')
     * *Available in versions >= 1.6*
     * 
* * Protobuf type {@code daml_lf_1.Expr.EnumCon} */ public static final class EnumCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.EnumCon) EnumConOrBuilder { private static final long serialVersionUID = 0L; // Use EnumCon.newBuilder() to construct. private EnumCon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumCon() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumCon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumCon( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); enumConCase_ = 2; enumCon_ = s; break; } case 24: { enumConCase_ = 3; enumCon_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder.class); } private int enumConCase_ = 0; private java.lang.Object enumCon_; public enum EnumConCase implements com.google.protobuf.Internal.EnumLite { ENUM_CON_STR(2), ENUM_CON_INTERNED_STR(3), ENUMCON_NOT_SET(0); private final int value; private EnumConCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EnumConCase valueOf(int value) { return forNumber(value); } public static EnumConCase forNumber(int value) { switch (value) { case 2: return ENUM_CON_STR; case 3: return ENUM_CON_INTERNED_STR; case 0: return ENUMCON_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EnumConCase getEnumConCase() { return EnumConCase.forNumber( enumConCase_); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName tycon_; /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int ENUM_CON_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public java.lang.String getEnumConStr() { java.lang.Object ref = ""; if (enumConCase_ == 2) { ref = enumCon_; } 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(); if (enumConCase_ == 2) { enumCon_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public com.google.protobuf.ByteString getEnumConStrBytes() { java.lang.Object ref = ""; if (enumConCase_ == 2) { ref = enumCon_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (enumConCase_ == 2) { enumCon_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENUM_CON_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"]; */ public int getEnumConInternedStr() { if (enumConCase_ == 3) { return (java.lang.Integer) enumCon_; } return 0; } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } if (enumConCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, enumCon_); } if (enumConCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) enumCon_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (enumConCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, enumCon_); } if (enumConCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) enumCon_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (!getEnumConCase().equals(other.getEnumConCase())) return false; switch (enumConCase_) { case 2: if (!getEnumConStr() .equals(other.getEnumConStr())) return false; break; case 3: if (getEnumConInternedStr() != other.getEnumConInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } switch (enumConCase_) { case 2: hash = (37 * hash) + ENUM_CON_STR_FIELD_NUMBER; hash = (53 * hash) + getEnumConStr().hashCode(); break; case 3: hash = (37 * hash) + ENUM_CON_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getEnumConInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon 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; } /** *
       * Enum construction ('ExpEnumCon')
       * *Available in versions >= 1.6*
       * 
* * Protobuf type {@code daml_lf_1.Expr.EnumCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.EnumCon) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } enumConCase_ = 0; enumCon_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon(this); if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (enumConCase_ == 2) { result.enumCon_ = enumCon_; } if (enumConCase_ == 3) { result.enumCon_ = enumCon_; } result.enumConCase_ = enumConCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } switch (other.getEnumConCase()) { case ENUM_CON_STR: { enumConCase_ = 2; enumCon_ = other.enumCon_; onChanged(); break; } case ENUM_CON_INTERNED_STR: { setEnumConInternedStr(other.getEnumConInternedStr()); break; } case ENUMCON_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int enumConCase_ = 0; private java.lang.Object enumCon_; public EnumConCase getEnumConCase() { return EnumConCase.forNumber( enumConCase_); } public Builder clearEnumCon() { enumConCase_ = 0; enumCon_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> tyconBuilder_; /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public java.lang.String getEnumConStr() { java.lang.Object ref = ""; if (enumConCase_ == 2) { ref = enumCon_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (enumConCase_ == 2) { enumCon_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public com.google.protobuf.ByteString getEnumConStrBytes() { java.lang.Object ref = ""; if (enumConCase_ == 2) { ref = enumCon_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (enumConCase_ == 2) { enumCon_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public Builder setEnumConStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } enumConCase_ = 2; enumCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public Builder clearEnumConStr() { if (enumConCase_ == 2) { enumConCase_ = 0; enumCon_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2[json_name = "enumConStr"]; */ public Builder setEnumConStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); enumConCase_ = 2; enumCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"]; */ public int getEnumConInternedStr() { if (enumConCase_ == 3) { return (java.lang.Integer) enumCon_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"]; */ public Builder setEnumConInternedStr(int value) { enumConCase_ = 3; enumCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"]; */ public Builder clearEnumConInternedStr() { if (enumConCase_ == 3) { enumConCase_ = 0; enumCon_ = null; 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:daml_lf_1.Expr.EnumCon) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.EnumCon) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnumCon parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumCon(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TupleConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.TupleCon) com.google.protobuf.MessageOrBuilder { /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ java.util.List getFieldsList(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getFields(int index); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ int getFieldsCount(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ java.util.List getFieldsOrBuilderList(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index); } /** *
     * Tuple Construction ('ExpTupleCon')
     * 
* * Protobuf type {@code daml_lf_1.Expr.TupleCon} */ public static final class TupleCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.TupleCon) TupleConOrBuilder { private static final long serialVersionUID = 0L; // Use TupleCon.newBuilder() to construct. private TupleCon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TupleCon() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TupleCon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TupleCon( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fields_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; private java.util.List fields_; /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public java.util.List getFieldsList() { return fields_; } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public int getFieldsCount() { return fields_.size(); } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getFields(int index) { return fields_.get(index); } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } 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 { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, fields_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) obj; if (!getFieldsList() .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon 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; } /** *
       * Tuple Construction ('ExpTupleCon')
       * 
* * Protobuf type {@code daml_lf_1.Expr.TupleCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.TupleCon) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fieldsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleCon_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon(this); int from_bitField0_ = bitField0_; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance()) return this; if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder> fieldsBuilder_; /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder addFields(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder addFields( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"]; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithExprOrBuilder>( fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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:daml_lf_1.Expr.TupleCon) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.TupleCon) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TupleCon parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TupleCon(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TupleProjOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.TupleProj) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** *
       * tuple to be projected.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ boolean hasTuple(); /** *
       * tuple to be projected.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTuple(); /** *
       * tuple to be projected.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTupleOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.FieldCase getFieldCase(); } /** *
     * Tuple Projection ('ExpTupleProj')
     * 
* * Protobuf type {@code daml_lf_1.Expr.TupleProj} */ public static final class TupleProj extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.TupleProj) TupleProjOrBuilder { private static final long serialVersionUID = 0L; // Use TupleProj.newBuilder() to construct. private TupleProj(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TupleProj() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TupleProj(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TupleProj( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 1; field_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (tuple_ != null) { subBuilder = tuple_.toBuilder(); } tuple_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tuple_); tuple_ = subBuilder.buildPartial(); } break; } case 24: { fieldCase_ = 3; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 1: return FIELD_STR; case 3: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int FIELD_STR_FIELD_NUMBER = 1; /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } 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(); if (fieldCase_ == 1) { field_ = s; } return s; } } /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int TUPLE_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr tuple_; /** *
       * tuple to be projected.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public boolean hasTuple() { return tuple_ != null; } /** *
       * tuple to be projected.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTuple() { return tuple_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tuple_; } /** *
       * tuple to be projected.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTupleOrBuilder() { return getTuple(); } 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 (fieldCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } if (tuple_ != null) { output.writeMessage(2, getTuple()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); } if (tuple_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTuple()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) obj; if (hasTuple() != other.hasTuple()) return false; if (hasTuple()) { if (!getTuple() .equals(other.getTuple())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 1: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 3: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTuple()) { hash = (37 * hash) + TUPLE_FIELD_NUMBER; hash = (53 * hash) + getTuple().hashCode(); } switch (fieldCase_) { case 1: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 3: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj 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; } /** *
       * Tuple Projection ('ExpTupleProj')
       * 
* * Protobuf type {@code daml_lf_1.Expr.TupleProj} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.TupleProj) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tupleBuilder_ == null) { tuple_ = null; } else { tuple_ = null; tupleBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleProj_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 3) { result.field_ = field_; } if (tupleBuilder_ == null) { result.tuple_ = tuple_; } else { result.tuple_ = tupleBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance()) return this; if (other.hasTuple()) { mergeTuple(other.getTuple()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 1; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 1) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr tuple_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> tupleBuilder_; /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public boolean hasTuple() { return tupleBuilder_ != null || tuple_ != null; } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTuple() { if (tupleBuilder_ == null) { return tuple_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tuple_; } else { return tupleBuilder_.getMessage(); } } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder setTuple(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (tupleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tuple_ = value; onChanged(); } else { tupleBuilder_.setMessage(value); } return this; } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder setTuple( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (tupleBuilder_ == null) { tuple_ = builderForValue.build(); onChanged(); } else { tupleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder mergeTuple(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (tupleBuilder_ == null) { if (tuple_ != null) { tuple_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(tuple_).mergeFrom(value).buildPartial(); } else { tuple_ = value; } onChanged(); } else { tupleBuilder_.mergeFrom(value); } return this; } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder clearTuple() { if (tupleBuilder_ == null) { tuple_ = null; onChanged(); } else { tuple_ = null; tupleBuilder_ = null; } return this; } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getTupleBuilder() { onChanged(); return getTupleFieldBuilder().getBuilder(); } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTupleOrBuilder() { if (tupleBuilder_ != null) { return tupleBuilder_.getMessageOrBuilder(); } else { return tuple_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tuple_; } } /** *
         * tuple to be projected.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getTupleFieldBuilder() { if (tupleBuilder_ == null) { tupleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getTuple(), getParentForChildren(), isClean()); tuple_ = null; } return tupleBuilder_; } @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:daml_lf_1.Expr.TupleProj) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.TupleProj) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TupleProj parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TupleProj(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TupleUpdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.TupleUpd) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** *
       * Actual tuple being updated.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ boolean hasTuple(); /** *
       * Actual tuple being updated.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTuple(); /** *
       * Actual tuple being updated.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTupleOrBuilder(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ boolean hasUpdate(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.FieldCase getFieldCase(); } /** *
     * Tuple update ('ExpTuplUpdate')
     * 
* * Protobuf type {@code daml_lf_1.Expr.TupleUpd} */ public static final class TupleUpd extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.TupleUpd) TupleUpdOrBuilder { private static final long serialVersionUID = 0L; // Use TupleUpd.newBuilder() to construct. private TupleUpd(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TupleUpd() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TupleUpd(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TupleUpd( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 1; field_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (tuple_ != null) { subBuilder = tuple_.toBuilder(); } tuple_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tuple_); tuple_ = subBuilder.buildPartial(); } break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(update_); update_ = subBuilder.buildPartial(); } break; } case 32: { fieldCase_ = 4; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(1), FIELD_INTERNED_STR(4), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 1: return FIELD_STR; case 4: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int FIELD_STR_FIELD_NUMBER = 1; /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } 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(); if (fieldCase_ == 1) { field_ = s; } return s; } } /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 4; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 4) { return (java.lang.Integer) field_; } return 0; } public static final int TUPLE_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr tuple_; /** *
       * Actual tuple being updated.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public boolean hasTuple() { return tuple_ != null; } /** *
       * Actual tuple being updated.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTuple() { return tuple_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tuple_; } /** *
       * Actual tuple being updated.
       * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTupleOrBuilder() { return getTuple(); } public static final int UPDATE_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr update_; /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public boolean hasUpdate() { return update_ != null; } /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate() { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { return getUpdate(); } 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 (fieldCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } if (tuple_ != null) { output.writeMessage(2, getTuple()); } if (update_ != null) { output.writeMessage(3, getUpdate()); } if (fieldCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); } if (tuple_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTuple()); } if (update_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpdate()); } if (fieldCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) obj; if (hasTuple() != other.hasTuple()) return false; if (hasTuple()) { if (!getTuple() .equals(other.getTuple())) return false; } if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { if (!getUpdate() .equals(other.getUpdate())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 1: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 4: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTuple()) { hash = (37 * hash) + TUPLE_FIELD_NUMBER; hash = (53 * hash) + getTuple().hashCode(); } if (hasUpdate()) { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } switch (fieldCase_) { case 1: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 4: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd 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; } /** *
       * Tuple update ('ExpTuplUpdate')
       * 
* * Protobuf type {@code daml_lf_1.Expr.TupleUpd} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.TupleUpd) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tupleBuilder_ == null) { tuple_ = null; } else { tuple_ = null; tupleBuilder_ = null; } if (updateBuilder_ == null) { update_ = null; } else { update_ = null; updateBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TupleUpd_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 4) { result.field_ = field_; } if (tupleBuilder_ == null) { result.tuple_ = tuple_; } else { result.tuple_ = tupleBuilder_.build(); } if (updateBuilder_ == null) { result.update_ = update_; } else { result.update_ = updateBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance()) return this; if (other.hasTuple()) { mergeTuple(other.getTuple()); } if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 1; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 1) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 4) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 4; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 4) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr tuple_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> tupleBuilder_; /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public boolean hasTuple() { return tupleBuilder_ != null || tuple_ != null; } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTuple() { if (tupleBuilder_ == null) { return tuple_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tuple_; } else { return tupleBuilder_.getMessage(); } } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder setTuple(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (tupleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tuple_ = value; onChanged(); } else { tupleBuilder_.setMessage(value); } return this; } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder setTuple( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (tupleBuilder_ == null) { tuple_ = builderForValue.build(); onChanged(); } else { tupleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder mergeTuple(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (tupleBuilder_ == null) { if (tuple_ != null) { tuple_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(tuple_).mergeFrom(value).buildPartial(); } else { tuple_ = value; } onChanged(); } else { tupleBuilder_.mergeFrom(value); } return this; } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public Builder clearTuple() { if (tupleBuilder_ == null) { tuple_ = null; onChanged(); } else { tuple_ = null; tupleBuilder_ = null; } return this; } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getTupleBuilder() { onChanged(); return getTupleFieldBuilder().getBuilder(); } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTupleOrBuilder() { if (tupleBuilder_ != null) { return tupleBuilder_.getMessageOrBuilder(); } else { return tuple_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tuple_; } } /** *
         * Actual tuple being updated.
         * 
* * .daml_lf_1.Expr tuple = 2[json_name = "tuple"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getTupleFieldBuilder() { if (tupleBuilder_ == null) { tupleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getTuple(), getParentForChildren(), isClean()); tuple_ = null; } return tupleBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> updateBuilder_; /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public boolean hasUpdate() { return updateBuilder_ != null || update_ != null; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public Builder setUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public Builder setUpdate( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public Builder mergeUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(update_).mergeFrom(value).buildPartial(); } else { update_ = value; } onChanged(); } else { updateBuilder_.mergeFrom(value); } return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public Builder clearUpdate() { if (updateBuilder_ == null) { update_ = null; onChanged(); } else { update_ = null; updateBuilder_ = null; } return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getUpdateBuilder() { onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3[json_name = "update"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getUpdate(), getParentForChildren(), isClean()); update_ = null; } return updateBuilder_; } @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:daml_lf_1.Expr.TupleUpd) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.TupleUpd) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TupleUpd parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TupleUpd(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AppOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.App) com.google.protobuf.MessageOrBuilder { /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ boolean hasFun(); /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getFun(); /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getFunOrBuilder(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ java.util.List getArgsList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getArgs(int index); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ int getArgsCount(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ java.util.List getArgsOrBuilderList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getArgsOrBuilder( int index); } /** *
     * Application ('ExpApp')
     * 
* * Protobuf type {@code daml_lf_1.Expr.App} */ public static final class App extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.App) AppOrBuilder { private static final long serialVersionUID = 0L; // Use App.newBuilder() to construct. private App(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private App() { args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new App(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private App( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (fun_ != null) { subBuilder = fun_.toBuilder(); } fun_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fun_); fun_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } args_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_App_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_App_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder.class); } public static final int FUN_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr fun_; /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public boolean hasFun() { return fun_ != null; } /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getFun() { return fun_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : fun_; } /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getFunOrBuilder() { return getFun(); } public static final int ARGS_FIELD_NUMBER = 2; private java.util.List args_; /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public java.util.List getArgsList() { return args_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public int getArgsCount() { return args_.size(); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getArgs(int index) { return args_.get(index); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } 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 (fun_ != null) { output.writeMessage(1, getFun()); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fun_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFun()); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, args_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.App)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) obj; if (hasFun() != other.hasFun()) return false; if (hasFun()) { if (!getFun() .equals(other.getFun())) return false; } if (!getArgsList() .equals(other.getArgsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFun()) { hash = (37 * hash) + FUN_FIELD_NUMBER; hash = (53 * hash) + getFun().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.App 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; } /** *
       * Application ('ExpApp')
       * 
* * Protobuf type {@code daml_lf_1.Expr.App} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.App) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_App_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_App_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (funBuilder_ == null) { fun_ = null; } else { fun_ = null; funBuilder_ = null; } if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_App_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App(this); int from_bitField0_ = bitField0_; if (funBuilder_ == null) { result.fun_ = fun_; } else { result.fun_ = funBuilder_.build(); } if (argsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000001); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance()) return this; if (other.hasFun()) { mergeFun(other.getFun()); } if (argsBuilder_ == null) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr fun_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> funBuilder_; /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public boolean hasFun() { return funBuilder_ != null || fun_ != null; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getFun() { if (funBuilder_ == null) { return fun_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : fun_; } else { return funBuilder_.getMessage(); } } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public Builder setFun(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (funBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fun_ = value; onChanged(); } else { funBuilder_.setMessage(value); } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public Builder setFun( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (funBuilder_ == null) { fun_ = builderForValue.build(); onChanged(); } else { funBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public Builder mergeFun(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (funBuilder_ == null) { if (fun_ != null) { fun_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(fun_).mergeFrom(value).buildPartial(); } else { fun_ = value; } onChanged(); } else { funBuilder_.mergeFrom(value); } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public Builder clearFun() { if (funBuilder_ == null) { fun_ = null; onChanged(); } else { fun_ = null; funBuilder_ = null; } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getFunBuilder() { onChanged(); return getFunFieldBuilder().getBuilder(); } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getFunOrBuilder() { if (funBuilder_ != null) { return funBuilder_.getMessageOrBuilder(); } else { return fun_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : fun_; } } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1[json_name = "fun"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getFunFieldBuilder() { if (funBuilder_ == null) { funBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getFun(), getParentForChildren(), isClean()); fun_ = null; } return funBuilder_; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> argsBuilder_; /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); } else { argsBuilder_.setMessage(index, value); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder setArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.set(index, builderForValue.build()); onChanged(); } else { argsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder addArgs(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); } else { argsBuilder_.addMessage(value); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(index, value); onChanged(); } else { argsBuilder_.addMessage(index, value); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder addArgs( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder addArgs( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(index, builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2[json_name = "args"]; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( args_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } @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:daml_lf_1.Expr.App) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.App) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public App parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new App(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.App getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TyAppOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.TyApp) com.google.protobuf.MessageOrBuilder { /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ boolean hasExpr(); /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ java.util.List getTypesList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getTypes(int index); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ int getTypesCount(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ java.util.List getTypesOrBuilderList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypesOrBuilder( int index); } /** *
     * Type application ('ExpTyApp')
     * 
* * Protobuf type {@code daml_lf_1.Expr.TyApp} */ public static final class TyApp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.TyApp) TyAppOrBuilder { private static final long serialVersionUID = 0L; // Use TyApp.newBuilder() to construct. private TyApp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TyApp() { types_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TyApp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TyApp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { types_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } types_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { types_ = java.util.Collections.unmodifiableList(types_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder.class); } public static final int EXPR_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } public static final int TYPES_FIELD_NUMBER = 2; private java.util.List types_; /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public java.util.List getTypesList() { return types_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public java.util.List getTypesOrBuilderList() { return types_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public int getTypesCount() { return types_.size(); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getTypes(int index) { return types_.get(index); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypesOrBuilder( int index) { return types_.get(index); } 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 (expr_ != null) { output.writeMessage(1, getExpr()); } for (int i = 0; i < types_.size(); i++) { output.writeMessage(2, types_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getExpr()); } for (int i = 0; i < types_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, types_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) obj; if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!getTypesList() .equals(other.getTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } if (getTypesCount() > 0) { hash = (37 * hash) + TYPES_FIELD_NUMBER; hash = (53 * hash) + getTypesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp 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; } /** *
       * Type application ('ExpTyApp')
       * 
* * Protobuf type {@code daml_lf_1.Expr.TyApp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.TyApp) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } if (typesBuilder_ == null) { types_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { typesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp(this); int from_bitField0_ = bitField0_; if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } if (typesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { types_ = java.util.Collections.unmodifiableList(types_); bitField0_ = (bitField0_ & ~0x00000001); } result.types_ = types_; } else { result.types_ = typesBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance()) return this; if (other.hasExpr()) { mergeExpr(other.getExpr()); } if (typesBuilder_ == null) { if (!other.types_.isEmpty()) { if (types_.isEmpty()) { types_ = other.types_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTypesIsMutable(); types_.addAll(other.types_); } onChanged(); } } else { if (!other.types_.isEmpty()) { if (typesBuilder_.isEmpty()) { typesBuilder_.dispose(); typesBuilder_ = null; types_ = other.types_; bitField0_ = (bitField0_ & ~0x00000001); typesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTypesFieldBuilder() : null; } else { typesBuilder_.addAllMessages(other.types_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private java.util.List types_ = java.util.Collections.emptyList(); private void ensureTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { types_ = new java.util.ArrayList(types_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typesBuilder_; /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public java.util.List getTypesList() { if (typesBuilder_ == null) { return java.util.Collections.unmodifiableList(types_); } else { return typesBuilder_.getMessageList(); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public int getTypesCount() { if (typesBuilder_ == null) { return types_.size(); } else { return typesBuilder_.getCount(); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getTypes(int index) { if (typesBuilder_ == null) { return types_.get(index); } else { return typesBuilder_.getMessage(index); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder setTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.set(index, value); onChanged(); } else { typesBuilder_.setMessage(index, value); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder setTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.set(index, builderForValue.build()); onChanged(); } else { typesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder addTypes(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(value); onChanged(); } else { typesBuilder_.addMessage(value); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder addTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(index, value); onChanged(); } else { typesBuilder_.addMessage(index, value); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder addTypes( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.add(builderForValue.build()); onChanged(); } else { typesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder addTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.add(index, builderForValue.build()); onChanged(); } else { typesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder addAllTypes( java.lang.Iterable values) { if (typesBuilder_ == null) { ensureTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, types_); onChanged(); } else { typesBuilder_.addAllMessages(values); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder clearTypes() { if (typesBuilder_ == null) { types_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { typesBuilder_.clear(); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public Builder removeTypes(int index) { if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.remove(index); onChanged(); } else { typesBuilder_.remove(index); } return this; } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypesBuilder( int index) { return getTypesFieldBuilder().getBuilder(index); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypesOrBuilder( int index) { if (typesBuilder_ == null) { return types_.get(index); } else { return typesBuilder_.getMessageOrBuilder(index); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public java.util.List getTypesOrBuilderList() { if (typesBuilder_ != null) { return typesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(types_); } } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addTypesBuilder() { return getTypesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder addTypesBuilder( int index) { return getTypesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2[json_name = "types"]; */ public java.util.List getTypesBuilderList() { return getTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypesFieldBuilder() { if (typesBuilder_ == null) { typesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( types_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); types_ = null; } return typesBuilder_; } @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:daml_lf_1.Expr.TyApp) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.TyApp) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TyApp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TyApp(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AbsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.Abs) com.google.protobuf.MessageOrBuilder { /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ java.util.List getParamList(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getParam(int index); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ int getParamCount(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ java.util.List getParamOrBuilderList(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getParamOrBuilder( int index); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ boolean hasBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); } /** *
     * Abstraction ('ExpAbs')
     * 
* * Protobuf type {@code daml_lf_1.Expr.Abs} */ public static final class Abs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.Abs) AbsOrBuilder { private static final long serialVersionUID = 0L; // Use Abs.newBuilder() to construct. private Abs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Abs() { param_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Abs(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Abs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { param_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } param_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.parser(), extensionRegistry)); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { param_ = java.util.Collections.unmodifiableList(param_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Abs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Abs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder.class); } public static final int PARAM_FIELD_NUMBER = 1; private java.util.List param_; /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public java.util.List getParamList() { return param_; } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public java.util.List getParamOrBuilderList() { return param_; } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public int getParamCount() { return param_.size(); } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getParam(int index) { return param_.get(index); } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getParamOrBuilder( int index) { return param_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 { for (int i = 0; i < param_.size(); i++) { output.writeMessage(1, param_.get(i)); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < param_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, param_.get(i)); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) obj; if (!getParamList() .equals(other.getParamList())) return false; if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParamCount() > 0) { hash = (37 * hash) + PARAM_FIELD_NUMBER; hash = (53 * hash) + getParamList().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs 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; } /** *
       * Abstraction ('ExpAbs')
       * 
* * Protobuf type {@code daml_lf_1.Expr.Abs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.Abs) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Abs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Abs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramBuilder_ == null) { param_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { paramBuilder_.clear(); } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Abs_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs(this); int from_bitField0_ = bitField0_; if (paramBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { param_ = java.util.Collections.unmodifiableList(param_); bitField0_ = (bitField0_ & ~0x00000001); } result.param_ = param_; } else { result.param_ = paramBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance()) return this; if (paramBuilder_ == null) { if (!other.param_.isEmpty()) { if (param_.isEmpty()) { param_ = other.param_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParamIsMutable(); param_.addAll(other.param_); } onChanged(); } } else { if (!other.param_.isEmpty()) { if (paramBuilder_.isEmpty()) { paramBuilder_.dispose(); paramBuilder_ = null; param_ = other.param_; bitField0_ = (bitField0_ & ~0x00000001); paramBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamFieldBuilder() : null; } else { paramBuilder_.addAllMessages(other.param_); } } } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List param_ = java.util.Collections.emptyList(); private void ensureParamIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { param_ = new java.util.ArrayList(param_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder> paramBuilder_; /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public java.util.List getParamList() { if (paramBuilder_ == null) { return java.util.Collections.unmodifiableList(param_); } else { return paramBuilder_.getMessageList(); } } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public int getParamCount() { if (paramBuilder_ == null) { return param_.size(); } else { return paramBuilder_.getCount(); } } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getParam(int index) { if (paramBuilder_ == null) { return param_.get(index); } else { return paramBuilder_.getMessage(index); } } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder setParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamIsMutable(); param_.set(index, value); onChanged(); } else { paramBuilder_.setMessage(index, value); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder setParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder builderForValue) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.set(index, builderForValue.build()); onChanged(); } else { paramBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder addParam(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamIsMutable(); param_.add(value); onChanged(); } else { paramBuilder_.addMessage(value); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder addParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamIsMutable(); param_.add(index, value); onChanged(); } else { paramBuilder_.addMessage(index, value); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder addParam( com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder builderForValue) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.add(builderForValue.build()); onChanged(); } else { paramBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder addParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder builderForValue) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.add(index, builderForValue.build()); onChanged(); } else { paramBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder addAllParam( java.lang.Iterable values) { if (paramBuilder_ == null) { ensureParamIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, param_); onChanged(); } else { paramBuilder_.addAllMessages(values); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder clearParam() { if (paramBuilder_ == null) { param_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramBuilder_.clear(); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public Builder removeParam(int index) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.remove(index); onChanged(); } else { paramBuilder_.remove(index); } return this; } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder getParamBuilder( int index) { return getParamFieldBuilder().getBuilder(index); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getParamOrBuilder( int index) { if (paramBuilder_ == null) { return param_.get(index); } else { return paramBuilder_.getMessageOrBuilder(index); } } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public java.util.List getParamOrBuilderList() { if (paramBuilder_ != null) { return paramBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(param_); } } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder addParamBuilder() { return getParamFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance()); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder addParamBuilder( int index) { return getParamFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance()); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1[json_name = "param"]; */ public java.util.List getParamBuilderList() { return getParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder>( param_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Expr.Abs) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.Abs) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Abs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Abs(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TyAbsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.TyAbs) com.google.protobuf.MessageOrBuilder { /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ java.util.List getParamList(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getParam(int index); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ int getParamCount(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ java.util.List getParamOrBuilderList(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getParamOrBuilder( int index); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ boolean hasBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); } /** * Protobuf type {@code daml_lf_1.Expr.TyAbs} */ public static final class TyAbs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.TyAbs) TyAbsOrBuilder { private static final long serialVersionUID = 0L; // Use TyAbs.newBuilder() to construct. private TyAbs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TyAbs() { param_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TyAbs(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TyAbs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { param_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } param_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { param_ = java.util.Collections.unmodifiableList(param_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder.class); } public static final int PARAM_FIELD_NUMBER = 1; private java.util.List param_; /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public java.util.List getParamList() { return param_; } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public java.util.List getParamOrBuilderList() { return param_; } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public int getParamCount() { return param_.size(); } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getParam(int index) { return param_.get(index); } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getParamOrBuilder( int index) { return param_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 { for (int i = 0; i < param_.size(); i++) { output.writeMessage(1, param_.get(i)); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < param_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, param_.get(i)); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) obj; if (!getParamList() .equals(other.getParamList())) return false; if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParamCount() > 0) { hash = (37 * hash) + PARAM_FIELD_NUMBER; hash = (53 * hash) + getParamList().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs 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; } /** * Protobuf type {@code daml_lf_1.Expr.TyAbs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.TyAbs) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramBuilder_ == null) { param_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { paramBuilder_.clear(); } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs(this); int from_bitField0_ = bitField0_; if (paramBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { param_ = java.util.Collections.unmodifiableList(param_); bitField0_ = (bitField0_ & ~0x00000001); } result.param_ = param_; } else { result.param_ = paramBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance()) return this; if (paramBuilder_ == null) { if (!other.param_.isEmpty()) { if (param_.isEmpty()) { param_ = other.param_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParamIsMutable(); param_.addAll(other.param_); } onChanged(); } } else { if (!other.param_.isEmpty()) { if (paramBuilder_.isEmpty()) { paramBuilder_.dispose(); paramBuilder_ = null; param_ = other.param_; bitField0_ = (bitField0_ & ~0x00000001); paramBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamFieldBuilder() : null; } else { paramBuilder_.addAllMessages(other.param_); } } } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List param_ = java.util.Collections.emptyList(); private void ensureParamIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { param_ = new java.util.ArrayList(param_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder> paramBuilder_; /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public java.util.List getParamList() { if (paramBuilder_ == null) { return java.util.Collections.unmodifiableList(param_); } else { return paramBuilder_.getMessageList(); } } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public int getParamCount() { if (paramBuilder_ == null) { return param_.size(); } else { return paramBuilder_.getCount(); } } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getParam(int index) { if (paramBuilder_ == null) { return param_.get(index); } else { return paramBuilder_.getMessage(index); } } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder setParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamIsMutable(); param_.set(index, value); onChanged(); } else { paramBuilder_.setMessage(index, value); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder setParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.set(index, builderForValue.build()); onChanged(); } else { paramBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder addParam(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamIsMutable(); param_.add(value); onChanged(); } else { paramBuilder_.addMessage(value); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder addParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamIsMutable(); param_.add(index, value); onChanged(); } else { paramBuilder_.addMessage(index, value); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder addParam( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.add(builderForValue.build()); onChanged(); } else { paramBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder addParam( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.add(index, builderForValue.build()); onChanged(); } else { paramBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder addAllParam( java.lang.Iterable values) { if (paramBuilder_ == null) { ensureParamIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, param_); onChanged(); } else { paramBuilder_.addAllMessages(values); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder clearParam() { if (paramBuilder_ == null) { param_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramBuilder_.clear(); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public Builder removeParam(int index) { if (paramBuilder_ == null) { ensureParamIsMutable(); param_.remove(index); onChanged(); } else { paramBuilder_.remove(index); } return this; } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder getParamBuilder( int index) { return getParamFieldBuilder().getBuilder(index); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getParamOrBuilder( int index) { if (paramBuilder_ == null) { return param_.get(index); } else { return paramBuilder_.getMessageOrBuilder(index); } } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public java.util.List getParamOrBuilderList() { if (paramBuilder_ != null) { return paramBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(param_); } } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder addParamBuilder() { return getParamFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder addParamBuilder( int index) { return getParamFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1[json_name = "param"]; */ public java.util.List getParamBuilderList() { return getParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder>( param_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Expr.TyAbs) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.TyAbs) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TyAbs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TyAbs(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NilOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.Nil) com.google.protobuf.MessageOrBuilder { /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); } /** *
     * Empty list ('ExpNil')
     * 
* * Protobuf type {@code daml_lf_1.Expr.Nil} */ public static final class Nil extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.Nil) NilOrBuilder { private static final long serialVersionUID = 0L; // Use Nil.newBuilder() to construct. private Nil(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Nil() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Nil(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Nil( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Nil_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Nil_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } 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 (type_ != null) { output.writeMessage(1, getType()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil 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; } /** *
       * Empty list ('ExpNil')
       * 
* * Protobuf type {@code daml_lf_1.Expr.Nil} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.Nil) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Nil_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Nil_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Nil_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } @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:daml_lf_1.Expr.Nil) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.Nil) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Nil parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Nil(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.Cons) com.google.protobuf.MessageOrBuilder { /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ java.util.List getFrontList(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getFront(int index); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ int getFrontCount(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ java.util.List getFrontOrBuilderList(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getFrontOrBuilder( int index); /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ boolean hasTail(); /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTail(); /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTailOrBuilder(); } /** *
     * Non empty list
     * 
* * Protobuf type {@code daml_lf_1.Expr.Cons} */ public static final class Cons extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.Cons) ConsOrBuilder { private static final long serialVersionUID = 0L; // Use Cons.newBuilder() to construct. private Cons(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cons() { front_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Cons(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Cons( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { front_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } front_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry)); break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (tail_ != null) { subBuilder = tail_.toBuilder(); } tail_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tail_); tail_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { front_ = java.util.Collections.unmodifiableList(front_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int FRONT_FIELD_NUMBER = 2; private java.util.List front_; /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public java.util.List getFrontList() { return front_; } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public java.util.List getFrontOrBuilderList() { return front_; } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public int getFrontCount() { return front_.size(); } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getFront(int index) { return front_.get(index); } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getFrontOrBuilder( int index) { return front_.get(index); } public static final int TAIL_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr tail_; /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public boolean hasTail() { return tail_ != null; } /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTail() { return tail_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tail_; } /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTailOrBuilder() { return getTail(); } 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 (type_ != null) { output.writeMessage(1, getType()); } for (int i = 0; i < front_.size(); i++) { output.writeMessage(2, front_.get(i)); } if (tail_ != null) { output.writeMessage(3, getTail()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } for (int i = 0; i < front_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, front_.get(i)); } if (tail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTail()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!getFrontList() .equals(other.getFrontList())) return false; if (hasTail() != other.hasTail()) return false; if (hasTail()) { if (!getTail() .equals(other.getTail())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (getFrontCount() > 0) { hash = (37 * hash) + FRONT_FIELD_NUMBER; hash = (53 * hash) + getFrontList().hashCode(); } if (hasTail()) { hash = (37 * hash) + TAIL_FIELD_NUMBER; hash = (53 * hash) + getTail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons 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; } /** *
       * Non empty list
       * 
* * Protobuf type {@code daml_lf_1.Expr.Cons} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.Cons) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFrontFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (frontBuilder_ == null) { front_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { frontBuilder_.clear(); } if (tailBuilder_ == null) { tail_ = null; } else { tail_ = null; tailBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_Cons_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons(this); int from_bitField0_ = bitField0_; if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (frontBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { front_ = java.util.Collections.unmodifiableList(front_); bitField0_ = (bitField0_ & ~0x00000001); } result.front_ = front_; } else { result.front_ = frontBuilder_.build(); } if (tailBuilder_ == null) { result.tail_ = tail_; } else { result.tail_ = tailBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (frontBuilder_ == null) { if (!other.front_.isEmpty()) { if (front_.isEmpty()) { front_ = other.front_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFrontIsMutable(); front_.addAll(other.front_); } onChanged(); } } else { if (!other.front_.isEmpty()) { if (frontBuilder_.isEmpty()) { frontBuilder_.dispose(); frontBuilder_ = null; front_ = other.front_; bitField0_ = (bitField0_ & ~0x00000001); frontBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrontFieldBuilder() : null; } else { frontBuilder_.addAllMessages(other.front_); } } } if (other.hasTail()) { mergeTail(other.getTail()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private java.util.List front_ = java.util.Collections.emptyList(); private void ensureFrontIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { front_ = new java.util.ArrayList(front_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> frontBuilder_; /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public java.util.List getFrontList() { if (frontBuilder_ == null) { return java.util.Collections.unmodifiableList(front_); } else { return frontBuilder_.getMessageList(); } } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public int getFrontCount() { if (frontBuilder_ == null) { return front_.size(); } else { return frontBuilder_.getCount(); } } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getFront(int index) { if (frontBuilder_ == null) { return front_.get(index); } else { return frontBuilder_.getMessage(index); } } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder setFront( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (frontBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrontIsMutable(); front_.set(index, value); onChanged(); } else { frontBuilder_.setMessage(index, value); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder setFront( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (frontBuilder_ == null) { ensureFrontIsMutable(); front_.set(index, builderForValue.build()); onChanged(); } else { frontBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder addFront(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (frontBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrontIsMutable(); front_.add(value); onChanged(); } else { frontBuilder_.addMessage(value); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder addFront( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (frontBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrontIsMutable(); front_.add(index, value); onChanged(); } else { frontBuilder_.addMessage(index, value); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder addFront( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (frontBuilder_ == null) { ensureFrontIsMutable(); front_.add(builderForValue.build()); onChanged(); } else { frontBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder addFront( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (frontBuilder_ == null) { ensureFrontIsMutable(); front_.add(index, builderForValue.build()); onChanged(); } else { frontBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder addAllFront( java.lang.Iterable values) { if (frontBuilder_ == null) { ensureFrontIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, front_); onChanged(); } else { frontBuilder_.addAllMessages(values); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder clearFront() { if (frontBuilder_ == null) { front_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { frontBuilder_.clear(); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public Builder removeFront(int index) { if (frontBuilder_ == null) { ensureFrontIsMutable(); front_.remove(index); onChanged(); } else { frontBuilder_.remove(index); } return this; } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getFrontBuilder( int index) { return getFrontFieldBuilder().getBuilder(index); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getFrontOrBuilder( int index) { if (frontBuilder_ == null) { return front_.get(index); } else { return frontBuilder_.getMessageOrBuilder(index); } } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public java.util.List getFrontOrBuilderList() { if (frontBuilder_ != null) { return frontBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(front_); } } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder addFrontBuilder() { return getFrontFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder addFrontBuilder( int index) { return getFrontFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2[json_name = "front"]; */ public java.util.List getFrontBuilderList() { return getFrontFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getFrontFieldBuilder() { if (frontBuilder_ == null) { frontBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( front_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); front_ = null; } return frontBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr tail_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> tailBuilder_; /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public boolean hasTail() { return tailBuilder_ != null || tail_ != null; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getTail() { if (tailBuilder_ == null) { return tail_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tail_; } else { return tailBuilder_.getMessage(); } } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public Builder setTail(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (tailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tail_ = value; onChanged(); } else { tailBuilder_.setMessage(value); } return this; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public Builder setTail( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (tailBuilder_ == null) { tail_ = builderForValue.build(); onChanged(); } else { tailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public Builder mergeTail(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (tailBuilder_ == null) { if (tail_ != null) { tail_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(tail_).mergeFrom(value).buildPartial(); } else { tail_ = value; } onChanged(); } else { tailBuilder_.mergeFrom(value); } return this; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public Builder clearTail() { if (tailBuilder_ == null) { tail_ = null; onChanged(); } else { tail_ = null; tailBuilder_ = null; } return this; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getTailBuilder() { onChanged(); return getTailFieldBuilder().getBuilder(); } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getTailOrBuilder() { if (tailBuilder_ != null) { return tailBuilder_.getMessageOrBuilder(); } else { return tail_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : tail_; } } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3[json_name = "tail"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getTailFieldBuilder() { if (tailBuilder_ == null) { tailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getTail(), getParentForChildren(), isClean()); tail_ = null; } return tailBuilder_; } @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:daml_lf_1.Expr.Cons) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.Cons) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cons parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Cons(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalNoneOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.OptionalNone) com.google.protobuf.MessageOrBuilder { /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); } /** *
     * (*Since version 1*)
     * Empty optional value
     * 
* * Protobuf type {@code daml_lf_1.Expr.OptionalNone} */ public static final class OptionalNone extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.OptionalNone) OptionalNoneOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalNone.newBuilder() to construct. private OptionalNone(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalNone() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalNone(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalNone( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } 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 (type_ != null) { output.writeMessage(1, getType()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone 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; } /** *
       * (*Since version 1*)
       * Empty optional value
       * 
* * Protobuf type {@code daml_lf_1.Expr.OptionalNone} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.OptionalNone) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } @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:daml_lf_1.Expr.OptionalNone) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.OptionalNone) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalNone parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalNone(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalSomeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.OptionalSome) com.google.protobuf.MessageOrBuilder { /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ boolean hasBody(); /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); } /** *
     * (*Since version 1*)
     * Non empty optional value
     * 
* * Protobuf type {@code daml_lf_1.Expr.OptionalSome} */ public static final class OptionalSome extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.OptionalSome) OptionalSomeOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalSome.newBuilder() to construct. private OptionalSome(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalSome() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalSome(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalSome( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome 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; } /** *
       * (*Since version 1*)
       * Non empty optional value
       * 
* * Protobuf type {@code daml_lf_1.Expr.OptionalSome} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.OptionalSome) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Expr.OptionalSome) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.OptionalSome) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalSome parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalSome(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToAnyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ToAny) com.google.protobuf.MessageOrBuilder { /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Wrap a value in Any
     * *Available in versions >= 1.7*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ToAny} */ public static final class ToAny extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ToAny) ToAnyOrBuilder { private static final long serialVersionUID = 0L; // Use ToAny.newBuilder() to construct. private ToAny(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ToAny() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ToAny(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ToAny( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (expr_ != null) { output.writeMessage(2, getExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny 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; } /** *
       * Wrap a value in Any
       * *Available in versions >= 1.7*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ToAny} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ToAny) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } @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:daml_lf_1.Expr.ToAny) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ToAny) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ToAny parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ToAny(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromAnyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.FromAny) com.google.protobuf.MessageOrBuilder { /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Extract the given type from Any or return None on type-mismatch
     * *Available in versions >= 1.7*
     * 
* * Protobuf type {@code daml_lf_1.Expr.FromAny} */ public static final class FromAny extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.FromAny) FromAnyOrBuilder { private static final long serialVersionUID = 0L; // Use FromAny.newBuilder() to construct. private FromAny(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromAny() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromAny(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FromAny( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (expr_ != null) { output.writeMessage(2, getExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny 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; } /** *
       * Extract the given type from Any or return None on type-mismatch
       * *Available in versions >= 1.7*
       * 
* * Protobuf type {@code daml_lf_1.Expr.FromAny} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.FromAny) com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } @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:daml_lf_1.Expr.FromAny) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.FromAny) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromAny parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FromAny(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { VAR_STR(1), VAR_INTERNED_STR(29), VAL(2), BUILTIN(3), PRIM_CON(4), PRIM_LIT(5), REC_CON(6), REC_PROJ(7), REC_UPD(22), VARIANT_CON(8), ENUM_CON(28), TUPLE_CON(9), TUPLE_PROJ(10), TUPLE_UPD(23), APP(11), TY_APP(12), ABS(13), TY_ABS(14), CASE(15), LET(16), NIL(17), CONS(18), UPDATE(20), SCENARIO(21), OPTIONAL_NONE(26), OPTIONAL_SOME(27), TO_ANY(30), FROM_ANY(31), TYPE_REP(32), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return VAR_STR; case 29: return VAR_INTERNED_STR; case 2: return VAL; case 3: return BUILTIN; case 4: return PRIM_CON; case 5: return PRIM_LIT; case 6: return REC_CON; case 7: return REC_PROJ; case 22: return REC_UPD; case 8: return VARIANT_CON; case 28: return ENUM_CON; case 9: return TUPLE_CON; case 10: return TUPLE_PROJ; case 23: return TUPLE_UPD; case 11: return APP; case 12: return TY_APP; case 13: return ABS; case 14: return TY_ABS; case 15: return CASE; case 16: return LET; case 17: return NIL; case 18: return CONS; case 20: return UPDATE; case 21: return SCENARIO; case 26: return OPTIONAL_NONE; case 27: return OPTIONAL_SOME; case 30: return TO_ANY; case 31: return FROM_ANY; case 32: return TYPE_REP; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int LOCATION_FIELD_NUMBER = 25; private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; /** *
     * Location of the expression in the DAML code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public boolean hasLocation() { return location_ != null; } /** *
     * Location of the expression in the DAML code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } /** *
     * Location of the expression in the DAML code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int VAR_STR_FIELD_NUMBER = 1; /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (sumCase_ == 1) { ref = sum_; } 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(); if (sumCase_ == 1) { sum_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 1) { ref = sum_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 1) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 29; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 29[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (sumCase_ == 29) { return (java.lang.Integer) sum_; } return 0; } public static final int VAL_FIELD_NUMBER = 2; /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public boolean hasVal() { return sumCase_ == 2; } /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ValName getVal() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder getValOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } public static final int BUILTIN_FIELD_NUMBER = 3; /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public int getBuiltinValue() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction getBuiltin() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction result = com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction.valueOf( (java.lang.Integer) sum_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction.UNRECOGNIZED : result; } return com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction.ADD_DECIMAL; } public static final int PRIM_CON_FIELD_NUMBER = 4; /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public int getPrimConValue() { if (sumCase_ == 4) { return (java.lang.Integer) sum_; } return 0; } /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 4) { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon result = com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.CON_UNIT; } public static final int PRIM_LIT_FIELD_NUMBER = 5; /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public boolean hasPrimLit() { return sumCase_ == 5; } /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit getPrimLit() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } public static final int REC_CON_FIELD_NUMBER = 6; /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public boolean hasRecCon() { return sumCase_ == 6; } /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon getRecCon() { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder() { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } public static final int REC_PROJ_FIELD_NUMBER = 7; /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public boolean hasRecProj() { return sumCase_ == 7; } /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj getRecProj() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } public static final int REC_UPD_FIELD_NUMBER = 22; /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public boolean hasRecUpd() { return sumCase_ == 22; } /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd getRecUpd() { if (sumCase_ == 22) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder() { if (sumCase_ == 22) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } public static final int VARIANT_CON_FIELD_NUMBER = 8; /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public boolean hasVariantCon() { return sumCase_ == 8; } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon getVariantCon() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } public static final int ENUM_CON_FIELD_NUMBER = 28; /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public boolean hasEnumCon() { return sumCase_ == 28; } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon getEnumCon() { if (sumCase_ == 28) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder() { if (sumCase_ == 28) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } public static final int TUPLE_CON_FIELD_NUMBER = 9; /** *
     * Tuple construction ('ExpTupleCon')
     * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public boolean hasTupleCon() { return sumCase_ == 9; } /** *
     * Tuple construction ('ExpTupleCon')
     * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon getTupleCon() { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } /** *
     * Tuple construction ('ExpTupleCon')
     * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder getTupleConOrBuilder() { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } public static final int TUPLE_PROJ_FIELD_NUMBER = 10; /** *
     * Tuple project ('ExpTupleProj')
     * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public boolean hasTupleProj() { return sumCase_ == 10; } /** *
     * Tuple project ('ExpTupleProj')
     * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj getTupleProj() { if (sumCase_ == 10) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } /** *
     * Tuple project ('ExpTupleProj')
     * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder getTupleProjOrBuilder() { if (sumCase_ == 10) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } public static final int TUPLE_UPD_FIELD_NUMBER = 23; /** *
     * Tuple update ('ExpTupleUpdate')
     * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public boolean hasTupleUpd() { return sumCase_ == 23; } /** *
     * Tuple update ('ExpTupleUpdate')
     * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd getTupleUpd() { if (sumCase_ == 23) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } /** *
     * Tuple update ('ExpTupleUpdate')
     * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder getTupleUpdOrBuilder() { if (sumCase_ == 23) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } public static final int APP_FIELD_NUMBER = 11; /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public boolean hasApp() { return sumCase_ == 11; } /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App getApp() { if (sumCase_ == 11) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder getAppOrBuilder() { if (sumCase_ == 11) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } public static final int TY_APP_FIELD_NUMBER = 12; /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public boolean hasTyApp() { return sumCase_ == 12; } /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp getTyApp() { if (sumCase_ == 12) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder() { if (sumCase_ == 12) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } public static final int ABS_FIELD_NUMBER = 13; /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public boolean hasAbs() { return sumCase_ == 13; } /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs getAbs() { if (sumCase_ == 13) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder() { if (sumCase_ == 13) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } public static final int TY_ABS_FIELD_NUMBER = 14; /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public boolean hasTyAbs() { return sumCase_ == 14; } /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs getTyAbs() { if (sumCase_ == 14) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder() { if (sumCase_ == 14) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } public static final int CASE_FIELD_NUMBER = 15; /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public boolean hasCase() { return sumCase_ == 15; } /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Case getCase() { if (sumCase_ == 15) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder getCaseOrBuilder() { if (sumCase_ == 15) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } public static final int LET_FIELD_NUMBER = 16; /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public boolean hasLet() { return sumCase_ == 16; } /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block getLet() { if (sumCase_ == 16) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getLetOrBuilder() { if (sumCase_ == 16) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } public static final int NIL_FIELD_NUMBER = 17; /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public boolean hasNil() { return sumCase_ == 17; } /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil getNil() { if (sumCase_ == 17) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder getNilOrBuilder() { if (sumCase_ == 17) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } public static final int CONS_FIELD_NUMBER = 18; /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public boolean hasCons() { return sumCase_ == 18; } /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons getCons() { if (sumCase_ == 18) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder() { if (sumCase_ == 18) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } public static final int UPDATE_FIELD_NUMBER = 20; /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public boolean hasUpdate() { return sumCase_ == 20; } /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update getUpdate() { if (sumCase_ == 20) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder getUpdateOrBuilder() { if (sumCase_ == 20) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } public static final int SCENARIO_FIELD_NUMBER = 21; /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public boolean hasScenario() { return sumCase_ == 21; } /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario getScenario() { if (sumCase_ == 21) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder() { if (sumCase_ == 21) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } public static final int OPTIONAL_NONE_FIELD_NUMBER = 26; /** *
     * empty optional value ('ExpNone')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public boolean hasOptionalNone() { return sumCase_ == 26; } /** *
     * empty optional value ('ExpNone')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone getOptionalNone() { if (sumCase_ == 26) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } /** *
     * empty optional value ('ExpNone')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder() { if (sumCase_ == 26) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } public static final int OPTIONAL_SOME_FIELD_NUMBER = 27; /** *
     * non empty optional value ('ExpSome')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public boolean hasOptionalSome() { return sumCase_ == 27; } /** *
     * non empty optional value ('ExpSome')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome getOptionalSome() { if (sumCase_ == 27) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } /** *
     * non empty optional value ('ExpSome')
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if (sumCase_ == 27) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } public static final int TO_ANY_FIELD_NUMBER = 30; /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public boolean hasToAny() { return sumCase_ == 30; } /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny getToAny() { if (sumCase_ == 30) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder getToAnyOrBuilder() { if (sumCase_ == 30) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } public static final int FROM_ANY_FIELD_NUMBER = 31; /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public boolean hasFromAny() { return sumCase_ == 31; } /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny getFromAny() { if (sumCase_ == 31) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder() { if (sumCase_ == 31) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } public static final int TYPE_REP_FIELD_NUMBER = 32; /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public boolean hasTypeRep() { return sumCase_ == 32; } /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getTypeRep() { if (sumCase_ == 32) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeRepOrBuilder() { if (sumCase_ == 32) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } 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 (sumCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_); } if (sumCase_ == 3) { output.writeEnum(3, ((java.lang.Integer) sum_)); } if (sumCase_ == 4) { output.writeEnum(4, ((java.lang.Integer) sum_)); } if (sumCase_ == 5) { output.writeMessage(5, (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_); } if (sumCase_ == 10) { output.writeMessage(10, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_); } if (sumCase_ == 11) { output.writeMessage(11, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_); } if (sumCase_ == 12) { output.writeMessage(12, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_); } if (sumCase_ == 15) { output.writeMessage(15, (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_); } if (sumCase_ == 16) { output.writeMessage(16, (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); } if (sumCase_ == 17) { output.writeMessage(17, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_); } if (sumCase_ == 18) { output.writeMessage(18, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_); } if (sumCase_ == 20) { output.writeMessage(20, (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_); } if (sumCase_ == 21) { output.writeMessage(21, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_); } if (sumCase_ == 22) { output.writeMessage(22, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_); } if (sumCase_ == 23) { output.writeMessage(23, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_); } if (location_ != null) { output.writeMessage(25, getLocation()); } if (sumCase_ == 26) { output.writeMessage(26, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_); } if (sumCase_ == 27) { output.writeMessage(27, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_); } if (sumCase_ == 28) { output.writeMessage(28, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_); } if (sumCase_ == 29) { output.writeInt32( 29, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 30) { output.writeMessage(30, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_); } if (sumCase_ == 31) { output.writeMessage(31, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_); } if (sumCase_ == 32) { output.writeMessage(32, (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, ((java.lang.Integer) sum_)); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, ((java.lang.Integer) sum_)); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_); } if (sumCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_); } if (sumCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); } if (sumCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_); } if (sumCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_); } if (sumCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_); } if (sumCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_); } if (sumCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_); } if (sumCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, getLocation()); } if (sumCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_); } if (sumCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_); } if (sumCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_); } if (sumCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 29, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_); } if (sumCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_); } if (sumCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Expr)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Expr other = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getVarStr() .equals(other.getVarStr())) return false; break; case 29: if (getVarInternedStr() != other.getVarInternedStr()) return false; break; case 2: if (!getVal() .equals(other.getVal())) return false; break; case 3: if (getBuiltinValue() != other.getBuiltinValue()) return false; break; case 4: if (getPrimConValue() != other.getPrimConValue()) return false; break; case 5: if (!getPrimLit() .equals(other.getPrimLit())) return false; break; case 6: if (!getRecCon() .equals(other.getRecCon())) return false; break; case 7: if (!getRecProj() .equals(other.getRecProj())) return false; break; case 22: if (!getRecUpd() .equals(other.getRecUpd())) return false; break; case 8: if (!getVariantCon() .equals(other.getVariantCon())) return false; break; case 28: if (!getEnumCon() .equals(other.getEnumCon())) return false; break; case 9: if (!getTupleCon() .equals(other.getTupleCon())) return false; break; case 10: if (!getTupleProj() .equals(other.getTupleProj())) return false; break; case 23: if (!getTupleUpd() .equals(other.getTupleUpd())) return false; break; case 11: if (!getApp() .equals(other.getApp())) return false; break; case 12: if (!getTyApp() .equals(other.getTyApp())) return false; break; case 13: if (!getAbs() .equals(other.getAbs())) return false; break; case 14: if (!getTyAbs() .equals(other.getTyAbs())) return false; break; case 15: if (!getCase() .equals(other.getCase())) return false; break; case 16: if (!getLet() .equals(other.getLet())) return false; break; case 17: if (!getNil() .equals(other.getNil())) return false; break; case 18: if (!getCons() .equals(other.getCons())) return false; break; case 20: if (!getUpdate() .equals(other.getUpdate())) return false; break; case 21: if (!getScenario() .equals(other.getScenario())) return false; break; case 26: if (!getOptionalNone() .equals(other.getOptionalNone())) return false; break; case 27: if (!getOptionalSome() .equals(other.getOptionalSome())) return false; break; case 30: if (!getToAny() .equals(other.getToAny())) return false; break; case 31: if (!getFromAny() .equals(other.getFromAny())) return false; break; case 32: if (!getTypeRep() .equals(other.getTypeRep())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } switch (sumCase_) { case 1: hash = (37 * hash) + VAR_STR_FIELD_NUMBER; hash = (53 * hash) + getVarStr().hashCode(); break; case 29: hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); break; case 2: hash = (37 * hash) + VAL_FIELD_NUMBER; hash = (53 * hash) + getVal().hashCode(); break; case 3: hash = (37 * hash) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + getBuiltinValue(); break; case 4: hash = (37 * hash) + PRIM_CON_FIELD_NUMBER; hash = (53 * hash) + getPrimConValue(); break; case 5: hash = (37 * hash) + PRIM_LIT_FIELD_NUMBER; hash = (53 * hash) + getPrimLit().hashCode(); break; case 6: hash = (37 * hash) + REC_CON_FIELD_NUMBER; hash = (53 * hash) + getRecCon().hashCode(); break; case 7: hash = (37 * hash) + REC_PROJ_FIELD_NUMBER; hash = (53 * hash) + getRecProj().hashCode(); break; case 22: hash = (37 * hash) + REC_UPD_FIELD_NUMBER; hash = (53 * hash) + getRecUpd().hashCode(); break; case 8: hash = (37 * hash) + VARIANT_CON_FIELD_NUMBER; hash = (53 * hash) + getVariantCon().hashCode(); break; case 28: hash = (37 * hash) + ENUM_CON_FIELD_NUMBER; hash = (53 * hash) + getEnumCon().hashCode(); break; case 9: hash = (37 * hash) + TUPLE_CON_FIELD_NUMBER; hash = (53 * hash) + getTupleCon().hashCode(); break; case 10: hash = (37 * hash) + TUPLE_PROJ_FIELD_NUMBER; hash = (53 * hash) + getTupleProj().hashCode(); break; case 23: hash = (37 * hash) + TUPLE_UPD_FIELD_NUMBER; hash = (53 * hash) + getTupleUpd().hashCode(); break; case 11: hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); break; case 12: hash = (37 * hash) + TY_APP_FIELD_NUMBER; hash = (53 * hash) + getTyApp().hashCode(); break; case 13: hash = (37 * hash) + ABS_FIELD_NUMBER; hash = (53 * hash) + getAbs().hashCode(); break; case 14: hash = (37 * hash) + TY_ABS_FIELD_NUMBER; hash = (53 * hash) + getTyAbs().hashCode(); break; case 15: hash = (37 * hash) + CASE_FIELD_NUMBER; hash = (53 * hash) + getCase().hashCode(); break; case 16: hash = (37 * hash) + LET_FIELD_NUMBER; hash = (53 * hash) + getLet().hashCode(); break; case 17: hash = (37 * hash) + NIL_FIELD_NUMBER; hash = (53 * hash) + getNil().hashCode(); break; case 18: hash = (37 * hash) + CONS_FIELD_NUMBER; hash = (53 * hash) + getCons().hashCode(); break; case 20: hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); break; case 21: hash = (37 * hash) + SCENARIO_FIELD_NUMBER; hash = (53 * hash) + getScenario().hashCode(); break; case 26: hash = (37 * hash) + OPTIONAL_NONE_FIELD_NUMBER; hash = (53 * hash) + getOptionalNone().hashCode(); break; case 27: hash = (37 * hash) + OPTIONAL_SOME_FIELD_NUMBER; hash = (53 * hash) + getOptionalSome().hashCode(); break; case 30: hash = (37 * hash) + TO_ANY_FIELD_NUMBER; hash = (53 * hash) + getToAny().hashCode(); break; case 31: hash = (37 * hash) + FROM_ANY_FIELD_NUMBER; hash = (53 * hash) + getFromAny().hashCode(); break; case 32: hash = (37 * hash) + TYPE_REP_FIELD_NUMBER; hash = (53 * hash) + getTypeRep().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr 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.digitalasset.daml_lf_1_7.DamlLf1.Expr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr 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.digitalasset.daml_lf_1_7.DamlLf1.Expr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr 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.digitalasset.daml_lf_1_7.DamlLf1.Expr 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; } /** *
     * Expressions
     * 
* * Protobuf type {@code daml_lf_1.Expr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr) com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.class, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Expr_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr build() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Expr buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Expr result = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr(this); if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (sumCase_ == 1) { result.sum_ = sum_; } if (sumCase_ == 29) { result.sum_ = sum_; } if (sumCase_ == 2) { if (valBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = valBuilder_.build(); } } if (sumCase_ == 3) { result.sum_ = sum_; } if (sumCase_ == 4) { result.sum_ = sum_; } if (sumCase_ == 5) { if (primLitBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = primLitBuilder_.build(); } } if (sumCase_ == 6) { if (recConBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = recConBuilder_.build(); } } if (sumCase_ == 7) { if (recProjBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = recProjBuilder_.build(); } } if (sumCase_ == 22) { if (recUpdBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = recUpdBuilder_.build(); } } if (sumCase_ == 8) { if (variantConBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = variantConBuilder_.build(); } } if (sumCase_ == 28) { if (enumConBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = enumConBuilder_.build(); } } if (sumCase_ == 9) { if (tupleConBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tupleConBuilder_.build(); } } if (sumCase_ == 10) { if (tupleProjBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tupleProjBuilder_.build(); } } if (sumCase_ == 23) { if (tupleUpdBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tupleUpdBuilder_.build(); } } if (sumCase_ == 11) { if (appBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = appBuilder_.build(); } } if (sumCase_ == 12) { if (tyAppBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tyAppBuilder_.build(); } } if (sumCase_ == 13) { if (absBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = absBuilder_.build(); } } if (sumCase_ == 14) { if (tyAbsBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tyAbsBuilder_.build(); } } if (sumCase_ == 15) { if (caseBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = caseBuilder_.build(); } } if (sumCase_ == 16) { if (letBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = letBuilder_.build(); } } if (sumCase_ == 17) { if (nilBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = nilBuilder_.build(); } } if (sumCase_ == 18) { if (consBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = consBuilder_.build(); } } if (sumCase_ == 20) { if (updateBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = updateBuilder_.build(); } } if (sumCase_ == 21) { if (scenarioBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = scenarioBuilder_.build(); } } if (sumCase_ == 26) { if (optionalNoneBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = optionalNoneBuilder_.build(); } } if (sumCase_ == 27) { if (optionalSomeBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = optionalSomeBuilder_.build(); } } if (sumCase_ == 30) { if (toAnyBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = toAnyBuilder_.build(); } } if (sumCase_ == 31) { if (fromAnyBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fromAnyBuilder_.build(); } } if (sumCase_ == 32) { if (typeRepBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = typeRepBuilder_.build(); } } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Expr other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } switch (other.getSumCase()) { case VAR_STR: { sumCase_ = 1; sum_ = other.sum_; onChanged(); break; } case VAR_INTERNED_STR: { setVarInternedStr(other.getVarInternedStr()); break; } case VAL: { mergeVal(other.getVal()); break; } case BUILTIN: { setBuiltinValue(other.getBuiltinValue()); break; } case PRIM_CON: { setPrimConValue(other.getPrimConValue()); break; } case PRIM_LIT: { mergePrimLit(other.getPrimLit()); break; } case REC_CON: { mergeRecCon(other.getRecCon()); break; } case REC_PROJ: { mergeRecProj(other.getRecProj()); break; } case REC_UPD: { mergeRecUpd(other.getRecUpd()); break; } case VARIANT_CON: { mergeVariantCon(other.getVariantCon()); break; } case ENUM_CON: { mergeEnumCon(other.getEnumCon()); break; } case TUPLE_CON: { mergeTupleCon(other.getTupleCon()); break; } case TUPLE_PROJ: { mergeTupleProj(other.getTupleProj()); break; } case TUPLE_UPD: { mergeTupleUpd(other.getTupleUpd()); break; } case APP: { mergeApp(other.getApp()); break; } case TY_APP: { mergeTyApp(other.getTyApp()); break; } case ABS: { mergeAbs(other.getAbs()); break; } case TY_ABS: { mergeTyAbs(other.getTyAbs()); break; } case CASE: { mergeCase(other.getCase()); break; } case LET: { mergeLet(other.getLet()); break; } case NIL: { mergeNil(other.getNil()); break; } case CONS: { mergeCons(other.getCons()); break; } case UPDATE: { mergeUpdate(other.getUpdate()); break; } case SCENARIO: { mergeScenario(other.getScenario()); break; } case OPTIONAL_NONE: { mergeOptionalNone(other.getOptionalNone()); break; } case OPTIONAL_SOME: { mergeOptionalSome(other.getOptionalSome()); break; } case TO_ANY: { mergeToAny(other.getToAny()); break; } case FROM_ANY: { mergeFromAny(other.getFromAny()); break; } case TYPE_REP: { mergeTypeRep(other.getTypeRep()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Expr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> locationBuilder_; /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public Builder setLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public Builder setLocation( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public Builder mergeLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.digitalasset.daml_lf_1_7.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } } /** *
       * Location of the expression in the DAML code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25[json_name = "location"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public java.lang.String getVarStr() { java.lang.Object ref = ""; if (sumCase_ == 1) { ref = sum_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sumCase_ == 1) { sum_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public com.google.protobuf.ByteString getVarStrBytes() { java.lang.Object ref = ""; if (sumCase_ == 1) { ref = sum_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sumCase_ == 1) { sum_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 1; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder clearVarStr() { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1[json_name = "varStr"]; */ public Builder setVarStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sumCase_ = 1; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 29[json_name = "varInternedStr"]; */ public int getVarInternedStr() { if (sumCase_ == 29) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 29[json_name = "varInternedStr"]; */ public Builder setVarInternedStr(int value) { sumCase_ = 29; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 29[json_name = "varInternedStr"]; */ public Builder clearVarInternedStr() { if (sumCase_ == 29) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ValName, com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder> valBuilder_; /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public boolean hasVal() { return sumCase_ == 2; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ValName getVal() { if (valBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } else { if (sumCase_ == 2) { return valBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public Builder setVal(com.digitalasset.daml_lf_1_7.DamlLf1.ValName value) { if (valBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { valBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public Builder setVal( com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder builderForValue) { if (valBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { valBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public Builder mergeVal(com.digitalasset.daml_lf_1_7.DamlLf1.ValName value) { if (valBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.ValName.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { valBuilder_.mergeFrom(value); } valBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public Builder clearVal() { if (valBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } valBuilder_.clear(); } return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder getValBuilder() { return getValFieldBuilder().getBuilder(); } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder getValOrBuilder() { if ((sumCase_ == 2) && (valBuilder_ != null)) { return valBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2[json_name = "val"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ValName, com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.ValName.getDefaultInstance(); } valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.ValName, com.digitalasset.daml_lf_1_7.DamlLf1.ValName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ValNameOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.ValName) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return valBuilder_; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public int getBuiltinValue() { if (sumCase_ == 3) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public Builder setBuiltinValue(int value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction getBuiltin() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction result = com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction.valueOf( (java.lang.Integer) sum_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction.UNRECOGNIZED : result; } return com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction.ADD_DECIMAL; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public Builder setBuiltin(com.digitalasset.daml_lf_1_7.DamlLf1.BuiltinFunction value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 3; sum_ = value.getNumber(); onChanged(); return this; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"]; */ public Builder clearBuiltin() { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public int getPrimConValue() { if (sumCase_ == 4) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public Builder setPrimConValue(int value) { sumCase_ = 4; sum_ = value; onChanged(); return this; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 4) { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon result = com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.CON_UNIT; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public Builder setPrimCon(com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 4; sum_ = value.getNumber(); onChanged(); return this; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"]; */ public Builder clearPrimCon() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder> primLitBuilder_; /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public boolean hasPrimLit() { return sumCase_ == 5; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit getPrimLit() { if (primLitBuilder_ == null) { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } else { if (sumCase_ == 5) { return primLitBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public Builder setPrimLit(com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit value) { if (primLitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { primLitBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public Builder setPrimLit( com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder builderForValue) { if (primLitBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { primLitBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public Builder mergePrimLit(com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit value) { if (primLitBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { primLitBuilder_.mergeFrom(value); } primLitBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public Builder clearPrimLit() { if (primLitBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } primLitBuilder_.clear(); } return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder getPrimLitBuilder() { return getPrimLitFieldBuilder().getBuilder(); } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder() { if ((sumCase_ == 5) && (primLitBuilder_ != null)) { return primLitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder> getPrimLitFieldBuilder() { if (primLitBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.getDefaultInstance(); } primLitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PrimLitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.PrimLit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return primLitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder> recConBuilder_; /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public boolean hasRecCon() { return sumCase_ == 6; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon getRecCon() { if (recConBuilder_ == null) { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } else { if (sumCase_ == 6) { return recConBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public Builder setRecCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon value) { if (recConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recConBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public Builder setRecCon( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder builderForValue) { if (recConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public Builder mergeRecCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon value) { if (recConBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 6) { recConBuilder_.mergeFrom(value); } recConBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public Builder clearRecCon() { if (recConBuilder_ == null) { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; } recConBuilder_.clear(); } return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder getRecConBuilder() { return getRecConFieldBuilder().getBuilder(); } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder() { if ((sumCase_ == 6) && (recConBuilder_ != null)) { return recConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder> getRecConFieldBuilder() { if (recConBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.getDefaultInstance(); } recConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecConOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged();; return recConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder> recProjBuilder_; /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public boolean hasRecProj() { return sumCase_ == 7; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj getRecProj() { if (recProjBuilder_ == null) { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } else { if (sumCase_ == 7) { return recProjBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public Builder setRecProj(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj value) { if (recProjBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recProjBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public Builder setRecProj( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder builderForValue) { if (recProjBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recProjBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public Builder mergeRecProj(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj value) { if (recProjBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { recProjBuilder_.mergeFrom(value); } recProjBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public Builder clearRecProj() { if (recProjBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } recProjBuilder_.clear(); } return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder getRecProjBuilder() { return getRecProjFieldBuilder().getBuilder(); } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder() { if ((sumCase_ == 7) && (recProjBuilder_ != null)) { return recProjBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder> getRecProjFieldBuilder() { if (recProjBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.getDefaultInstance(); } recProjBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProjOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecProj) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return recProjBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder> recUpdBuilder_; /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public boolean hasRecUpd() { return sumCase_ == 22; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd getRecUpd() { if (recUpdBuilder_ == null) { if (sumCase_ == 22) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } else { if (sumCase_ == 22) { return recUpdBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public Builder setRecUpd(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd value) { if (recUpdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recUpdBuilder_.setMessage(value); } sumCase_ = 22; return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public Builder setRecUpd( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder builderForValue) { if (recUpdBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recUpdBuilder_.setMessage(builderForValue.build()); } sumCase_ = 22; return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public Builder mergeRecUpd(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd value) { if (recUpdBuilder_ == null) { if (sumCase_ == 22 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 22) { recUpdBuilder_.mergeFrom(value); } recUpdBuilder_.setMessage(value); } sumCase_ = 22; return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public Builder clearRecUpd() { if (recUpdBuilder_ == null) { if (sumCase_ == 22) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 22) { sumCase_ = 0; sum_ = null; } recUpdBuilder_.clear(); } return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder getRecUpdBuilder() { return getRecUpdFieldBuilder().getBuilder(); } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder() { if ((sumCase_ == 22) && (recUpdBuilder_ != null)) { return recUpdBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 22) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder> getRecUpdFieldBuilder() { if (recUpdBuilder_ == null) { if (!(sumCase_ == 22)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.getDefaultInstance(); } recUpdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpdOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.RecUpd) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 22; onChanged();; return recUpdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder> variantConBuilder_; /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public boolean hasVariantCon() { return sumCase_ == 8; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon getVariantCon() { if (variantConBuilder_ == null) { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } else { if (sumCase_ == 8) { return variantConBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public Builder setVariantCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon value) { if (variantConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { variantConBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public Builder setVariantCon( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder builderForValue) { if (variantConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { variantConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public Builder mergeVariantCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon value) { if (variantConBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 8) { variantConBuilder_.mergeFrom(value); } variantConBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public Builder clearVariantCon() { if (variantConBuilder_ == null) { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; } variantConBuilder_.clear(); } return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder getVariantConBuilder() { return getVariantConFieldBuilder().getBuilder(); } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder() { if ((sumCase_ == 8) && (variantConBuilder_ != null)) { return variantConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder> getVariantConFieldBuilder() { if (variantConBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.getDefaultInstance(); } variantConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantConOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.VariantCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return variantConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder> enumConBuilder_; /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public boolean hasEnumCon() { return sumCase_ == 28; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon getEnumCon() { if (enumConBuilder_ == null) { if (sumCase_ == 28) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } else { if (sumCase_ == 28) { return enumConBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public Builder setEnumCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon value) { if (enumConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { enumConBuilder_.setMessage(value); } sumCase_ = 28; return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public Builder setEnumCon( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder builderForValue) { if (enumConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 28; return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public Builder mergeEnumCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon value) { if (enumConBuilder_ == null) { if (sumCase_ == 28 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 28) { enumConBuilder_.mergeFrom(value); } enumConBuilder_.setMessage(value); } sumCase_ = 28; return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public Builder clearEnumCon() { if (enumConBuilder_ == null) { if (sumCase_ == 28) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 28) { sumCase_ = 0; sum_ = null; } enumConBuilder_.clear(); } return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder getEnumConBuilder() { return getEnumConFieldBuilder().getBuilder(); } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder() { if ((sumCase_ == 28) && (enumConBuilder_ != null)) { return enumConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 28) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder> getEnumConFieldBuilder() { if (enumConBuilder_ == null) { if (!(sumCase_ == 28)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.getDefaultInstance(); } enumConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumConOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.EnumCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 28; onChanged();; return enumConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder> tupleConBuilder_; /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public boolean hasTupleCon() { return sumCase_ == 9; } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon getTupleCon() { if (tupleConBuilder_ == null) { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } else { if (sumCase_ == 9) { return tupleConBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public Builder setTupleCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon value) { if (tupleConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tupleConBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public Builder setTupleCon( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder builderForValue) { if (tupleConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tupleConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public Builder mergeTupleCon(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon value) { if (tupleConBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 9) { tupleConBuilder_.mergeFrom(value); } tupleConBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public Builder clearTupleCon() { if (tupleConBuilder_ == null) { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; } tupleConBuilder_.clear(); } return this; } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder getTupleConBuilder() { return getTupleConFieldBuilder().getBuilder(); } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder getTupleConOrBuilder() { if ((sumCase_ == 9) && (tupleConBuilder_ != null)) { return tupleConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } } /** *
       * Tuple construction ('ExpTupleCon')
       * 
* * .daml_lf_1.Expr.TupleCon tuple_con = 9[json_name = "tupleCon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder> getTupleConFieldBuilder() { if (tupleConBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.getDefaultInstance(); } tupleConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleConOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged();; return tupleConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder> tupleProjBuilder_; /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public boolean hasTupleProj() { return sumCase_ == 10; } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj getTupleProj() { if (tupleProjBuilder_ == null) { if (sumCase_ == 10) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } else { if (sumCase_ == 10) { return tupleProjBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public Builder setTupleProj(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj value) { if (tupleProjBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tupleProjBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public Builder setTupleProj( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder builderForValue) { if (tupleProjBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tupleProjBuilder_.setMessage(builderForValue.build()); } sumCase_ = 10; return this; } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public Builder mergeTupleProj(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj value) { if (tupleProjBuilder_ == null) { if (sumCase_ == 10 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 10) { tupleProjBuilder_.mergeFrom(value); } tupleProjBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public Builder clearTupleProj() { if (tupleProjBuilder_ == null) { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; } tupleProjBuilder_.clear(); } return this; } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder getTupleProjBuilder() { return getTupleProjFieldBuilder().getBuilder(); } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder getTupleProjOrBuilder() { if ((sumCase_ == 10) && (tupleProjBuilder_ != null)) { return tupleProjBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 10) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } } /** *
       * Tuple project ('ExpTupleProj')
       * 
* * .daml_lf_1.Expr.TupleProj tuple_proj = 10[json_name = "tupleProj"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder> getTupleProjFieldBuilder() { if (tupleProjBuilder_ == null) { if (!(sumCase_ == 10)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.getDefaultInstance(); } tupleProjBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProjOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleProj) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 10; onChanged();; return tupleProjBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder> tupleUpdBuilder_; /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public boolean hasTupleUpd() { return sumCase_ == 23; } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd getTupleUpd() { if (tupleUpdBuilder_ == null) { if (sumCase_ == 23) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } else { if (sumCase_ == 23) { return tupleUpdBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public Builder setTupleUpd(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd value) { if (tupleUpdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tupleUpdBuilder_.setMessage(value); } sumCase_ = 23; return this; } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public Builder setTupleUpd( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder builderForValue) { if (tupleUpdBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tupleUpdBuilder_.setMessage(builderForValue.build()); } sumCase_ = 23; return this; } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public Builder mergeTupleUpd(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd value) { if (tupleUpdBuilder_ == null) { if (sumCase_ == 23 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 23) { tupleUpdBuilder_.mergeFrom(value); } tupleUpdBuilder_.setMessage(value); } sumCase_ = 23; return this; } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public Builder clearTupleUpd() { if (tupleUpdBuilder_ == null) { if (sumCase_ == 23) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 23) { sumCase_ = 0; sum_ = null; } tupleUpdBuilder_.clear(); } return this; } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder getTupleUpdBuilder() { return getTupleUpdFieldBuilder().getBuilder(); } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder getTupleUpdOrBuilder() { if ((sumCase_ == 23) && (tupleUpdBuilder_ != null)) { return tupleUpdBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 23) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } } /** *
       * Tuple update ('ExpTupleUpdate')
       * 
* * .daml_lf_1.Expr.TupleUpd tuple_upd = 23[json_name = "tupleUpd"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder> getTupleUpdFieldBuilder() { if (tupleUpdBuilder_ == null) { if (!(sumCase_ == 23)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.getDefaultInstance(); } tupleUpdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpdOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TupleUpd) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 23; onChanged();; return tupleUpdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder> appBuilder_; /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public boolean hasApp() { return sumCase_ == 11; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App getApp() { if (appBuilder_ == null) { if (sumCase_ == 11) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } else { if (sumCase_ == 11) { return appBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public Builder setApp(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App value) { if (appBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { appBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public Builder setApp( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder builderForValue) { if (appBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { appBuilder_.setMessage(builderForValue.build()); } sumCase_ = 11; return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public Builder mergeApp(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App value) { if (appBuilder_ == null) { if (sumCase_ == 11 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 11) { appBuilder_.mergeFrom(value); } appBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public Builder clearApp() { if (appBuilder_ == null) { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; } appBuilder_.clear(); } return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder getAppBuilder() { return getAppFieldBuilder().getBuilder(); } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder getAppOrBuilder() { if ((sumCase_ == 11) && (appBuilder_ != null)) { return appBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 11) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11[json_name = "app"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder> getAppFieldBuilder() { if (appBuilder_ == null) { if (!(sumCase_ == 11)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.getDefaultInstance(); } appBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AppOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.App) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 11; onChanged();; return appBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder> tyAppBuilder_; /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public boolean hasTyApp() { return sumCase_ == 12; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp getTyApp() { if (tyAppBuilder_ == null) { if (sumCase_ == 12) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } else { if (sumCase_ == 12) { return tyAppBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public Builder setTyApp(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp value) { if (tyAppBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tyAppBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public Builder setTyApp( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder builderForValue) { if (tyAppBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tyAppBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public Builder mergeTyApp(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp value) { if (tyAppBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 12) { tyAppBuilder_.mergeFrom(value); } tyAppBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public Builder clearTyApp() { if (tyAppBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } tyAppBuilder_.clear(); } return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder getTyAppBuilder() { return getTyAppFieldBuilder().getBuilder(); } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder() { if ((sumCase_ == 12) && (tyAppBuilder_ != null)) { return tyAppBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder> getTyAppFieldBuilder() { if (tyAppBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.getDefaultInstance(); } tyAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAppOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyApp) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged();; return tyAppBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder> absBuilder_; /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public boolean hasAbs() { return sumCase_ == 13; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs getAbs() { if (absBuilder_ == null) { if (sumCase_ == 13) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } else { if (sumCase_ == 13) { return absBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public Builder setAbs(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs value) { if (absBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { absBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public Builder setAbs( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder builderForValue) { if (absBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { absBuilder_.setMessage(builderForValue.build()); } sumCase_ = 13; return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public Builder mergeAbs(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs value) { if (absBuilder_ == null) { if (sumCase_ == 13 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 13) { absBuilder_.mergeFrom(value); } absBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public Builder clearAbs() { if (absBuilder_ == null) { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; } absBuilder_.clear(); } return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder getAbsBuilder() { return getAbsFieldBuilder().getBuilder(); } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder() { if ((sumCase_ == 13) && (absBuilder_ != null)) { return absBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder> getAbsFieldBuilder() { if (absBuilder_ == null) { if (!(sumCase_ == 13)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.getDefaultInstance(); } absBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.AbsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Abs) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 13; onChanged();; return absBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder> tyAbsBuilder_; /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public boolean hasTyAbs() { return sumCase_ == 14; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs getTyAbs() { if (tyAbsBuilder_ == null) { if (sumCase_ == 14) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } else { if (sumCase_ == 14) { return tyAbsBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public Builder setTyAbs(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs value) { if (tyAbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tyAbsBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public Builder setTyAbs( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder builderForValue) { if (tyAbsBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tyAbsBuilder_.setMessage(builderForValue.build()); } sumCase_ = 14; return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public Builder mergeTyAbs(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs value) { if (tyAbsBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 14) { tyAbsBuilder_.mergeFrom(value); } tyAbsBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public Builder clearTyAbs() { if (tyAbsBuilder_ == null) { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; } tyAbsBuilder_.clear(); } return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder getTyAbsBuilder() { return getTyAbsFieldBuilder().getBuilder(); } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder() { if ((sumCase_ == 14) && (tyAbsBuilder_ != null)) { return tyAbsBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder> getTyAbsFieldBuilder() { if (tyAbsBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.getDefaultInstance(); } tyAbsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.TyAbs) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged();; return tyAbsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Case, com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder> caseBuilder_; /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public boolean hasCase() { return sumCase_ == 15; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Case getCase() { if (caseBuilder_ == null) { if (sumCase_ == 15) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } else { if (sumCase_ == 15) { return caseBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public Builder setCase(com.digitalasset.daml_lf_1_7.DamlLf1.Case value) { if (caseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { caseBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public Builder setCase( com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder builderForValue) { if (caseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { caseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 15; return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public Builder mergeCase(com.digitalasset.daml_lf_1_7.DamlLf1.Case value) { if (caseBuilder_ == null) { if (sumCase_ == 15 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Case.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 15) { caseBuilder_.mergeFrom(value); } caseBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public Builder clearCase() { if (caseBuilder_ == null) { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; } caseBuilder_.clear(); } return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder getCaseBuilder() { return getCaseFieldBuilder().getBuilder(); } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder getCaseOrBuilder() { if ((sumCase_ == 15) && (caseBuilder_ != null)) { return caseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 15) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15[json_name = "case"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Case, com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder> getCaseFieldBuilder() { if (caseBuilder_ == null) { if (!(sumCase_ == 15)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Case, com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Case) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 15; onChanged();; return caseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder> letBuilder_; /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public boolean hasLet() { return sumCase_ == 16; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block getLet() { if (letBuilder_ == null) { if (sumCase_ == 16) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } else { if (sumCase_ == 16) { return letBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public Builder setLet(com.digitalasset.daml_lf_1_7.DamlLf1.Block value) { if (letBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { letBuilder_.setMessage(value); } sumCase_ = 16; return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public Builder setLet( com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder builderForValue) { if (letBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { letBuilder_.setMessage(builderForValue.build()); } sumCase_ = 16; return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public Builder mergeLet(com.digitalasset.daml_lf_1_7.DamlLf1.Block value) { if (letBuilder_ == null) { if (sumCase_ == 16 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Block.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 16) { letBuilder_.mergeFrom(value); } letBuilder_.setMessage(value); } sumCase_ = 16; return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public Builder clearLet() { if (letBuilder_ == null) { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; } letBuilder_.clear(); } return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder getLetBuilder() { return getLetFieldBuilder().getBuilder(); } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getLetOrBuilder() { if ((sumCase_ == 16) && (letBuilder_ != null)) { return letBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 16) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16[json_name = "let"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder> getLetFieldBuilder() { if (letBuilder_ == null) { if (!(sumCase_ == 16)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } letBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 16; onChanged();; return letBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder> nilBuilder_; /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public boolean hasNil() { return sumCase_ == 17; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil getNil() { if (nilBuilder_ == null) { if (sumCase_ == 17) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } else { if (sumCase_ == 17) { return nilBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public Builder setNil(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil value) { if (nilBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { nilBuilder_.setMessage(value); } sumCase_ = 17; return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public Builder setNil( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder builderForValue) { if (nilBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { nilBuilder_.setMessage(builderForValue.build()); } sumCase_ = 17; return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public Builder mergeNil(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil value) { if (nilBuilder_ == null) { if (sumCase_ == 17 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 17) { nilBuilder_.mergeFrom(value); } nilBuilder_.setMessage(value); } sumCase_ = 17; return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public Builder clearNil() { if (nilBuilder_ == null) { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; } nilBuilder_.clear(); } return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder getNilBuilder() { return getNilFieldBuilder().getBuilder(); } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder getNilOrBuilder() { if ((sumCase_ == 17) && (nilBuilder_ != null)) { return nilBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 17) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder> getNilFieldBuilder() { if (nilBuilder_ == null) { if (!(sumCase_ == 17)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.getDefaultInstance(); } nilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.NilOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Nil) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 17; onChanged();; return nilBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder> consBuilder_; /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public boolean hasCons() { return sumCase_ == 18; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons getCons() { if (consBuilder_ == null) { if (sumCase_ == 18) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } else { if (sumCase_ == 18) { return consBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public Builder setCons(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons value) { if (consBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { consBuilder_.setMessage(value); } sumCase_ = 18; return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public Builder setCons( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder builderForValue) { if (consBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { consBuilder_.setMessage(builderForValue.build()); } sumCase_ = 18; return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public Builder mergeCons(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons value) { if (consBuilder_ == null) { if (sumCase_ == 18 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 18) { consBuilder_.mergeFrom(value); } consBuilder_.setMessage(value); } sumCase_ = 18; return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public Builder clearCons() { if (consBuilder_ == null) { if (sumCase_ == 18) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 18) { sumCase_ = 0; sum_ = null; } consBuilder_.clear(); } return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder getConsBuilder() { return getConsFieldBuilder().getBuilder(); } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder() { if ((sumCase_ == 18) && (consBuilder_ != null)) { return consBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 18) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder> getConsFieldBuilder() { if (consBuilder_ == null) { if (!(sumCase_ == 18)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.getDefaultInstance(); } consBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ConsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Cons) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 18; onChanged();; return consBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder> updateBuilder_; /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public boolean hasUpdate() { return sumCase_ == 20; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update getUpdate() { if (updateBuilder_ == null) { if (sumCase_ == 20) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } else { if (sumCase_ == 20) { return updateBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public Builder setUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Update value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } sumCase_ = 20; return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public Builder setUpdate( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder builderForValue) { if (updateBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } sumCase_ = 20; return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public Builder mergeUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Update value) { if (updateBuilder_ == null) { if (sumCase_ == 20 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 20) { updateBuilder_.mergeFrom(value); } updateBuilder_.setMessage(value); } sumCase_ = 20; return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public Builder clearUpdate() { if (updateBuilder_ == null) { if (sumCase_ == 20) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 20) { sumCase_ = 0; sum_ = null; } updateBuilder_.clear(); } return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder getUpdateOrBuilder() { if ((sumCase_ == 20) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 20) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20[json_name = "update"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(sumCase_ == 20)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 20; onChanged();; return updateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder> scenarioBuilder_; /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public boolean hasScenario() { return sumCase_ == 21; } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario getScenario() { if (scenarioBuilder_ == null) { if (sumCase_ == 21) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } else { if (sumCase_ == 21) { return scenarioBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public Builder setScenario(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario value) { if (scenarioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { scenarioBuilder_.setMessage(value); } sumCase_ = 21; return this; } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public Builder setScenario( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder builderForValue) { if (scenarioBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { scenarioBuilder_.setMessage(builderForValue.build()); } sumCase_ = 21; return this; } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public Builder mergeScenario(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario value) { if (scenarioBuilder_ == null) { if (sumCase_ == 21 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 21) { scenarioBuilder_.mergeFrom(value); } scenarioBuilder_.setMessage(value); } sumCase_ = 21; return this; } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public Builder clearScenario() { if (scenarioBuilder_ == null) { if (sumCase_ == 21) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 21) { sumCase_ = 0; sum_ = null; } scenarioBuilder_.clear(); } return this; } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder getScenarioBuilder() { return getScenarioFieldBuilder().getBuilder(); } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder() { if ((sumCase_ == 21) && (scenarioBuilder_ != null)) { return scenarioBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 21) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21[json_name = "scenario"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder> getScenarioFieldBuilder() { if (scenarioBuilder_ == null) { if (!(sumCase_ == 21)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } scenarioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 21; onChanged();; return scenarioBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder> optionalNoneBuilder_; /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public boolean hasOptionalNone() { return sumCase_ == 26; } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone getOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 26) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } else { if (sumCase_ == 26) { return optionalNoneBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public Builder setOptionalNone(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone value) { if (optionalNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalNoneBuilder_.setMessage(value); } sumCase_ = 26; return this; } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public Builder setOptionalNone( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder builderForValue) { if (optionalNoneBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalNoneBuilder_.setMessage(builderForValue.build()); } sumCase_ = 26; return this; } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public Builder mergeOptionalNone(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone value) { if (optionalNoneBuilder_ == null) { if (sumCase_ == 26 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 26) { optionalNoneBuilder_.mergeFrom(value); } optionalNoneBuilder_.setMessage(value); } sumCase_ = 26; return this; } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public Builder clearOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 26) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 26) { sumCase_ = 0; sum_ = null; } optionalNoneBuilder_.clear(); } return this; } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder getOptionalNoneBuilder() { return getOptionalNoneFieldBuilder().getBuilder(); } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder() { if ((sumCase_ == 26) && (optionalNoneBuilder_ != null)) { return optionalNoneBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 26) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } } /** *
       * empty optional value ('ExpNone')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder> getOptionalNoneFieldBuilder() { if (optionalNoneBuilder_ == null) { if (!(sumCase_ == 26)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } optionalNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNoneOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalNone) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 26; onChanged();; return optionalNoneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder> optionalSomeBuilder_; /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public boolean hasOptionalSome() { return sumCase_ == 27; } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome getOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 27) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } else { if (sumCase_ == 27) { return optionalSomeBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public Builder setOptionalSome(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalSomeBuilder_.setMessage(value); } sumCase_ = 27; return this; } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public Builder setOptionalSome( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder builderForValue) { if (optionalSomeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalSomeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 27; return this; } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public Builder mergeOptionalSome(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (sumCase_ == 27 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 27) { optionalSomeBuilder_.mergeFrom(value); } optionalSomeBuilder_.setMessage(value); } sumCase_ = 27; return this; } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public Builder clearOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 27) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 27) { sumCase_ = 0; sum_ = null; } optionalSomeBuilder_.clear(); } return this; } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder getOptionalSomeBuilder() { return getOptionalSomeFieldBuilder().getBuilder(); } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if ((sumCase_ == 27) && (optionalSomeBuilder_ != null)) { return optionalSomeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 27) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } } /** *
       * non empty optional value ('ExpSome')
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder> getOptionalSomeFieldBuilder() { if (optionalSomeBuilder_ == null) { if (!(sumCase_ == 27)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } optionalSomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSomeOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.OptionalSome) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 27; onChanged();; return optionalSomeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder> toAnyBuilder_; /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public boolean hasToAny() { return sumCase_ == 30; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny getToAny() { if (toAnyBuilder_ == null) { if (sumCase_ == 30) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } else { if (sumCase_ == 30) { return toAnyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public Builder setToAny(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny value) { if (toAnyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toAnyBuilder_.setMessage(value); } sumCase_ = 30; return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public Builder setToAny( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder builderForValue) { if (toAnyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toAnyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 30; return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public Builder mergeToAny(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny value) { if (toAnyBuilder_ == null) { if (sumCase_ == 30 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 30) { toAnyBuilder_.mergeFrom(value); } toAnyBuilder_.setMessage(value); } sumCase_ = 30; return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public Builder clearToAny() { if (toAnyBuilder_ == null) { if (sumCase_ == 30) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 30) { sumCase_ = 0; sum_ = null; } toAnyBuilder_.clear(); } return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder getToAnyBuilder() { return getToAnyFieldBuilder().getBuilder(); } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder getToAnyOrBuilder() { if ((sumCase_ == 30) && (toAnyBuilder_ != null)) { return toAnyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 30) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder> getToAnyFieldBuilder() { if (toAnyBuilder_ == null) { if (!(sumCase_ == 30)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.getDefaultInstance(); } toAnyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAnyOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.ToAny) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 30; onChanged();; return toAnyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder> fromAnyBuilder_; /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public boolean hasFromAny() { return sumCase_ == 31; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny getFromAny() { if (fromAnyBuilder_ == null) { if (sumCase_ == 31) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } else { if (sumCase_ == 31) { return fromAnyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public Builder setFromAny(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny value) { if (fromAnyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromAnyBuilder_.setMessage(value); } sumCase_ = 31; return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public Builder setFromAny( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder builderForValue) { if (fromAnyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromAnyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 31; return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public Builder mergeFromAny(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny value) { if (fromAnyBuilder_ == null) { if (sumCase_ == 31 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 31) { fromAnyBuilder_.mergeFrom(value); } fromAnyBuilder_.setMessage(value); } sumCase_ = 31; return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public Builder clearFromAny() { if (fromAnyBuilder_ == null) { if (sumCase_ == 31) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 31) { sumCase_ = 0; sum_ = null; } fromAnyBuilder_.clear(); } return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder getFromAnyBuilder() { return getFromAnyFieldBuilder().getBuilder(); } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder() { if ((sumCase_ == 31) && (fromAnyBuilder_ != null)) { return fromAnyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 31) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder> getFromAnyFieldBuilder() { if (fromAnyBuilder_ == null) { if (!(sumCase_ == 31)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.getDefaultInstance(); } fromAnyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAnyOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr.FromAny) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 31; onChanged();; return fromAnyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeRepBuilder_; /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public boolean hasTypeRep() { return sumCase_ == 32; } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getTypeRep() { if (typeRepBuilder_ == null) { if (sumCase_ == 32) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } else { if (sumCase_ == 32) { return typeRepBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public Builder setTypeRep(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeRepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { typeRepBuilder_.setMessage(value); } sumCase_ = 32; return this; } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public Builder setTypeRep( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeRepBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { typeRepBuilder_.setMessage(builderForValue.build()); } sumCase_ = 32; return this; } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public Builder mergeTypeRep(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeRepBuilder_ == null) { if (sumCase_ == 32 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 32) { typeRepBuilder_.mergeFrom(value); } typeRepBuilder_.setMessage(value); } sumCase_ = 32; return this; } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public Builder clearTypeRep() { if (typeRepBuilder_ == null) { if (sumCase_ == 32) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 32) { sumCase_ = 0; sum_ = null; } typeRepBuilder_.clear(); } return this; } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeRepBuilder() { return getTypeRepFieldBuilder().getBuilder(); } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeRepOrBuilder() { if ((sumCase_ == 32) && (typeRepBuilder_ != null)) { return typeRepBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 32) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32[json_name = "typeRep"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeRepFieldBuilder() { if (typeRepBuilder_ == null) { if (!(sumCase_ == 32)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance(); } typeRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Type) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 32; onChanged();; return typeRepBuilder_; } @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:daml_lf_1.Expr) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Expr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Expr(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Expr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Expr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Expr(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Expr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CaseAltOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.CaseAlt) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ boolean hasDefault(); /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getDefault(); /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getDefaultOrBuilder(); /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ boolean hasVariant(); /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant getVariant(); /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder getVariantOrBuilder(); /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ int getPrimConValue(); /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon getPrimCon(); /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ boolean hasNil(); /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getNil(); /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getNilOrBuilder(); /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ boolean hasCons(); /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons getCons(); /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder getConsOrBuilder(); /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ boolean hasOptionalNone(); /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getOptionalNone(); /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getOptionalNoneOrBuilder(); /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ boolean hasOptionalSome(); /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome getOptionalSome(); /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder(); /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ boolean hasEnum(); /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum getEnum(); /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder getEnumOrBuilder(); /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ boolean hasBody(); /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.SumCase getSumCase(); } /** *
   * Case alternative
   * 
* * Protobuf type {@code daml_lf_1.CaseAlt} */ public static final class CaseAlt extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.CaseAlt) CaseAltOrBuilder { private static final long serialVersionUID = 0L; // Use CaseAlt.newBuilder() to construct. private CaseAlt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CaseAlt() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CaseAlt(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CaseAlt( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 24: { int rawValue = input.readEnum(); sumCase_ = 3; sum_ = rawValue; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } case 58: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } case 74: { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder subBuilder = null; if (sumCase_ == 9) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 9; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder.class); } public interface VariantOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.CaseAlt.Variant) com.google.protobuf.MessageOrBuilder { /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ boolean hasCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getConOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2[json_name = "variantStr"]; */ java.lang.String getVariantStr(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2[json_name = "variantStr"]; */ com.google.protobuf.ByteString getVariantStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 4[json_name = "variantInternedStr"]; */ int getVariantInternedStr(); /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3[json_name = "binderStr"]; */ java.lang.String getBinderStr(); /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3[json_name = "binderStr"]; */ com.google.protobuf.ByteString getBinderStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 5[json_name = "binderInternedStr"]; */ int getBinderInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.VariantCase getVariantCase(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.BinderCase getBinderCase(); } /** *
     * Variant pattern
     * 
* * Protobuf type {@code daml_lf_1.CaseAlt.Variant} */ public static final class Variant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.CaseAlt.Variant) VariantOrBuilder { private static final long serialVersionUID = 0L; // Use Variant.newBuilder() to construct. private Variant(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Variant() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Variant(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Variant( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (con_ != null) { subBuilder = con_.toBuilder(); } con_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(con_); con_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); variantCase_ = 2; variant_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); binderCase_ = 3; binder_ = s; break; } case 32: { variantCase_ = 4; variant_ = input.readInt32(); break; } case 40: { binderCase_ = 5; binder_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder.class); } private int variantCase_ = 0; private java.lang.Object variant_; public enum VariantCase implements com.google.protobuf.Internal.EnumLite { VARIANT_STR(2), VARIANT_INTERNED_STR(4), VARIANT_NOT_SET(0); private final int value; private VariantCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VariantCase valueOf(int value) { return forNumber(value); } public static VariantCase forNumber(int value) { switch (value) { case 2: return VARIANT_STR; case 4: return VARIANT_INTERNED_STR; case 0: return VARIANT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VariantCase getVariantCase() { return VariantCase.forNumber( variantCase_); } private int binderCase_ = 0; private java.lang.Object binder_; public enum BinderCase implements com.google.protobuf.Internal.EnumLite { BINDER_STR(3), BINDER_INTERNED_STR(5), BINDER_NOT_SET(0); private final int value; private BinderCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BinderCase valueOf(int value) { return forNumber(value); } public static BinderCase forNumber(int value) { switch (value) { case 3: return BINDER_STR; case 5: return BINDER_INTERNED_STR; case 0: return BINDER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public BinderCase getBinderCase() { return BinderCase.forNumber( binderCase_); } public static final int CON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName con_; /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public boolean hasCon() { return con_ != null; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getCon() { return con_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : con_; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { return getCon(); } public static final int VARIANT_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2[json_name = "variantStr"]; */ public java.lang.String getVariantStr() { java.lang.Object ref = ""; if (variantCase_ == 2) { ref = variant_; } 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(); if (variantCase_ == 2) { variant_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2[json_name = "variantStr"]; */ public com.google.protobuf.ByteString getVariantStrBytes() { java.lang.Object ref = ""; if (variantCase_ == 2) { ref = variant_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (variantCase_ == 2) { variant_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VARIANT_INTERNED_STR_FIELD_NUMBER = 4; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 4[json_name = "variantInternedStr"]; */ public int getVariantInternedStr() { if (variantCase_ == 4) { return (java.lang.Integer) variant_; } return 0; } public static final int BINDER_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3[json_name = "binderStr"]; */ public java.lang.String getBinderStr() { java.lang.Object ref = ""; if (binderCase_ == 3) { ref = binder_; } 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(); if (binderCase_ == 3) { binder_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3[json_name = "binderStr"]; */ public com.google.protobuf.ByteString getBinderStrBytes() { java.lang.Object ref = ""; if (binderCase_ == 3) { ref = binder_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (binderCase_ == 3) { binder_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BINDER_INTERNED_STR_FIELD_NUMBER = 5; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 5[json_name = "binderInternedStr"]; */ public int getBinderInternedStr() { if (binderCase_ == 5) { return (java.lang.Integer) binder_; } return 0; } 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 (con_ != null) { output.writeMessage(1, getCon()); } if (variantCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, variant_); } if (binderCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, binder_); } if (variantCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) variant_)); } if (binderCase_ == 5) { output.writeInt32( 5, (int)((java.lang.Integer) binder_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (con_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCon()); } if (variantCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, variant_); } if (binderCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, binder_); } if (variantCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) variant_)); } if (binderCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 5, (int)((java.lang.Integer) binder_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant other = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) obj; if (hasCon() != other.hasCon()) return false; if (hasCon()) { if (!getCon() .equals(other.getCon())) return false; } if (!getVariantCase().equals(other.getVariantCase())) return false; switch (variantCase_) { case 2: if (!getVariantStr() .equals(other.getVariantStr())) return false; break; case 4: if (getVariantInternedStr() != other.getVariantInternedStr()) return false; break; case 0: default: } if (!getBinderCase().equals(other.getBinderCase())) return false; switch (binderCase_) { case 3: if (!getBinderStr() .equals(other.getBinderStr())) return false; break; case 5: if (getBinderInternedStr() != other.getBinderInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCon()) { hash = (37 * hash) + CON_FIELD_NUMBER; hash = (53 * hash) + getCon().hashCode(); } switch (variantCase_) { case 2: hash = (37 * hash) + VARIANT_STR_FIELD_NUMBER; hash = (53 * hash) + getVariantStr().hashCode(); break; case 4: hash = (37 * hash) + VARIANT_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVariantInternedStr(); break; case 0: default: } switch (binderCase_) { case 3: hash = (37 * hash) + BINDER_STR_FIELD_NUMBER; hash = (53 * hash) + getBinderStr().hashCode(); break; case 5: hash = (37 * hash) + BINDER_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getBinderInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant 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; } /** *
       * Variant pattern
       * 
* * Protobuf type {@code daml_lf_1.CaseAlt.Variant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.CaseAlt.Variant) com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (conBuilder_ == null) { con_ = null; } else { con_ = null; conBuilder_ = null; } variantCase_ = 0; variant_ = null; binderCase_ = 0; binder_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant build() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant result = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant(this); if (conBuilder_ == null) { result.con_ = con_; } else { result.con_ = conBuilder_.build(); } if (variantCase_ == 2) { result.variant_ = variant_; } if (variantCase_ == 4) { result.variant_ = variant_; } if (binderCase_ == 3) { result.binder_ = binder_; } if (binderCase_ == 5) { result.binder_ = binder_; } result.variantCase_ = variantCase_; result.binderCase_ = binderCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance()) return this; if (other.hasCon()) { mergeCon(other.getCon()); } switch (other.getVariantCase()) { case VARIANT_STR: { variantCase_ = 2; variant_ = other.variant_; onChanged(); break; } case VARIANT_INTERNED_STR: { setVariantInternedStr(other.getVariantInternedStr()); break; } case VARIANT_NOT_SET: { break; } } switch (other.getBinderCase()) { case BINDER_STR: { binderCase_ = 3; binder_ = other.binder_; onChanged(); break; } case BINDER_INTERNED_STR: { setBinderInternedStr(other.getBinderInternedStr()); break; } case BINDER_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int variantCase_ = 0; private java.lang.Object variant_; public VariantCase getVariantCase() { return VariantCase.forNumber( variantCase_); } public Builder clearVariant() { variantCase_ = 0; variant_ = null; onChanged(); return this; } private int binderCase_ = 0; private java.lang.Object binder_; public BinderCase getBinderCase() { return BinderCase.forNumber( binderCase_); } public Builder clearBinder() { binderCase_ = 0; binder_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName con_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> conBuilder_; /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public boolean hasCon() { return conBuilder_ != null || con_ != null; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getCon() { if (conBuilder_ == null) { return con_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : con_; } else { return conBuilder_.getMessage(); } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder setCon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (conBuilder_ == null) { if (value == null) { throw new NullPointerException(); } con_ = value; onChanged(); } else { conBuilder_.setMessage(value); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder setCon( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (conBuilder_ == null) { con_ = builderForValue.build(); onChanged(); } else { conBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder mergeCon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (conBuilder_ == null) { if (con_ != null) { con_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(con_).mergeFrom(value).buildPartial(); } else { con_ = value; } onChanged(); } else { conBuilder_.mergeFrom(value); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder clearCon() { if (conBuilder_ == null) { con_ = null; onChanged(); } else { con_ = null; conBuilder_ = null; } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getConBuilder() { onChanged(); return getConFieldBuilder().getBuilder(); } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { if (conBuilder_ != null) { return conBuilder_.getMessageOrBuilder(); } else { return con_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : con_; } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getCon(), getParentForChildren(), isClean()); con_ = null; } return conBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2[json_name = "variantStr"]; */ public java.lang.String getVariantStr() { java.lang.Object ref = ""; if (variantCase_ == 2) { ref = variant_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (variantCase_ == 2) { variant_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2[json_name = "variantStr"]; */ public com.google.protobuf.ByteString getVariantStrBytes() { java.lang.Object ref = ""; if (variantCase_ == 2) { ref = variant_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (variantCase_ == 2) { variant_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2[json_name = "variantStr"]; */ public Builder setVariantStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } variantCase_ = 2; variant_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2[json_name = "variantStr"]; */ public Builder clearVariantStr() { if (variantCase_ == 2) { variantCase_ = 0; variant_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2[json_name = "variantStr"]; */ public Builder setVariantStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); variantCase_ = 2; variant_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 4[json_name = "variantInternedStr"]; */ public int getVariantInternedStr() { if (variantCase_ == 4) { return (java.lang.Integer) variant_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 4[json_name = "variantInternedStr"]; */ public Builder setVariantInternedStr(int value) { variantCase_ = 4; variant_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 4[json_name = "variantInternedStr"]; */ public Builder clearVariantInternedStr() { if (variantCase_ == 4) { variantCase_ = 0; variant_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3[json_name = "binderStr"]; */ public java.lang.String getBinderStr() { java.lang.Object ref = ""; if (binderCase_ == 3) { ref = binder_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (binderCase_ == 3) { binder_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3[json_name = "binderStr"]; */ public com.google.protobuf.ByteString getBinderStrBytes() { java.lang.Object ref = ""; if (binderCase_ == 3) { ref = binder_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (binderCase_ == 3) { binder_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3[json_name = "binderStr"]; */ public Builder setBinderStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } binderCase_ = 3; binder_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3[json_name = "binderStr"]; */ public Builder clearBinderStr() { if (binderCase_ == 3) { binderCase_ = 0; binder_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3[json_name = "binderStr"]; */ public Builder setBinderStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); binderCase_ = 3; binder_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 5[json_name = "binderInternedStr"]; */ public int getBinderInternedStr() { if (binderCase_ == 5) { return (java.lang.Integer) binder_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 5[json_name = "binderInternedStr"]; */ public Builder setBinderInternedStr(int value) { binderCase_ = 5; binder_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 5[json_name = "binderInternedStr"]; */ public Builder clearBinderInternedStr() { if (binderCase_ == 5) { binderCase_ = 0; binder_ = null; 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:daml_lf_1.CaseAlt.Variant) } // @@protoc_insertion_point(class_scope:daml_lf_1.CaseAlt.Variant) private static final com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Variant parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Variant(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.CaseAlt.Enum) com.google.protobuf.MessageOrBuilder { /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ boolean hasCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getConOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ java.lang.String getConstructorStr(); /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ com.google.protobuf.ByteString getConstructorStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 3[json_name = "constructorInternedStr"]; */ int getConstructorInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.ConstructorCase getConstructorCase(); } /** *
     * Enum pattern
     * *Available in versions >= 1.6*
     * 
* * Protobuf type {@code daml_lf_1.CaseAlt.Enum} */ public static final class Enum extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.CaseAlt.Enum) EnumOrBuilder { private static final long serialVersionUID = 0L; // Use Enum.newBuilder() to construct. private Enum(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Enum() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Enum(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Enum( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (con_ != null) { subBuilder = con_.toBuilder(); } con_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(con_); con_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); constructorCase_ = 2; constructor_ = s; break; } case 24: { constructorCase_ = 3; constructor_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder.class); } private int constructorCase_ = 0; private java.lang.Object constructor_; public enum ConstructorCase implements com.google.protobuf.Internal.EnumLite { CONSTRUCTOR_STR(2), CONSTRUCTOR_INTERNED_STR(3), CONSTRUCTOR_NOT_SET(0); private final int value; private ConstructorCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConstructorCase valueOf(int value) { return forNumber(value); } public static ConstructorCase forNumber(int value) { switch (value) { case 2: return CONSTRUCTOR_STR; case 3: return CONSTRUCTOR_INTERNED_STR; case 0: return CONSTRUCTOR_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ConstructorCase getConstructorCase() { return ConstructorCase.forNumber( constructorCase_); } public static final int CON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName con_; /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public boolean hasCon() { return con_ != null; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getCon() { return con_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : con_; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { return getCon(); } public static final int CONSTRUCTOR_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public java.lang.String getConstructorStr() { java.lang.Object ref = ""; if (constructorCase_ == 2) { ref = constructor_; } 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(); if (constructorCase_ == 2) { constructor_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public com.google.protobuf.ByteString getConstructorStrBytes() { java.lang.Object ref = ""; if (constructorCase_ == 2) { ref = constructor_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (constructorCase_ == 2) { constructor_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONSTRUCTOR_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 3[json_name = "constructorInternedStr"]; */ public int getConstructorInternedStr() { if (constructorCase_ == 3) { return (java.lang.Integer) constructor_; } return 0; } 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 (con_ != null) { output.writeMessage(1, getCon()); } if (constructorCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constructor_); } if (constructorCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) constructor_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (con_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCon()); } if (constructorCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constructor_); } if (constructorCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) constructor_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum other = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) obj; if (hasCon() != other.hasCon()) return false; if (hasCon()) { if (!getCon() .equals(other.getCon())) return false; } if (!getConstructorCase().equals(other.getConstructorCase())) return false; switch (constructorCase_) { case 2: if (!getConstructorStr() .equals(other.getConstructorStr())) return false; break; case 3: if (getConstructorInternedStr() != other.getConstructorInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCon()) { hash = (37 * hash) + CON_FIELD_NUMBER; hash = (53 * hash) + getCon().hashCode(); } switch (constructorCase_) { case 2: hash = (37 * hash) + CONSTRUCTOR_STR_FIELD_NUMBER; hash = (53 * hash) + getConstructorStr().hashCode(); break; case 3: hash = (37 * hash) + CONSTRUCTOR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getConstructorInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum 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; } /** *
       * Enum pattern
       * *Available in versions >= 1.6*
       * 
* * Protobuf type {@code daml_lf_1.CaseAlt.Enum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.CaseAlt.Enum) com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (conBuilder_ == null) { con_ = null; } else { con_ = null; conBuilder_ = null; } constructorCase_ = 0; constructor_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum build() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum result = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum(this); if (conBuilder_ == null) { result.con_ = con_; } else { result.con_ = conBuilder_.build(); } if (constructorCase_ == 2) { result.constructor_ = constructor_; } if (constructorCase_ == 3) { result.constructor_ = constructor_; } result.constructorCase_ = constructorCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance()) return this; if (other.hasCon()) { mergeCon(other.getCon()); } switch (other.getConstructorCase()) { case CONSTRUCTOR_STR: { constructorCase_ = 2; constructor_ = other.constructor_; onChanged(); break; } case CONSTRUCTOR_INTERNED_STR: { setConstructorInternedStr(other.getConstructorInternedStr()); break; } case CONSTRUCTOR_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int constructorCase_ = 0; private java.lang.Object constructor_; public ConstructorCase getConstructorCase() { return ConstructorCase.forNumber( constructorCase_); } public Builder clearConstructor() { constructorCase_ = 0; constructor_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName con_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> conBuilder_; /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public boolean hasCon() { return conBuilder_ != null || con_ != null; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getCon() { if (conBuilder_ == null) { return con_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : con_; } else { return conBuilder_.getMessage(); } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder setCon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (conBuilder_ == null) { if (value == null) { throw new NullPointerException(); } con_ = value; onChanged(); } else { conBuilder_.setMessage(value); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder setCon( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (conBuilder_ == null) { con_ = builderForValue.build(); onChanged(); } else { conBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder mergeCon(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (conBuilder_ == null) { if (con_ != null) { con_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(con_).mergeFrom(value).buildPartial(); } else { con_ = value; } onChanged(); } else { conBuilder_.mergeFrom(value); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public Builder clearCon() { if (conBuilder_ == null) { con_ = null; onChanged(); } else { con_ = null; conBuilder_ = null; } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getConBuilder() { onChanged(); return getConFieldBuilder().getBuilder(); } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { if (conBuilder_ != null) { return conBuilder_.getMessageOrBuilder(); } else { return con_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : con_; } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1[json_name = "con"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getCon(), getParentForChildren(), isClean()); con_ = null; } return conBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public java.lang.String getConstructorStr() { java.lang.Object ref = ""; if (constructorCase_ == 2) { ref = constructor_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (constructorCase_ == 2) { constructor_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public com.google.protobuf.ByteString getConstructorStrBytes() { java.lang.Object ref = ""; if (constructorCase_ == 2) { ref = constructor_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (constructorCase_ == 2) { constructor_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public Builder setConstructorStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } constructorCase_ = 2; constructor_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public Builder clearConstructorStr() { if (constructorCase_ == 2) { constructorCase_ = 0; constructor_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2[json_name = "constructorStr"]; */ public Builder setConstructorStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); constructorCase_ = 2; constructor_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 3[json_name = "constructorInternedStr"]; */ public int getConstructorInternedStr() { if (constructorCase_ == 3) { return (java.lang.Integer) constructor_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 3[json_name = "constructorInternedStr"]; */ public Builder setConstructorInternedStr(int value) { constructorCase_ = 3; constructor_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 3[json_name = "constructorInternedStr"]; */ public Builder clearConstructorInternedStr() { if (constructorCase_ == 3) { constructorCase_ = 0; constructor_ = null; 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:daml_lf_1.CaseAlt.Enum) } // @@protoc_insertion_point(class_scope:daml_lf_1.CaseAlt.Enum) private static final com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Enum parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Enum(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.CaseAlt.Cons) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ java.lang.String getVarHeadStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ com.google.protobuf.ByteString getVarHeadStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 3[json_name = "varHeadInternedStr"]; */ int getVarHeadInternedStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ java.lang.String getVarTailStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ com.google.protobuf.ByteString getVarTailStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 4[json_name = "varTailInternedStr"]; */ int getVarTailInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.VarHeadCase getVarHeadCase(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.VarTailCase getVarTailCase(); } /** *
     * Non empty list pattern
     * 
* * Protobuf type {@code daml_lf_1.CaseAlt.Cons} */ public static final class Cons extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.CaseAlt.Cons) ConsOrBuilder { private static final long serialVersionUID = 0L; // Use Cons.newBuilder() to construct. private Cons(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cons() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Cons(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Cons( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); varHeadCase_ = 1; varHead_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); varTailCase_ = 2; varTail_ = s; break; } case 24: { varHeadCase_ = 3; varHead_ = input.readInt32(); break; } case 32: { varTailCase_ = 4; varTail_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder.class); } private int varHeadCase_ = 0; private java.lang.Object varHead_; public enum VarHeadCase implements com.google.protobuf.Internal.EnumLite { VAR_HEAD_STR(1), VAR_HEAD_INTERNED_STR(3), VARHEAD_NOT_SET(0); private final int value; private VarHeadCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VarHeadCase valueOf(int value) { return forNumber(value); } public static VarHeadCase forNumber(int value) { switch (value) { case 1: return VAR_HEAD_STR; case 3: return VAR_HEAD_INTERNED_STR; case 0: return VARHEAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VarHeadCase getVarHeadCase() { return VarHeadCase.forNumber( varHeadCase_); } private int varTailCase_ = 0; private java.lang.Object varTail_; public enum VarTailCase implements com.google.protobuf.Internal.EnumLite { VAR_TAIL_STR(2), VAR_TAIL_INTERNED_STR(4), VARTAIL_NOT_SET(0); private final int value; private VarTailCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VarTailCase valueOf(int value) { return forNumber(value); } public static VarTailCase forNumber(int value) { switch (value) { case 2: return VAR_TAIL_STR; case 4: return VAR_TAIL_INTERNED_STR; case 0: return VARTAIL_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VarTailCase getVarTailCase() { return VarTailCase.forNumber( varTailCase_); } public static final int VAR_HEAD_STR_FIELD_NUMBER = 1; /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public java.lang.String getVarHeadStr() { java.lang.Object ref = ""; if (varHeadCase_ == 1) { ref = varHead_; } 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(); if (varHeadCase_ == 1) { varHead_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public com.google.protobuf.ByteString getVarHeadStrBytes() { java.lang.Object ref = ""; if (varHeadCase_ == 1) { ref = varHead_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varHeadCase_ == 1) { varHead_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_HEAD_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 3[json_name = "varHeadInternedStr"]; */ public int getVarHeadInternedStr() { if (varHeadCase_ == 3) { return (java.lang.Integer) varHead_; } return 0; } public static final int VAR_TAIL_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public java.lang.String getVarTailStr() { java.lang.Object ref = ""; if (varTailCase_ == 2) { ref = varTail_; } 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(); if (varTailCase_ == 2) { varTail_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public com.google.protobuf.ByteString getVarTailStrBytes() { java.lang.Object ref = ""; if (varTailCase_ == 2) { ref = varTail_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varTailCase_ == 2) { varTail_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_TAIL_INTERNED_STR_FIELD_NUMBER = 4; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 4[json_name = "varTailInternedStr"]; */ public int getVarTailInternedStr() { if (varTailCase_ == 4) { return (java.lang.Integer) varTail_; } return 0; } 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 (varHeadCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, varHead_); } if (varTailCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, varTail_); } if (varHeadCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) varHead_)); } if (varTailCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) varTail_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varHeadCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, varHead_); } if (varTailCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, varTail_); } if (varHeadCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) varHead_)); } if (varTailCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) varTail_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons other = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) obj; if (!getVarHeadCase().equals(other.getVarHeadCase())) return false; switch (varHeadCase_) { case 1: if (!getVarHeadStr() .equals(other.getVarHeadStr())) return false; break; case 3: if (getVarHeadInternedStr() != other.getVarHeadInternedStr()) return false; break; case 0: default: } if (!getVarTailCase().equals(other.getVarTailCase())) return false; switch (varTailCase_) { case 2: if (!getVarTailStr() .equals(other.getVarTailStr())) return false; break; case 4: if (getVarTailInternedStr() != other.getVarTailInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (varHeadCase_) { case 1: hash = (37 * hash) + VAR_HEAD_STR_FIELD_NUMBER; hash = (53 * hash) + getVarHeadStr().hashCode(); break; case 3: hash = (37 * hash) + VAR_HEAD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarHeadInternedStr(); break; case 0: default: } switch (varTailCase_) { case 2: hash = (37 * hash) + VAR_TAIL_STR_FIELD_NUMBER; hash = (53 * hash) + getVarTailStr().hashCode(); break; case 4: hash = (37 * hash) + VAR_TAIL_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarTailInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons 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; } /** *
       * Non empty list pattern
       * 
* * Protobuf type {@code daml_lf_1.CaseAlt.Cons} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.CaseAlt.Cons) com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); varHeadCase_ = 0; varHead_ = null; varTailCase_ = 0; varTail_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons build() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons result = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons(this); if (varHeadCase_ == 1) { result.varHead_ = varHead_; } if (varHeadCase_ == 3) { result.varHead_ = varHead_; } if (varTailCase_ == 2) { result.varTail_ = varTail_; } if (varTailCase_ == 4) { result.varTail_ = varTail_; } result.varHeadCase_ = varHeadCase_; result.varTailCase_ = varTailCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance()) return this; switch (other.getVarHeadCase()) { case VAR_HEAD_STR: { varHeadCase_ = 1; varHead_ = other.varHead_; onChanged(); break; } case VAR_HEAD_INTERNED_STR: { setVarHeadInternedStr(other.getVarHeadInternedStr()); break; } case VARHEAD_NOT_SET: { break; } } switch (other.getVarTailCase()) { case VAR_TAIL_STR: { varTailCase_ = 2; varTail_ = other.varTail_; onChanged(); break; } case VAR_TAIL_INTERNED_STR: { setVarTailInternedStr(other.getVarTailInternedStr()); break; } case VARTAIL_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int varHeadCase_ = 0; private java.lang.Object varHead_; public VarHeadCase getVarHeadCase() { return VarHeadCase.forNumber( varHeadCase_); } public Builder clearVarHead() { varHeadCase_ = 0; varHead_ = null; onChanged(); return this; } private int varTailCase_ = 0; private java.lang.Object varTail_; public VarTailCase getVarTailCase() { return VarTailCase.forNumber( varTailCase_); } public Builder clearVarTail() { varTailCase_ = 0; varTail_ = null; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public java.lang.String getVarHeadStr() { java.lang.Object ref = ""; if (varHeadCase_ == 1) { ref = varHead_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (varHeadCase_ == 1) { varHead_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public com.google.protobuf.ByteString getVarHeadStrBytes() { java.lang.Object ref = ""; if (varHeadCase_ == 1) { ref = varHead_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varHeadCase_ == 1) { varHead_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public Builder setVarHeadStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varHeadCase_ = 1; varHead_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public Builder clearVarHeadStr() { if (varHeadCase_ == 1) { varHeadCase_ = 0; varHead_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1[json_name = "varHeadStr"]; */ public Builder setVarHeadStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varHeadCase_ = 1; varHead_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 3[json_name = "varHeadInternedStr"]; */ public int getVarHeadInternedStr() { if (varHeadCase_ == 3) { return (java.lang.Integer) varHead_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 3[json_name = "varHeadInternedStr"]; */ public Builder setVarHeadInternedStr(int value) { varHeadCase_ = 3; varHead_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 3[json_name = "varHeadInternedStr"]; */ public Builder clearVarHeadInternedStr() { if (varHeadCase_ == 3) { varHeadCase_ = 0; varHead_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public java.lang.String getVarTailStr() { java.lang.Object ref = ""; if (varTailCase_ == 2) { ref = varTail_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (varTailCase_ == 2) { varTail_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public com.google.protobuf.ByteString getVarTailStrBytes() { java.lang.Object ref = ""; if (varTailCase_ == 2) { ref = varTail_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varTailCase_ == 2) { varTail_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public Builder setVarTailStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varTailCase_ = 2; varTail_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public Builder clearVarTailStr() { if (varTailCase_ == 2) { varTailCase_ = 0; varTail_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2[json_name = "varTailStr"]; */ public Builder setVarTailStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varTailCase_ = 2; varTail_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 4[json_name = "varTailInternedStr"]; */ public int getVarTailInternedStr() { if (varTailCase_ == 4) { return (java.lang.Integer) varTail_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 4[json_name = "varTailInternedStr"]; */ public Builder setVarTailInternedStr(int value) { varTailCase_ = 4; varTail_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 4[json_name = "varTailInternedStr"]; */ public Builder clearVarTailInternedStr() { if (varTailCase_ == 4) { varTailCase_ = 0; varTail_ = null; 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:daml_lf_1.CaseAlt.Cons) } // @@protoc_insertion_point(class_scope:daml_lf_1.CaseAlt.Cons) private static final com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cons parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Cons(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalSomeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.CaseAlt.OptionalSome) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ java.lang.String getVarBodyStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ com.google.protobuf.ByteString getVarBodyStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 2[json_name = "varBodyInternedStr"]; */ int getVarBodyInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.VarBodyCase getVarBodyCase(); } /** *
     * Non empty option patterm
     * *Available in versions >= 1.1*
     * 
* * Protobuf type {@code daml_lf_1.CaseAlt.OptionalSome} */ public static final class OptionalSome extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.CaseAlt.OptionalSome) OptionalSomeOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalSome.newBuilder() to construct. private OptionalSome(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalSome() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalSome(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalSome( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); varBodyCase_ = 1; varBody_ = s; break; } case 16: { varBodyCase_ = 2; varBody_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder.class); } private int varBodyCase_ = 0; private java.lang.Object varBody_; public enum VarBodyCase implements com.google.protobuf.Internal.EnumLite { VAR_BODY_STR(1), VAR_BODY_INTERNED_STR(2), VARBODY_NOT_SET(0); private final int value; private VarBodyCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VarBodyCase valueOf(int value) { return forNumber(value); } public static VarBodyCase forNumber(int value) { switch (value) { case 1: return VAR_BODY_STR; case 2: return VAR_BODY_INTERNED_STR; case 0: return VARBODY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VarBodyCase getVarBodyCase() { return VarBodyCase.forNumber( varBodyCase_); } public static final int VAR_BODY_STR_FIELD_NUMBER = 1; /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public java.lang.String getVarBodyStr() { java.lang.Object ref = ""; if (varBodyCase_ == 1) { ref = varBody_; } 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(); if (varBodyCase_ == 1) { varBody_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public com.google.protobuf.ByteString getVarBodyStrBytes() { java.lang.Object ref = ""; if (varBodyCase_ == 1) { ref = varBody_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varBodyCase_ == 1) { varBody_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VAR_BODY_INTERNED_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 2[json_name = "varBodyInternedStr"]; */ public int getVarBodyInternedStr() { if (varBodyCase_ == 2) { return (java.lang.Integer) varBody_; } return 0; } 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 (varBodyCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, varBody_); } if (varBodyCase_ == 2) { output.writeInt32( 2, (int)((java.lang.Integer) varBody_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varBodyCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, varBody_); } if (varBodyCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 2, (int)((java.lang.Integer) varBody_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome other = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) obj; if (!getVarBodyCase().equals(other.getVarBodyCase())) return false; switch (varBodyCase_) { case 1: if (!getVarBodyStr() .equals(other.getVarBodyStr())) return false; break; case 2: if (getVarBodyInternedStr() != other.getVarBodyInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (varBodyCase_) { case 1: hash = (37 * hash) + VAR_BODY_STR_FIELD_NUMBER; hash = (53 * hash) + getVarBodyStr().hashCode(); break; case 2: hash = (37 * hash) + VAR_BODY_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarBodyInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome 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; } /** *
       * Non empty option patterm
       * *Available in versions >= 1.1*
       * 
* * Protobuf type {@code daml_lf_1.CaseAlt.OptionalSome} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.CaseAlt.OptionalSome) com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); varBodyCase_ = 0; varBody_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome build() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome result = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome(this); if (varBodyCase_ == 1) { result.varBody_ = varBody_; } if (varBodyCase_ == 2) { result.varBody_ = varBody_; } result.varBodyCase_ = varBodyCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance()) return this; switch (other.getVarBodyCase()) { case VAR_BODY_STR: { varBodyCase_ = 1; varBody_ = other.varBody_; onChanged(); break; } case VAR_BODY_INTERNED_STR: { setVarBodyInternedStr(other.getVarBodyInternedStr()); break; } case VARBODY_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int varBodyCase_ = 0; private java.lang.Object varBody_; public VarBodyCase getVarBodyCase() { return VarBodyCase.forNumber( varBodyCase_); } public Builder clearVarBody() { varBodyCase_ = 0; varBody_ = null; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public java.lang.String getVarBodyStr() { java.lang.Object ref = ""; if (varBodyCase_ == 1) { ref = varBody_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (varBodyCase_ == 1) { varBody_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public com.google.protobuf.ByteString getVarBodyStrBytes() { java.lang.Object ref = ""; if (varBodyCase_ == 1) { ref = varBody_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (varBodyCase_ == 1) { varBody_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public Builder setVarBodyStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varBodyCase_ = 1; varBody_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public Builder clearVarBodyStr() { if (varBodyCase_ == 1) { varBodyCase_ = 0; varBody_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1[json_name = "varBodyStr"]; */ public Builder setVarBodyStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varBodyCase_ = 1; varBody_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 2[json_name = "varBodyInternedStr"]; */ public int getVarBodyInternedStr() { if (varBodyCase_ == 2) { return (java.lang.Integer) varBody_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 2[json_name = "varBodyInternedStr"]; */ public Builder setVarBodyInternedStr(int value) { varBodyCase_ = 2; varBody_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 2[json_name = "varBodyInternedStr"]; */ public Builder clearVarBodyInternedStr() { if (varBodyCase_ == 2) { varBodyCase_ = 0; varBody_ = null; 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:daml_lf_1.CaseAlt.OptionalSome) } // @@protoc_insertion_point(class_scope:daml_lf_1.CaseAlt.OptionalSome) private static final com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalSome parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalSome(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { DEFAULT(1), VARIANT(2), PRIM_CON(3), NIL(4), CONS(5), OPTIONAL_NONE(7), OPTIONAL_SOME(8), ENUM(9), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return DEFAULT; case 2: return VARIANT; case 3: return PRIM_CON; case 4: return NIL; case 5: return CONS; case 7: return OPTIONAL_NONE; case 8: return OPTIONAL_SOME; case 9: return ENUM; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int DEFAULT_FIELD_NUMBER = 1; /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public boolean hasDefault() { return sumCase_ == 1; } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getDefault() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getDefaultOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 2; /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public boolean hasVariant() { return sumCase_ == 2; } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant getVariant() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder getVariantOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } public static final int PRIM_CON_FIELD_NUMBER = 3; /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public int getPrimConValue() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon result = com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.CON_UNIT; } public static final int NIL_FIELD_NUMBER = 4; /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public boolean hasNil() { return sumCase_ == 4; } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getNil() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getNilOrBuilder() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int CONS_FIELD_NUMBER = 5; /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public boolean hasCons() { return sumCase_ == 5; } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons getCons() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder getConsOrBuilder() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } public static final int OPTIONAL_NONE_FIELD_NUMBER = 7; /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public boolean hasOptionalNone() { return sumCase_ == 7; } /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getOptionalNone() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getOptionalNoneOrBuilder() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int OPTIONAL_SOME_FIELD_NUMBER = 8; /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public boolean hasOptionalSome() { return sumCase_ == 8; } /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome getOptionalSome() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } /** *
     * *Available in versions >= 1.1*
     * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 9; /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public boolean hasEnum() { return sumCase_ == 9; } /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum getEnum() { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder getEnumOrBuilder() { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } public static final int BODY_FIELD_NUMBER = 6; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_); } if (sumCase_ == 3) { output.writeEnum(3, ((java.lang.Integer) sum_)); } if (sumCase_ == 4) { output.writeMessage(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_); } if (body_ != null) { output.writeMessage(6, getBody()); } if (sumCase_ == 7) { output.writeMessage(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, ((java.lang.Integer) sum_)); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getBody()); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt other = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt) obj; if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getDefault() .equals(other.getDefault())) return false; break; case 2: if (!getVariant() .equals(other.getVariant())) return false; break; case 3: if (getPrimConValue() != other.getPrimConValue()) return false; break; case 4: if (!getNil() .equals(other.getNil())) return false; break; case 5: if (!getCons() .equals(other.getCons())) return false; break; case 7: if (!getOptionalNone() .equals(other.getOptionalNone())) return false; break; case 8: if (!getOptionalSome() .equals(other.getOptionalSome())) return false; break; case 9: if (!getEnum() .equals(other.getEnum())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } switch (sumCase_) { case 1: hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); break; case 2: hash = (37 * hash) + VARIANT_FIELD_NUMBER; hash = (53 * hash) + getVariant().hashCode(); break; case 3: hash = (37 * hash) + PRIM_CON_FIELD_NUMBER; hash = (53 * hash) + getPrimConValue(); break; case 4: hash = (37 * hash) + NIL_FIELD_NUMBER; hash = (53 * hash) + getNil().hashCode(); break; case 5: hash = (37 * hash) + CONS_FIELD_NUMBER; hash = (53 * hash) + getCons().hashCode(); break; case 7: hash = (37 * hash) + OPTIONAL_NONE_FIELD_NUMBER; hash = (53 * hash) + getOptionalNone().hashCode(); break; case 8: hash = (37 * hash) + OPTIONAL_SOME_FIELD_NUMBER; hash = (53 * hash) + getOptionalSome().hashCode(); break; case 9: hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnum().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt 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; } /** *
     * Case alternative
     * 
* * Protobuf type {@code daml_lf_1.CaseAlt} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.CaseAlt) com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.class, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_CaseAlt_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt build() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt result = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt(this); if (sumCase_ == 1) { if (defaultBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = defaultBuilder_.build(); } } if (sumCase_ == 2) { if (variantBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = variantBuilder_.build(); } } if (sumCase_ == 3) { result.sum_ = sum_; } if (sumCase_ == 4) { if (nilBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = nilBuilder_.build(); } } if (sumCase_ == 5) { if (consBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = consBuilder_.build(); } } if (sumCase_ == 7) { if (optionalNoneBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = optionalNoneBuilder_.build(); } } if (sumCase_ == 8) { if (optionalSomeBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = optionalSomeBuilder_.build(); } } if (sumCase_ == 9) { if (enumBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = enumBuilder_.build(); } } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.getDefaultInstance()) return this; if (other.hasBody()) { mergeBody(other.getBody()); } switch (other.getSumCase()) { case DEFAULT: { mergeDefault(other.getDefault()); break; } case VARIANT: { mergeVariant(other.getVariant()); break; } case PRIM_CON: { setPrimConValue(other.getPrimConValue()); break; } case NIL: { mergeNil(other.getNil()); break; } case CONS: { mergeCons(other.getCons()); break; } case OPTIONAL_NONE: { mergeOptionalNone(other.getOptionalNone()); break; } case OPTIONAL_SOME: { mergeOptionalSome(other.getOptionalSome()); break; } case ENUM: { mergeEnum(other.getEnum()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> defaultBuilder_; /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public boolean hasDefault() { return sumCase_ == 1; } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getDefault() { if (defaultBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return defaultBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public Builder setDefault(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (defaultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { defaultBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public Builder setDefault( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (defaultBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { defaultBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public Builder mergeDefault(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (defaultBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { defaultBuilder_.mergeFrom(value); } defaultBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public Builder clearDefault() { if (defaultBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } defaultBuilder_.clear(); } return this; } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getDefaultBuilder() { return getDefaultFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getDefaultOrBuilder() { if ((sumCase_ == 1) && (defaultBuilder_ != null)) { return defaultBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit default = 1[json_name = "default"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getDefaultFieldBuilder() { if (defaultBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return defaultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder> variantBuilder_; /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public boolean hasVariant() { return sumCase_ == 2; } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant getVariant() { if (variantBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } else { if (sumCase_ == 2) { return variantBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public Builder setVariant(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant value) { if (variantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { variantBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public Builder setVariant( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder builderForValue) { if (variantBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { variantBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public Builder mergeVariant(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant value) { if (variantBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { variantBuilder_.mergeFrom(value); } variantBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public Builder clearVariant() { if (variantBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } variantBuilder_.clear(); } return this; } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder getVariantOrBuilder() { if ((sumCase_ == 2) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Variant variant = 2[json_name = "variant"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.VariantOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Variant) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return variantBuilder_; } /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public int getPrimConValue() { if (sumCase_ == 3) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public Builder setPrimConValue(int value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon result = com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon.CON_UNIT; } /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public Builder setPrimCon(com.digitalasset.daml_lf_1_7.DamlLf1.PrimCon value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 3; sum_ = value.getNumber(); onChanged(); return this; } /** * .daml_lf_1.PrimCon prim_con = 3[json_name = "primCon"]; */ public Builder clearPrimCon() { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> nilBuilder_; /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public boolean hasNil() { return sumCase_ == 4; } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getNil() { if (nilBuilder_ == null) { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 4) { return nilBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public Builder setNil(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (nilBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { nilBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public Builder setNil( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (nilBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { nilBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public Builder mergeNil(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (nilBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 4) { nilBuilder_.mergeFrom(value); } nilBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public Builder clearNil() { if (nilBuilder_ == null) { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; } nilBuilder_.clear(); } return this; } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getNilBuilder() { return getNilFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getNilOrBuilder() { if ((sumCase_ == 4) && (nilBuilder_ != null)) { return nilBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit nil = 4[json_name = "nil"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getNilFieldBuilder() { if (nilBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } nilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return nilBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder> consBuilder_; /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public boolean hasCons() { return sumCase_ == 5; } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons getCons() { if (consBuilder_ == null) { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } else { if (sumCase_ == 5) { return consBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public Builder setCons(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons value) { if (consBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { consBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public Builder setCons( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder builderForValue) { if (consBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { consBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public Builder mergeCons(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons value) { if (consBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { consBuilder_.mergeFrom(value); } consBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public Builder clearCons() { if (consBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } consBuilder_.clear(); } return this; } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder getConsBuilder() { return getConsFieldBuilder().getBuilder(); } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder getConsOrBuilder() { if ((sumCase_ == 5) && (consBuilder_ != null)) { return consBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Cons cons = 5[json_name = "cons"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder> getConsFieldBuilder() { if (consBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } consBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.ConsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Cons) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return consBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> optionalNoneBuilder_; /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public boolean hasOptionalNone() { return sumCase_ == 7; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 7) { return optionalNoneBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public Builder setOptionalNone(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (optionalNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalNoneBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public Builder setOptionalNone( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (optionalNoneBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalNoneBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public Builder mergeOptionalNone(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { optionalNoneBuilder_.mergeFrom(value); } optionalNoneBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public Builder clearOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } optionalNoneBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getOptionalNoneBuilder() { return getOptionalNoneFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getOptionalNoneOrBuilder() { if ((sumCase_ == 7) && (optionalNoneBuilder_ != null)) { return optionalNoneBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.Unit optional_none = 7[json_name = "optionalNone"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getOptionalNoneFieldBuilder() { if (optionalNoneBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } optionalNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return optionalNoneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder> optionalSomeBuilder_; /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public boolean hasOptionalSome() { return sumCase_ == 8; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome getOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } else { if (sumCase_ == 8) { return optionalSomeBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public Builder setOptionalSome(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalSomeBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public Builder setOptionalSome( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder builderForValue) { if (optionalSomeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalSomeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public Builder mergeOptionalSome(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 8) { optionalSomeBuilder_.mergeFrom(value); } optionalSomeBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public Builder clearOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; } optionalSomeBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder getOptionalSomeBuilder() { return getOptionalSomeFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if ((sumCase_ == 8) && (optionalSomeBuilder_ != null)) { return optionalSomeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.1*
       * 
* * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8[json_name = "optionalSome"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder> getOptionalSomeFieldBuilder() { if (optionalSomeBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } optionalSomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSomeOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.OptionalSome) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return optionalSomeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder> enumBuilder_; /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public boolean hasEnum() { return sumCase_ == 9; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum getEnum() { if (enumBuilder_ == null) { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } else { if (sumCase_ == 9) { return enumBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public Builder setEnum(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public Builder setEnum( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder builderForValue) { if (enumBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public Builder mergeEnum(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum value) { if (enumBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 9) { enumBuilder_.mergeFrom(value); } enumBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public Builder clearEnum() { if (enumBuilder_ == null) { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; } enumBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder getEnumOrBuilder() { if ((sumCase_ == 9) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.CaseAlt.Enum enum = 9[json_name = "enum"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.EnumOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Enum) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged();; return enumBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_1.Expr body = 6[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.CaseAlt) } // @@protoc_insertion_point(class_scope:daml_lf_1.CaseAlt) private static final com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CaseAlt parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CaseAlt(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CaseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Case) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ boolean hasScrut(); /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getScrut(); /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getScrutOrBuilder(); /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ java.util.List getAltsList(); /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt getAlts(int index); /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ int getAltsCount(); /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ java.util.List getAltsOrBuilderList(); /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder getAltsOrBuilder( int index); } /** * Protobuf type {@code daml_lf_1.Case} */ public static final class Case extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Case) CaseOrBuilder { private static final long serialVersionUID = 0L; // Use Case.newBuilder() to construct. private Case(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Case() { alts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Case(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Case( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (scrut_ != null) { subBuilder = scrut_.toBuilder(); } scrut_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scrut_); scrut_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { alts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } alts_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alts_ = java.util.Collections.unmodifiableList(alts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Case_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Case_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Case.class, com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder.class); } public static final int SCRUT_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr scrut_; /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public boolean hasScrut() { return scrut_ != null; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getScrut() { return scrut_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : scrut_; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getScrutOrBuilder() { return getScrut(); } public static final int ALTS_FIELD_NUMBER = 2; private java.util.List alts_; /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public java.util.List getAltsList() { return alts_; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public java.util.List getAltsOrBuilderList() { return alts_; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public int getAltsCount() { return alts_.size(); } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt getAlts(int index) { return alts_.get(index); } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder getAltsOrBuilder( int index) { return alts_.get(index); } 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 (scrut_ != null) { output.writeMessage(1, getScrut()); } for (int i = 0; i < alts_.size(); i++) { output.writeMessage(2, alts_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scrut_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getScrut()); } for (int i = 0; i < alts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, alts_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Case)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Case other = (com.digitalasset.daml_lf_1_7.DamlLf1.Case) obj; if (hasScrut() != other.hasScrut()) return false; if (hasScrut()) { if (!getScrut() .equals(other.getScrut())) return false; } if (!getAltsList() .equals(other.getAltsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasScrut()) { hash = (37 * hash) + SCRUT_FIELD_NUMBER; hash = (53 * hash) + getScrut().hashCode(); } if (getAltsCount() > 0) { hash = (37 * hash) + ALTS_FIELD_NUMBER; hash = (53 * hash) + getAltsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case 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.digitalasset.daml_lf_1_7.DamlLf1.Case parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case 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.digitalasset.daml_lf_1_7.DamlLf1.Case parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case 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.digitalasset.daml_lf_1_7.DamlLf1.Case 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; } /** * Protobuf type {@code daml_lf_1.Case} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Case) com.digitalasset.daml_lf_1_7.DamlLf1.CaseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Case_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Case_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Case.class, com.digitalasset.daml_lf_1_7.DamlLf1.Case.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Case.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAltsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (scrutBuilder_ == null) { scrut_ = null; } else { scrut_ = null; scrutBuilder_ = null; } if (altsBuilder_ == null) { alts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { altsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Case_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Case getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Case build() { com.digitalasset.daml_lf_1_7.DamlLf1.Case result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Case buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Case result = new com.digitalasset.daml_lf_1_7.DamlLf1.Case(this); int from_bitField0_ = bitField0_; if (scrutBuilder_ == null) { result.scrut_ = scrut_; } else { result.scrut_ = scrutBuilder_.build(); } if (altsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alts_ = java.util.Collections.unmodifiableList(alts_); bitField0_ = (bitField0_ & ~0x00000001); } result.alts_ = alts_; } else { result.alts_ = altsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Case) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Case)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Case other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Case.getDefaultInstance()) return this; if (other.hasScrut()) { mergeScrut(other.getScrut()); } if (altsBuilder_ == null) { if (!other.alts_.isEmpty()) { if (alts_.isEmpty()) { alts_ = other.alts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAltsIsMutable(); alts_.addAll(other.alts_); } onChanged(); } } else { if (!other.alts_.isEmpty()) { if (altsBuilder_.isEmpty()) { altsBuilder_.dispose(); altsBuilder_ = null; alts_ = other.alts_; bitField0_ = (bitField0_ & ~0x00000001); altsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAltsFieldBuilder() : null; } else { altsBuilder_.addAllMessages(other.alts_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Case parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Case) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr scrut_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> scrutBuilder_; /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public boolean hasScrut() { return scrutBuilder_ != null || scrut_ != null; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getScrut() { if (scrutBuilder_ == null) { return scrut_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : scrut_; } else { return scrutBuilder_.getMessage(); } } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public Builder setScrut(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (scrutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scrut_ = value; onChanged(); } else { scrutBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public Builder setScrut( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (scrutBuilder_ == null) { scrut_ = builderForValue.build(); onChanged(); } else { scrutBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public Builder mergeScrut(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (scrutBuilder_ == null) { if (scrut_ != null) { scrut_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(scrut_).mergeFrom(value).buildPartial(); } else { scrut_ = value; } onChanged(); } else { scrutBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public Builder clearScrut() { if (scrutBuilder_ == null) { scrut_ = null; onChanged(); } else { scrut_ = null; scrutBuilder_ = null; } return this; } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getScrutBuilder() { onChanged(); return getScrutFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getScrutOrBuilder() { if (scrutBuilder_ != null) { return scrutBuilder_.getMessageOrBuilder(); } else { return scrut_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : scrut_; } } /** * .daml_lf_1.Expr scrut = 1[json_name = "scrut"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getScrutFieldBuilder() { if (scrutBuilder_ == null) { scrutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getScrut(), getParentForChildren(), isClean()); scrut_ = null; } return scrutBuilder_; } private java.util.List alts_ = java.util.Collections.emptyList(); private void ensureAltsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { alts_ = new java.util.ArrayList(alts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder> altsBuilder_; /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public java.util.List getAltsList() { if (altsBuilder_ == null) { return java.util.Collections.unmodifiableList(alts_); } else { return altsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public int getAltsCount() { if (altsBuilder_ == null) { return alts_.size(); } else { return altsBuilder_.getCount(); } } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt getAlts(int index) { if (altsBuilder_ == null) { return alts_.get(index); } else { return altsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder setAlts( int index, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt value) { if (altsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAltsIsMutable(); alts_.set(index, value); onChanged(); } else { altsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder setAlts( int index, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder builderForValue) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.set(index, builderForValue.build()); onChanged(); } else { altsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder addAlts(com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt value) { if (altsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAltsIsMutable(); alts_.add(value); onChanged(); } else { altsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder addAlts( int index, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt value) { if (altsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAltsIsMutable(); alts_.add(index, value); onChanged(); } else { altsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder addAlts( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder builderForValue) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.add(builderForValue.build()); onChanged(); } else { altsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder addAlts( int index, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder builderForValue) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.add(index, builderForValue.build()); onChanged(); } else { altsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder addAllAlts( java.lang.Iterable values) { if (altsBuilder_ == null) { ensureAltsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alts_); onChanged(); } else { altsBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder clearAlts() { if (altsBuilder_ == null) { alts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { altsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public Builder removeAlts(int index) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.remove(index); onChanged(); } else { altsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder getAltsBuilder( int index) { return getAltsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder getAltsOrBuilder( int index) { if (altsBuilder_ == null) { return alts_.get(index); } else { return altsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public java.util.List getAltsOrBuilderList() { if (altsBuilder_ != null) { return altsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alts_); } } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder addAltsBuilder() { return getAltsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.getDefaultInstance()); } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder addAltsBuilder( int index) { return getAltsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.getDefaultInstance()); } /** * repeated .daml_lf_1.CaseAlt alts = 2[json_name = "alts"]; */ public java.util.List getAltsBuilderList() { return getAltsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder> getAltsFieldBuilder() { if (altsBuilder_ == null) { altsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAlt.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.CaseAltOrBuilder>( alts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); alts_ = null; } return altsBuilder_; } @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:daml_lf_1.Case) } // @@protoc_insertion_point(class_scope:daml_lf_1.Case) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Case DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Case(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Case getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Case parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Case(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Case getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Block) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ java.util.List getBindingsList(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Binding getBindings(int index); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ int getBindingsCount(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ java.util.List getBindingsOrBuilderList(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder getBindingsOrBuilder( int index); /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ boolean hasBody(); /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); } /** *
   * A block of bindings and an expression.
   * Encodes a sequence of binds in e.g. a let or update block.
   * 
* * Protobuf type {@code daml_lf_1.Block} */ public static final class Block extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Block) BlockOrBuilder { private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Block() { bindings_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Block( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { bindings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } bindings_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Binding.parser(), extensionRegistry)); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bindings_ = java.util.Collections.unmodifiableList(bindings_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Block.class, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder.class); } public static final int BINDINGS_FIELD_NUMBER = 1; private java.util.List bindings_; /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public java.util.List getBindingsList() { return bindings_; } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public java.util.List getBindingsOrBuilderList() { return bindings_; } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public int getBindingsCount() { return bindings_.size(); } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Binding getBindings(int index) { return bindings_.get(index); } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder getBindingsOrBuilder( int index) { return bindings_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 { for (int i = 0; i < bindings_.size(); i++) { output.writeMessage(1, bindings_.get(i)); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < bindings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, bindings_.get(i)); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Block)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Block other = (com.digitalasset.daml_lf_1_7.DamlLf1.Block) obj; if (!getBindingsList() .equals(other.getBindingsList())) return false; if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBindingsCount() > 0) { hash = (37 * hash) + BINDINGS_FIELD_NUMBER; hash = (53 * hash) + getBindingsList().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block 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.digitalasset.daml_lf_1_7.DamlLf1.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block 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.digitalasset.daml_lf_1_7.DamlLf1.Block parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block 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.digitalasset.daml_lf_1_7.DamlLf1.Block 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; } /** *
     * A block of bindings and an expression.
     * Encodes a sequence of binds in e.g. a let or update block.
     * 
* * Protobuf type {@code daml_lf_1.Block} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Block) com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Block.class, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Block.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBindingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (bindingsBuilder_ == null) { bindings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { bindingsBuilder_.clear(); } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Block_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Block getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Block build() { com.digitalasset.daml_lf_1_7.DamlLf1.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Block buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Block result = new com.digitalasset.daml_lf_1_7.DamlLf1.Block(this); int from_bitField0_ = bitField0_; if (bindingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { bindings_ = java.util.Collections.unmodifiableList(bindings_); bitField0_ = (bitField0_ & ~0x00000001); } result.bindings_ = bindings_; } else { result.bindings_ = bindingsBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Block) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Block other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance()) return this; if (bindingsBuilder_ == null) { if (!other.bindings_.isEmpty()) { if (bindings_.isEmpty()) { bindings_ = other.bindings_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBindingsIsMutable(); bindings_.addAll(other.bindings_); } onChanged(); } } else { if (!other.bindings_.isEmpty()) { if (bindingsBuilder_.isEmpty()) { bindingsBuilder_.dispose(); bindingsBuilder_ = null; bindings_ = other.bindings_; bitField0_ = (bitField0_ & ~0x00000001); bindingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBindingsFieldBuilder() : null; } else { bindingsBuilder_.addAllMessages(other.bindings_); } } } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Block parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Block) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List bindings_ = java.util.Collections.emptyList(); private void ensureBindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bindings_ = new java.util.ArrayList(bindings_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Binding, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder> bindingsBuilder_; /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public java.util.List getBindingsList() { if (bindingsBuilder_ == null) { return java.util.Collections.unmodifiableList(bindings_); } else { return bindingsBuilder_.getMessageList(); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public int getBindingsCount() { if (bindingsBuilder_ == null) { return bindings_.size(); } else { return bindingsBuilder_.getCount(); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Binding getBindings(int index) { if (bindingsBuilder_ == null) { return bindings_.get(index); } else { return bindingsBuilder_.getMessage(index); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder setBindings( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Binding value) { if (bindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBindingsIsMutable(); bindings_.set(index, value); onChanged(); } else { bindingsBuilder_.setMessage(index, value); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder setBindings( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder builderForValue) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.set(index, builderForValue.build()); onChanged(); } else { bindingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder addBindings(com.digitalasset.daml_lf_1_7.DamlLf1.Binding value) { if (bindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBindingsIsMutable(); bindings_.add(value); onChanged(); } else { bindingsBuilder_.addMessage(value); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder addBindings( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Binding value) { if (bindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBindingsIsMutable(); bindings_.add(index, value); onChanged(); } else { bindingsBuilder_.addMessage(index, value); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder addBindings( com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder builderForValue) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.add(builderForValue.build()); onChanged(); } else { bindingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder addBindings( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder builderForValue) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.add(index, builderForValue.build()); onChanged(); } else { bindingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder addAllBindings( java.lang.Iterable values) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bindings_); onChanged(); } else { bindingsBuilder_.addAllMessages(values); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder clearBindings() { if (bindingsBuilder_ == null) { bindings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { bindingsBuilder_.clear(); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public Builder removeBindings(int index) { if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.remove(index); onChanged(); } else { bindingsBuilder_.remove(index); } return this; } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder getBindingsBuilder( int index) { return getBindingsFieldBuilder().getBuilder(index); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder getBindingsOrBuilder( int index) { if (bindingsBuilder_ == null) { return bindings_.get(index); } else { return bindingsBuilder_.getMessageOrBuilder(index); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public java.util.List getBindingsOrBuilderList() { if (bindingsBuilder_ != null) { return bindingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bindings_); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder addBindingsBuilder() { return getBindingsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Binding.getDefaultInstance()); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder addBindingsBuilder( int index) { return getBindingsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.getDefaultInstance()); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1[json_name = "bindings"]; */ public java.util.List getBindingsBuilderList() { return getBindingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Binding, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder> getBindingsFieldBuilder() { if (bindingsBuilder_ == null) { bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Binding, com.digitalasset.daml_lf_1_7.DamlLf1.Binding.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BindingOrBuilder>( bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); bindings_ = null; } return bindingsBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Block) } // @@protoc_insertion_point(class_scope:daml_lf_1.Block) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Block(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Block getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Block parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Block(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PureOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Pure) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
   * A Pure statement either scenario or update
   * 
* * Protobuf type {@code daml_lf_1.Pure} */ public static final class Pure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Pure) PureOrBuilder { private static final long serialVersionUID = 0L; // Use Pure.newBuilder() to construct. private Pure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Pure() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Pure(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Pure( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Pure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Pure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Pure.class, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (expr_ != null) { output.writeMessage(2, getExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Pure)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Pure other = (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure 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.digitalasset.daml_lf_1_7.DamlLf1.Pure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure 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.digitalasset.daml_lf_1_7.DamlLf1.Pure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure 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.digitalasset.daml_lf_1_7.DamlLf1.Pure 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; } /** *
     * A Pure statement either scenario or update
     * 
* * Protobuf type {@code daml_lf_1.Pure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Pure) com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Pure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Pure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Pure.class, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Pure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Pure_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Pure getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Pure build() { com.digitalasset.daml_lf_1_7.DamlLf1.Pure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Pure buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Pure result = new com.digitalasset.daml_lf_1_7.DamlLf1.Pure(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Pure) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Pure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Pure other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Pure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } @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:daml_lf_1.Pure) } // @@protoc_insertion_point(class_scope:daml_lf_1.Pure) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Pure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Pure(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Pure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Pure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Pure(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Pure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ boolean hasPure(); /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Pure getPure(); /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder getPureOrBuilder(); /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ boolean hasBlock(); /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Block getBlock(); /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getBlockOrBuilder(); /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ boolean hasCreate(); /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create getCreate(); /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder getCreateOrBuilder(); /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ boolean hasExercise(); /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise getExercise(); /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder getExerciseOrBuilder(); /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ boolean hasFetch(); /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch getFetch(); /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder getFetchOrBuilder(); /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ boolean hasGetTime(); /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getGetTime(); /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getGetTimeOrBuilder(); /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ boolean hasLookupByKey(); /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getLookupByKey(); /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder(); /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ boolean hasFetchByKey(); /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getFetchByKey(); /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder(); /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ boolean hasEmbedExpr(); /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr getEmbedExpr(); /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder getEmbedExprOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Update.SumCase getSumCase(); } /** * Protobuf type {@code daml_lf_1.Update} */ public static final class Update extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update) UpdateOrBuilder { private static final long serialVersionUID = 0L; // Use Update.newBuilder() to construct. private Update(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Update() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Update(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Update( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Pure.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 6) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 6; break; } case 58: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } case 74: { com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder subBuilder = null; if (sumCase_ == 9) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 9; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder.class); } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.Create) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Create Update
     * 
* * Protobuf type {@code daml_lf_1.Update.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.Create) CreateOrBuilder { private static final long serialVersionUID = 0L; // Use Create.newBuilder() to construct. private Create(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Create() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Create(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Create( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Create_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } 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 (template_ != null) { output.writeMessage(1, getTemplate()); } if (expr_ != null) { output.writeMessage(2, getExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (template_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Update.Create)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create other = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Create 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; } /** *
       * Create Update
       * 
* * Protobuf type {@code daml_lf_1.Update.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.Create) com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Create_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (templateBuilder_ == null) { template_ = null; } else { template_ = null; templateBuilder_ = null; } if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Create_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create build() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create result = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create(this); if (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.build(); } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; onChanged(); } else { templateBuilder_.setMessage(value); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder mergeTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } @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:daml_lf_1.Update.Create) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.Create) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Create parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Create(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.Exercise) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2[json_name = "choiceStr"]; */ java.lang.String getChoiceStr(); /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2[json_name = "choiceStr"]; */ com.google.protobuf.ByteString getChoiceStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6[json_name = "choiceInternedStr"]; */ int getChoiceInternedStr(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getCidOrBuilder(); /** *
       * actors
       * *optional since version 1.5*
       * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ boolean hasActor(); /** *
       * actors
       * *optional since version 1.5*
       * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getActor(); /** *
       * actors
       * *optional since version 1.5*
       * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getActorOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getArgOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.ChoiceCase getChoiceCase(); } /** *
     * Exercise Update
     * 
* * Protobuf type {@code daml_lf_1.Update.Exercise} */ public static final class Exercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.Exercise) ExerciseOrBuilder { private static final long serialVersionUID = 0L; // Use Exercise.newBuilder() to construct. private Exercise(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Exercise() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Exercise(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Exercise( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); choiceCase_ = 2; choice_ = s; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (cid_ != null) { subBuilder = cid_.toBuilder(); } cid_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cid_); cid_ = subBuilder.buildPartial(); } break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (actor_ != null) { subBuilder = actor_.toBuilder(); } actor_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(actor_); actor_ = subBuilder.buildPartial(); } break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (arg_ != null) { subBuilder = arg_.toBuilder(); } arg_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(arg_); arg_ = subBuilder.buildPartial(); } break; } case 48: { choiceCase_ = 6; choice_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Exercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Exercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder.class); } private int choiceCase_ = 0; private java.lang.Object choice_; public enum ChoiceCase implements com.google.protobuf.Internal.EnumLite { CHOICE_STR(2), CHOICE_INTERNED_STR(6), CHOICE_NOT_SET(0); private final int value; private ChoiceCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ChoiceCase valueOf(int value) { return forNumber(value); } public static ChoiceCase forNumber(int value) { switch (value) { case 2: return CHOICE_STR; case 6: return CHOICE_INTERNED_STR; case 0: return CHOICE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ChoiceCase getChoiceCase() { return ChoiceCase.forNumber( choiceCase_); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int CHOICE_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public java.lang.String getChoiceStr() { java.lang.Object ref = ""; if (choiceCase_ == 2) { ref = choice_; } 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(); if (choiceCase_ == 2) { choice_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public com.google.protobuf.ByteString getChoiceStrBytes() { java.lang.Object ref = ""; if (choiceCase_ == 2) { ref = choice_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (choiceCase_ == 2) { choice_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 6; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6[json_name = "choiceInternedStr"]; */ public int getChoiceInternedStr() { if (choiceCase_ == 6) { return (java.lang.Integer) choice_; } return 0; } public static final int CID_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public boolean hasCid() { return cid_ != null; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getCid() { return cid_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getCidOrBuilder() { return getCid(); } public static final int ACTOR_FIELD_NUMBER = 4; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr actor_; /** *
       * actors
       * *optional since version 1.5*
       * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public boolean hasActor() { return actor_ != null; } /** *
       * actors
       * *optional since version 1.5*
       * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getActor() { return actor_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : actor_; } /** *
       * actors
       * *optional since version 1.5*
       * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getActorOrBuilder() { return getActor(); } public static final int ARG_FIELD_NUMBER = 5; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public boolean hasArg() { return arg_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getArg() { return arg_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getArgOrBuilder() { return getArg(); } 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 (template_ != null) { output.writeMessage(1, getTemplate()); } if (choiceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, choice_); } if (cid_ != null) { output.writeMessage(3, getCid()); } if (actor_ != null) { output.writeMessage(4, getActor()); } if (arg_ != null) { output.writeMessage(5, getArg()); } if (choiceCase_ == 6) { output.writeInt32( 6, (int)((java.lang.Integer) choice_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (template_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, choice_); } if (cid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCid()); } if (actor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getActor()); } if (arg_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getArg()); } if (choiceCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 6, (int)((java.lang.Integer) choice_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise other = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (hasCid() != other.hasCid()) return false; if (hasCid()) { if (!getCid() .equals(other.getCid())) return false; } if (hasActor() != other.hasActor()) return false; if (hasActor()) { if (!getActor() .equals(other.getActor())) return false; } if (hasArg() != other.hasArg()) return false; if (hasArg()) { if (!getArg() .equals(other.getArg())) return false; } if (!getChoiceCase().equals(other.getChoiceCase())) return false; switch (choiceCase_) { case 2: if (!getChoiceStr() .equals(other.getChoiceStr())) return false; break; case 6: if (getChoiceInternedStr() != other.getChoiceInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } if (hasCid()) { hash = (37 * hash) + CID_FIELD_NUMBER; hash = (53 * hash) + getCid().hashCode(); } if (hasActor()) { hash = (37 * hash) + ACTOR_FIELD_NUMBER; hash = (53 * hash) + getActor().hashCode(); } if (hasArg()) { hash = (37 * hash) + ARG_FIELD_NUMBER; hash = (53 * hash) + getArg().hashCode(); } switch (choiceCase_) { case 2: hash = (37 * hash) + CHOICE_STR_FIELD_NUMBER; hash = (53 * hash) + getChoiceStr().hashCode(); break; case 6: hash = (37 * hash) + CHOICE_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getChoiceInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise 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; } /** *
       * Exercise Update
       * 
* * Protobuf type {@code daml_lf_1.Update.Exercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.Exercise) com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Exercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Exercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (templateBuilder_ == null) { template_ = null; } else { template_ = null; templateBuilder_ = null; } if (cidBuilder_ == null) { cid_ = null; } else { cid_ = null; cidBuilder_ = null; } if (actorBuilder_ == null) { actor_ = null; } else { actor_ = null; actorBuilder_ = null; } if (argBuilder_ == null) { arg_ = null; } else { arg_ = null; argBuilder_ = null; } choiceCase_ = 0; choice_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Exercise_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise build() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise result = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise(this); if (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.build(); } if (choiceCase_ == 2) { result.choice_ = choice_; } if (choiceCase_ == 6) { result.choice_ = choice_; } if (cidBuilder_ == null) { result.cid_ = cid_; } else { result.cid_ = cidBuilder_.build(); } if (actorBuilder_ == null) { result.actor_ = actor_; } else { result.actor_ = actorBuilder_.build(); } if (argBuilder_ == null) { result.arg_ = arg_; } else { result.arg_ = argBuilder_.build(); } result.choiceCase_ = choiceCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasCid()) { mergeCid(other.getCid()); } if (other.hasActor()) { mergeActor(other.getActor()); } if (other.hasArg()) { mergeArg(other.getArg()); } switch (other.getChoiceCase()) { case CHOICE_STR: { choiceCase_ = 2; choice_ = other.choice_; onChanged(); break; } case CHOICE_INTERNED_STR: { setChoiceInternedStr(other.getChoiceInternedStr()); break; } case CHOICE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int choiceCase_ = 0; private java.lang.Object choice_; public ChoiceCase getChoiceCase() { return ChoiceCase.forNumber( choiceCase_); } public Builder clearChoice() { choiceCase_ = 0; choice_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; onChanged(); } else { templateBuilder_.setMessage(value); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder mergeTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public java.lang.String getChoiceStr() { java.lang.Object ref = ""; if (choiceCase_ == 2) { ref = choice_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (choiceCase_ == 2) { choice_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public com.google.protobuf.ByteString getChoiceStrBytes() { java.lang.Object ref = ""; if (choiceCase_ == 2) { ref = choice_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (choiceCase_ == 2) { choice_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public Builder setChoiceStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } choiceCase_ = 2; choice_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public Builder clearChoiceStr() { if (choiceCase_ == 2) { choiceCase_ = 0; choice_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2[json_name = "choiceStr"]; */ public Builder setChoiceStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); choiceCase_ = 2; choice_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6[json_name = "choiceInternedStr"]; */ public int getChoiceInternedStr() { if (choiceCase_ == 6) { return (java.lang.Integer) choice_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6[json_name = "choiceInternedStr"]; */ public Builder setChoiceInternedStr(int value) { choiceCase_ = 6; choice_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6[json_name = "choiceInternedStr"]; */ public Builder clearChoiceInternedStr() { if (choiceCase_ == 6) { choiceCase_ = 0; choice_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public boolean hasCid() { return cidBuilder_ != null || cid_ != null; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public Builder setCid(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cid_ = value; onChanged(); } else { cidBuilder_.setMessage(value); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public Builder setCid( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); onChanged(); } else { cidBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public Builder mergeCid(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (cid_ != null) { cid_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(cid_).mergeFrom(value).buildPartial(); } else { cid_ = value; } onChanged(); } else { cidBuilder_.mergeFrom(value); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public Builder clearCid() { if (cidBuilder_ == null) { cid_ = null; onChanged(); } else { cid_ = null; cidBuilder_ = null; } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getCidBuilder() { onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3[json_name = "cid"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr actor_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> actorBuilder_; /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public boolean hasActor() { return actorBuilder_ != null || actor_ != null; } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getActor() { if (actorBuilder_ == null) { return actor_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : actor_; } else { return actorBuilder_.getMessage(); } } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public Builder setActor(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (actorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actor_ = value; onChanged(); } else { actorBuilder_.setMessage(value); } return this; } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public Builder setActor( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (actorBuilder_ == null) { actor_ = builderForValue.build(); onChanged(); } else { actorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public Builder mergeActor(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (actorBuilder_ == null) { if (actor_ != null) { actor_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(actor_).mergeFrom(value).buildPartial(); } else { actor_ = value; } onChanged(); } else { actorBuilder_.mergeFrom(value); } return this; } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public Builder clearActor() { if (actorBuilder_ == null) { actor_ = null; onChanged(); } else { actor_ = null; actorBuilder_ = null; } return this; } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getActorBuilder() { onChanged(); return getActorFieldBuilder().getBuilder(); } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getActorOrBuilder() { if (actorBuilder_ != null) { return actorBuilder_.getMessageOrBuilder(); } else { return actor_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : actor_; } } /** *
         * actors
         * *optional since version 1.5*
         * 
* * .daml_lf_1.Expr actor = 4[json_name = "actor"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getActorFieldBuilder() { if (actorBuilder_ == null) { actorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getActor(), getParentForChildren(), isClean()); actor_ = null; } return actorBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public boolean hasArg() { return argBuilder_ != null || arg_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public Builder setArg(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (argBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arg_ = value; onChanged(); } else { argBuilder_.setMessage(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public Builder setArg( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); onChanged(); } else { argBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public Builder mergeArg(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (argBuilder_ == null) { if (arg_ != null) { arg_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(arg_).mergeFrom(value).buildPartial(); } else { arg_ = value; } onChanged(); } else { argBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public Builder clearArg() { if (argBuilder_ == null) { arg_ = null; onChanged(); } else { arg_ = null; argBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getArgBuilder() { onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5[json_name = "arg"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getArg(), getParentForChildren(), isClean()); arg_ = null; } return argBuilder_; } @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:daml_lf_1.Update.Exercise) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.Exercise) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Exercise parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Exercise(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FetchOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.Fetch) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getCidOrBuilder(); } /** *
     * Fetch Update
     * 
* * Protobuf type {@code daml_lf_1.Update.Fetch} */ public static final class Fetch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.Fetch) FetchOrBuilder { private static final long serialVersionUID = 0L; // Use Fetch.newBuilder() to construct. private Fetch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Fetch() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Fetch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Fetch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (cid_ != null) { subBuilder = cid_.toBuilder(); } cid_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cid_); cid_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Fetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Fetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int CID_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public boolean hasCid() { return cid_ != null; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getCid() { return cid_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getCidOrBuilder() { return getCid(); } 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 (template_ != null) { output.writeMessage(1, getTemplate()); } if (cid_ != null) { output.writeMessage(2, getCid()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (template_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (cid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCid()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch other = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (hasCid() != other.hasCid()) return false; if (hasCid()) { if (!getCid() .equals(other.getCid())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } if (hasCid()) { hash = (37 * hash) + CID_FIELD_NUMBER; hash = (53 * hash) + getCid().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch 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; } /** *
       * Fetch Update
       * 
* * Protobuf type {@code daml_lf_1.Update.Fetch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.Fetch) com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Fetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Fetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (templateBuilder_ == null) { template_ = null; } else { template_ = null; templateBuilder_ = null; } if (cidBuilder_ == null) { cid_ = null; } else { cid_ = null; cidBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_Fetch_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch build() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch result = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch(this); if (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.build(); } if (cidBuilder_ == null) { result.cid_ = cid_; } else { result.cid_ = cidBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasCid()) { mergeCid(other.getCid()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; onChanged(); } else { templateBuilder_.setMessage(value); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder mergeTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public boolean hasCid() { return cidBuilder_ != null || cid_ != null; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public Builder setCid(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cid_ = value; onChanged(); } else { cidBuilder_.setMessage(value); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public Builder setCid( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); onChanged(); } else { cidBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public Builder mergeCid(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (cid_ != null) { cid_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(cid_).mergeFrom(value).buildPartial(); } else { cid_ = value; } onChanged(); } else { cidBuilder_.mergeFrom(value); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public Builder clearCid() { if (cidBuilder_ == null) { cid_ = null; onChanged(); } else { cid_ = null; cidBuilder_ = null; } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getCidBuilder() { onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2[json_name = "cid"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } @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:daml_lf_1.Update.Fetch) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.Fetch) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Fetch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Fetch(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbedExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.EmbedExpr) com.google.protobuf.MessageOrBuilder { /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ boolean hasBody(); /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); } /** *
     * Embedded Expression Update
     * 
* * Protobuf type {@code daml_lf_1.Update.EmbedExpr} */ public static final class EmbedExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.EmbedExpr) EmbedExprOrBuilder { private static final long serialVersionUID = 0L; // Use EmbedExpr.newBuilder() to construct. private EmbedExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmbedExpr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmbedExpr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EmbedExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr other = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr 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.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr 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.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr 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.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr 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; } /** *
       * Embedded Expression Update
       * 
* * Protobuf type {@code daml_lf_1.Update.EmbedExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.EmbedExpr) com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr build() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr result = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Update.EmbedExpr) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.EmbedExpr) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmbedExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EmbedExpr(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RetrieveByKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.RetrieveByKey) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ boolean hasTemplate(); /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate(); /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ boolean hasKey(); /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getKey(); /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getKeyOrBuilder(); } /** *
     * Retrieve by key Update
     * *Available in versions >= 1.2*
     * 
* * Protobuf type {@code daml_lf_1.Update.RetrieveByKey} */ public static final class RetrieveByKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.RetrieveByKey) RetrieveByKeyOrBuilder { private static final long serialVersionUID = 0L; // Use RetrieveByKey.newBuilder() to construct. private RetrieveByKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RetrieveByKey() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RetrieveByKey(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RetrieveByKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return template_ != null; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int KEY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr key_; /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public boolean hasKey() { return key_ != null; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getKey() { return key_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : key_; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getKeyOrBuilder() { return getKey(); } 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 (template_ != null) { output.writeMessage(1, getTemplate()); } if (key_ != null) { output.writeMessage(2, getKey()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (template_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKey()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey other = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey 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.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey 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.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey 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.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey 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; } /** *
       * Retrieve by key Update
       * *Available in versions >= 1.2*
       * 
* * Protobuf type {@code daml_lf_1.Update.RetrieveByKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.RetrieveByKey) com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (templateBuilder_ == null) { template_ = null; } else { template_ = null; templateBuilder_ = null; } if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey build() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey result = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey(this); if (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.build(); } if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasKey()) { mergeKey(other.getKey()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; onChanged(); } else { templateBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder setTemplate( com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder mergeTemplate(com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** * .daml_lf_1.TypeConName template = 1[json_name = "template"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr key_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> keyBuilder_; /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getKey() { if (keyBuilder_ == null) { return key_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public Builder setKey(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public Builder setKey( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public Builder mergeKey(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : key_; } } /** * .daml_lf_1.Expr key = 2[json_name = "key"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } @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:daml_lf_1.Update.RetrieveByKey) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.RetrieveByKey) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RetrieveByKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RetrieveByKey(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { PURE(1), BLOCK(2), CREATE(3), EXERCISE(4), FETCH(5), GET_TIME(6), LOOKUP_BY_KEY(8), FETCH_BY_KEY(9), EMBED_EXPR(7), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return PURE; case 2: return BLOCK; case 3: return CREATE; case 4: return EXERCISE; case 5: return FETCH; case 6: return GET_TIME; case 8: return LOOKUP_BY_KEY; case 9: return FETCH_BY_KEY; case 7: return EMBED_EXPR; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int PURE_FIELD_NUMBER = 1; /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Pure getPure() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder getPureOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block getBlock() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } public static final int CREATE_FIELD_NUMBER = 3; /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public boolean hasCreate() { return sumCase_ == 3; } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create getCreate() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder getCreateOrBuilder() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } public static final int EXERCISE_FIELD_NUMBER = 4; /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public boolean hasExercise() { return sumCase_ == 4; } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise getExercise() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder getExerciseOrBuilder() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } public static final int FETCH_FIELD_NUMBER = 5; /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public boolean hasFetch() { return sumCase_ == 5; } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch getFetch() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder getFetchOrBuilder() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } public static final int GET_TIME_FIELD_NUMBER = 6; /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getGetTime() { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int LOOKUP_BY_KEY_FIELD_NUMBER = 8; /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public boolean hasLookupByKey() { return sumCase_ == 8; } /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getLookupByKey() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } public static final int FETCH_BY_KEY_FIELD_NUMBER = 9; /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public boolean hasFetchByKey() { return sumCase_ == 9; } /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getFetchByKey() { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } /** *
     * *Available in versions >= 1.2*
     * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder() { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } public static final int EMBED_EXPR_FIELD_NUMBER = 7; /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public boolean hasEmbedExpr() { return sumCase_ == 7; } /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr getEmbedExpr() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder getEmbedExprOrBuilder() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Update)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Update other = (com.digitalasset.daml_lf_1_7.DamlLf1.Update) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getPure() .equals(other.getPure())) return false; break; case 2: if (!getBlock() .equals(other.getBlock())) return false; break; case 3: if (!getCreate() .equals(other.getCreate())) return false; break; case 4: if (!getExercise() .equals(other.getExercise())) return false; break; case 5: if (!getFetch() .equals(other.getFetch())) return false; break; case 6: if (!getGetTime() .equals(other.getGetTime())) return false; break; case 8: if (!getLookupByKey() .equals(other.getLookupByKey())) return false; break; case 9: if (!getFetchByKey() .equals(other.getFetchByKey())) return false; break; case 7: if (!getEmbedExpr() .equals(other.getEmbedExpr())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + PURE_FIELD_NUMBER; hash = (53 * hash) + getPure().hashCode(); break; case 2: hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); break; case 3: hash = (37 * hash) + CREATE_FIELD_NUMBER; hash = (53 * hash) + getCreate().hashCode(); break; case 4: hash = (37 * hash) + EXERCISE_FIELD_NUMBER; hash = (53 * hash) + getExercise().hashCode(); break; case 5: hash = (37 * hash) + FETCH_FIELD_NUMBER; hash = (53 * hash) + getFetch().hashCode(); break; case 6: hash = (37 * hash) + GET_TIME_FIELD_NUMBER; hash = (53 * hash) + getGetTime().hashCode(); break; case 8: hash = (37 * hash) + LOOKUP_BY_KEY_FIELD_NUMBER; hash = (53 * hash) + getLookupByKey().hashCode(); break; case 9: hash = (37 * hash) + FETCH_BY_KEY_FIELD_NUMBER; hash = (53 * hash) + getFetchByKey().hashCode(); break; case 7: hash = (37 * hash) + EMBED_EXPR_FIELD_NUMBER; hash = (53 * hash) + getEmbedExpr().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update 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.digitalasset.daml_lf_1_7.DamlLf1.Update parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update 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.digitalasset.daml_lf_1_7.DamlLf1.Update parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update 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.digitalasset.daml_lf_1_7.DamlLf1.Update 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; } /** * Protobuf type {@code daml_lf_1.Update} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update) com.digitalasset.daml_lf_1_7.DamlLf1.UpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Update.class, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Update.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Update_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update build() { com.digitalasset.daml_lf_1_7.DamlLf1.Update result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Update buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Update result = new com.digitalasset.daml_lf_1_7.DamlLf1.Update(this); if (sumCase_ == 1) { if (pureBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = pureBuilder_.build(); } } if (sumCase_ == 2) { if (blockBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = blockBuilder_.build(); } } if (sumCase_ == 3) { if (createBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = createBuilder_.build(); } } if (sumCase_ == 4) { if (exerciseBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = exerciseBuilder_.build(); } } if (sumCase_ == 5) { if (fetchBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fetchBuilder_.build(); } } if (sumCase_ == 6) { if (getTimeBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = getTimeBuilder_.build(); } } if (sumCase_ == 8) { if (lookupByKeyBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = lookupByKeyBuilder_.build(); } } if (sumCase_ == 9) { if (fetchByKeyBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fetchByKeyBuilder_.build(); } } if (sumCase_ == 7) { if (embedExprBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = embedExprBuilder_.build(); } } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Update) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Update)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Update other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Update.getDefaultInstance()) return this; switch (other.getSumCase()) { case PURE: { mergePure(other.getPure()); break; } case BLOCK: { mergeBlock(other.getBlock()); break; } case CREATE: { mergeCreate(other.getCreate()); break; } case EXERCISE: { mergeExercise(other.getExercise()); break; } case FETCH: { mergeFetch(other.getFetch()); break; } case GET_TIME: { mergeGetTime(other.getGetTime()); break; } case LOOKUP_BY_KEY: { mergeLookupByKey(other.getLookupByKey()); break; } case FETCH_BY_KEY: { mergeFetchByKey(other.getFetchByKey()); break; } case EMBED_EXPR: { mergeEmbedExpr(other.getEmbedExpr()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Update parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Update) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Pure, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder> pureBuilder_; /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Pure getPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } else { if (sumCase_ == 1) { return pureBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder setPure(com.digitalasset.daml_lf_1_7.DamlLf1.Pure value) { if (pureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { pureBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder setPure( com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder builderForValue) { if (pureBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { pureBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder mergePure(com.digitalasset.daml_lf_1_7.DamlLf1.Pure value) { if (pureBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Pure.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { pureBuilder_.mergeFrom(value); } pureBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder clearPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } pureBuilder_.clear(); } return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder getPureBuilder() { return getPureFieldBuilder().getBuilder(); } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder getPureOrBuilder() { if ((sumCase_ == 1) && (pureBuilder_ != null)) { return pureBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Pure, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder> getPureFieldBuilder() { if (pureBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } pureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Pure, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return pureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder> blockBuilder_; /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block getBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } else { if (sumCase_ == 2) { return blockBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder setBlock(com.digitalasset.daml_lf_1_7.DamlLf1.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder setBlock( com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder builderForValue) { if (blockBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder mergeBlock(com.digitalasset.daml_lf_1_7.DamlLf1.Block value) { if (blockBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Block.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { blockBuilder_.mergeFrom(value); } blockBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder clearBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } blockBuilder_.clear(); } return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if ((sumCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder> createBuilder_; /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public boolean hasCreate() { return sumCase_ == 3; } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create getCreate() { if (createBuilder_ == null) { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } else { if (sumCase_ == 3) { return createBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public Builder setCreate(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create value) { if (createBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { createBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public Builder setCreate( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder builderForValue) { if (createBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { createBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public Builder mergeCreate(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create value) { if (createBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { createBuilder_.mergeFrom(value); } createBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public Builder clearCreate() { if (createBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } createBuilder_.clear(); } return this; } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder getCreateOrBuilder() { if ((sumCase_ == 3) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } } /** * .daml_lf_1.Update.Create create = 3[json_name = "create"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.CreateOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Create) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return createBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder> exerciseBuilder_; /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public boolean hasExercise() { return sumCase_ == 4; } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise getExercise() { if (exerciseBuilder_ == null) { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } else { if (sumCase_ == 4) { return exerciseBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public Builder setExercise(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise value) { if (exerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { exerciseBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public Builder setExercise( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder builderForValue) { if (exerciseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { exerciseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public Builder mergeExercise(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise value) { if (exerciseBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 4) { exerciseBuilder_.mergeFrom(value); } exerciseBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public Builder clearExercise() { if (exerciseBuilder_ == null) { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; } exerciseBuilder_.clear(); } return this; } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder getExerciseBuilder() { return getExerciseFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder getExerciseOrBuilder() { if ((sumCase_ == 4) && (exerciseBuilder_ != null)) { return exerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } } /** * .daml_lf_1.Update.Exercise exercise = 4[json_name = "exercise"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder> getExerciseFieldBuilder() { if (exerciseBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.getDefaultInstance(); } exerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.ExerciseOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Exercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return exerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder> fetchBuilder_; /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public boolean hasFetch() { return sumCase_ == 5; } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch getFetch() { if (fetchBuilder_ == null) { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } else { if (sumCase_ == 5) { return fetchBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public Builder setFetch(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch value) { if (fetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fetchBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public Builder setFetch( com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder builderForValue) { if (fetchBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public Builder mergeFetch(com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch value) { if (fetchBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { fetchBuilder_.mergeFrom(value); } fetchBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public Builder clearFetch() { if (fetchBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } fetchBuilder_.clear(); } return this; } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder getFetchBuilder() { return getFetchFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder getFetchOrBuilder() { if ((sumCase_ == 5) && (fetchBuilder_ != null)) { return fetchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } } /** * .daml_lf_1.Update.Fetch fetch = 5[json_name = "fetch"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder> getFetchFieldBuilder() { if (fetchBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.getDefaultInstance(); } fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch, com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.FetchOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update.Fetch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return fetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getTimeBuilder_; /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 6) { return getTimeBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder setGetTime(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (getTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { getTimeBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder setGetTime( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (getTimeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { getTimeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder mergeGetTime(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (getTimeBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 6) { getTimeBuilder_.mergeFrom(value); } getTimeBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder clearGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; } getTimeBuilder_.clear(); } return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getGetTimeBuilder() { return getGetTimeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if ((sumCase_ == 6) && (getTimeBuilder_ != null)) { return getTimeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getGetTimeFieldBuilder() { if (getTimeBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } getTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged();; return getTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder> lookupByKeyBuilder_; /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public boolean hasLookupByKey() { return sumCase_ == 8; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getLookupByKey() { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } else { if (sumCase_ == 8) { return lookupByKeyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public Builder setLookupByKey(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey value) { if (lookupByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { lookupByKeyBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public Builder setLookupByKey( com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder builderForValue) { if (lookupByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { lookupByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public Builder mergeLookupByKey(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey value) { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 8) { lookupByKeyBuilder_.mergeFrom(value); } lookupByKeyBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public Builder clearLookupByKey() { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; } lookupByKeyBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder getLookupByKeyBuilder() { return getLookupByKeyFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder() { if ((sumCase_ == 8) && (lookupByKeyBuilder_ != null)) { return lookupByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8[json_name = "lookupByKey"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder> getLookupByKeyFieldBuilder() { if (lookupByKeyBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } lookupByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return lookupByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder> fetchByKeyBuilder_; /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public boolean hasFetchByKey() { return sumCase_ == 9; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey getFetchByKey() { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } else { if (sumCase_ == 9) { return fetchByKeyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public Builder setFetchByKey(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey value) { if (fetchByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fetchByKeyBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public Builder setFetchByKey( com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder builderForValue) { if (fetchByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public Builder mergeFetchByKey(com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey value) { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 9) { fetchByKeyBuilder_.mergeFrom(value); } fetchByKeyBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public Builder clearFetchByKey() { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; } fetchByKeyBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder getFetchByKeyBuilder() { return getFetchByKeyFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder() { if ((sumCase_ == 9) && (fetchByKeyBuilder_ != null)) { return fetchByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.2*
       * 
* * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9[json_name = "fetchByKey"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder> getFetchByKeyFieldBuilder() { if (fetchByKeyBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } fetchByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKeyOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update.RetrieveByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged();; return fetchByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder> embedExprBuilder_; /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public boolean hasEmbedExpr() { return sumCase_ == 7; } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr getEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } else { if (sumCase_ == 7) { return embedExprBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public Builder setEmbedExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr value) { if (embedExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { embedExprBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public Builder setEmbedExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder builderForValue) { if (embedExprBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { embedExprBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public Builder mergeEmbedExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr value) { if (embedExprBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { embedExprBuilder_.mergeFrom(value); } embedExprBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public Builder clearEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } embedExprBuilder_.clear(); } return this; } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder getEmbedExprBuilder() { return getEmbedExprFieldBuilder().getBuilder(); } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder getEmbedExprOrBuilder() { if ((sumCase_ == 7) && (embedExprBuilder_ != null)) { return embedExprBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7[json_name = "embedExpr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder> getEmbedExprFieldBuilder() { if (embedExprBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } embedExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExprOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Update.EmbedExpr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return embedExprBuilder_; } @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:daml_lf_1.Update) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Update DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Update(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Update getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Update parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Update(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Update getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScenarioOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Scenario) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ boolean hasPure(); /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Pure getPure(); /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder getPureOrBuilder(); /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ boolean hasBlock(); /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Block getBlock(); /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getBlockOrBuilder(); /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ boolean hasCommit(); /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getCommit(); /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder getCommitOrBuilder(); /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ boolean hasMustFailAt(); /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getMustFailAt(); /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder getMustFailAtOrBuilder(); /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ boolean hasPass(); /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getPass(); /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPassOrBuilder(); /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ boolean hasGetTime(); /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Unit getGetTime(); /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getGetTimeOrBuilder(); /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ boolean hasGetParty(); /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getGetParty(); /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getGetPartyOrBuilder(); /** *
     * embed an expression of type Scenario. note that this construct is useful
     * to explicitly mark the start of scenario execution, which is useful in
     * top level definitions. for example if we hav
     * def test : Scenario Unit = if <blah> then <this> else <that>
     * this is not a value, since it's headed with an `if`, but we can turn
     * it into a value by wrapping the `if` with this constructor. in that
     * case, the `if` will be executed every time the scenario runs --
     * as expected.
     * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ boolean hasEmbedExpr(); /** *
     * embed an expression of type Scenario. note that this construct is useful
     * to explicitly mark the start of scenario execution, which is useful in
     * top level definitions. for example if we hav
     * def test : Scenario Unit = if <blah> then <this> else <that>
     * this is not a value, since it's headed with an `if`, but we can turn
     * it into a value by wrapping the `if` with this constructor. in that
     * case, the `if` will be executed every time the scenario runs --
     * as expected.
     * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr getEmbedExpr(); /** *
     * embed an expression of type Scenario. note that this construct is useful
     * to explicitly mark the start of scenario execution, which is useful in
     * top level definitions. for example if we hav
     * def test : Scenario Unit = if <blah> then <this> else <that>
     * this is not a value, since it's headed with an `if`, but we can turn
     * it into a value by wrapping the `if` with this constructor. in that
     * case, the `if` will be executed every time the scenario runs --
     * as expected.
     * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.SumCase getSumCase(); } /** *
   * Scenario actions
   * 
* * Protobuf type {@code daml_lf_1.Scenario} */ public static final class Scenario extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Scenario) ScenarioOrBuilder { private static final long serialVersionUID = 0L; // Use Scenario.newBuilder() to construct. private Scenario(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scenario() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scenario(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Scenario( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Pure.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 6) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 6; break; } case 58: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.class, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder.class); } public interface CommitOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Scenario.Commit) com.google.protobuf.MessageOrBuilder { /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ boolean hasParty(); /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getParty(); /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPartyOrBuilder(); /** *
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** *
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** *
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ boolean hasRetType(); /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getRetType(); /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getRetTypeOrBuilder(); } /** * Protobuf type {@code daml_lf_1.Scenario.Commit} */ public static final class Commit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Scenario.Commit) CommitOrBuilder { private static final long serialVersionUID = 0L; // Use Commit.newBuilder() to construct. private Commit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Commit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Commit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Commit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (party_ != null) { subBuilder = party_.toBuilder(); } party_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(party_); party_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (retType_ != null) { subBuilder = retType_.toBuilder(); } retType_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retType_); retType_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.class, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder.class); } public static final int PARTY_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr party_; /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public boolean hasParty() { return party_ != null; } /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getParty() { return party_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : party_; } /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPartyOrBuilder() { return getParty(); } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** *
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** *
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } public static final int RET_TYPE_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Type retType_; /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public boolean hasRetType() { return retType_ != null; } /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getRetType() { return retType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : retType_; } /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { return getRetType(); } 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 (party_ != null) { output.writeMessage(1, getParty()); } if (expr_ != null) { output.writeMessage(2, getExpr()); } if (retType_ != null) { output.writeMessage(3, getRetType()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (party_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParty()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (retType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRetType()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit other = (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) obj; if (hasParty() != other.hasParty()) return false; if (hasParty()) { if (!getParty() .equals(other.getParty())) return false; } if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (hasRetType() != other.hasRetType()) return false; if (hasRetType()) { if (!getRetType() .equals(other.getRetType())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasParty()) { hash = (37 * hash) + PARTY_FIELD_NUMBER; hash = (53 * hash) + getParty().hashCode(); } if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } if (hasRetType()) { hash = (37 * hash) + RET_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRetType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit 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; } /** * Protobuf type {@code daml_lf_1.Scenario.Commit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Scenario.Commit) com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.class, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (partyBuilder_ == null) { party_ = null; } else { party_ = null; partyBuilder_ = null; } if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } if (retTypeBuilder_ == null) { retType_ = null; } else { retType_ = null; retTypeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit build() { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit result = new com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit(this); if (partyBuilder_ == null) { result.party_ = party_; } else { result.party_ = partyBuilder_.build(); } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } if (retTypeBuilder_ == null) { result.retType_ = retType_; } else { result.retType_ = retTypeBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance()) return this; if (other.hasParty()) { mergeParty(other.getParty()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } if (other.hasRetType()) { mergeRetType(other.getRetType()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr party_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> partyBuilder_; /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public boolean hasParty() { return partyBuilder_ != null || party_ != null; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getParty() { if (partyBuilder_ == null) { return party_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : party_; } else { return partyBuilder_.getMessage(); } } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public Builder setParty(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (partyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } party_ = value; onChanged(); } else { partyBuilder_.setMessage(value); } return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public Builder setParty( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (partyBuilder_ == null) { party_ = builderForValue.build(); onChanged(); } else { partyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public Builder mergeParty(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (partyBuilder_ == null) { if (party_ != null) { party_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(party_).mergeFrom(value).buildPartial(); } else { party_ = value; } onChanged(); } else { partyBuilder_.mergeFrom(value); } return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public Builder clearParty() { if (partyBuilder_ == null) { party_ = null; onChanged(); } else { party_ = null; partyBuilder_ = null; } return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getPartyBuilder() { onChanged(); return getPartyFieldBuilder().getBuilder(); } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPartyOrBuilder() { if (partyBuilder_ != null) { return partyBuilder_.getMessageOrBuilder(); } else { return party_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : party_; } } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1[json_name = "party"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getPartyFieldBuilder() { if (partyBuilder_ == null) { partyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getParty(), getParentForChildren(), isClean()); party_ = null; } return partyBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * 
* * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type retType_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> retTypeBuilder_; /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public boolean hasRetType() { return retTypeBuilder_ != null || retType_ != null; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getRetType() { if (retTypeBuilder_ == null) { return retType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : retType_; } else { return retTypeBuilder_.getMessage(); } } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public Builder setRetType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (retTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retType_ = value; onChanged(); } else { retTypeBuilder_.setMessage(value); } return this; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public Builder setRetType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (retTypeBuilder_ == null) { retType_ = builderForValue.build(); onChanged(); } else { retTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public Builder mergeRetType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (retTypeBuilder_ == null) { if (retType_ != null) { retType_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(retType_).mergeFrom(value).buildPartial(); } else { retType_ = value; } onChanged(); } else { retTypeBuilder_.mergeFrom(value); } return this; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public Builder clearRetType() { if (retTypeBuilder_ == null) { retType_ = null; onChanged(); } else { retType_ = null; retTypeBuilder_ = null; } return this; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getRetTypeBuilder() { onChanged(); return getRetTypeFieldBuilder().getBuilder(); } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { if (retTypeBuilder_ != null) { return retTypeBuilder_.getMessageOrBuilder(); } else { return retType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : retType_; } } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3[json_name = "retType"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getRetTypeFieldBuilder() { if (retTypeBuilder_ == null) { retTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getRetType(), getParentForChildren(), isClean()); retType_ = null; } return retTypeBuilder_; } @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:daml_lf_1.Scenario.Commit) } // @@protoc_insertion_point(class_scope:daml_lf_1.Scenario.Commit) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Commit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Commit(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbedExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Scenario.EmbedExpr) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ boolean hasBody(); /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody(); /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder(); } /** * Protobuf type {@code daml_lf_1.Scenario.EmbedExpr} */ public static final class EmbedExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Scenario.EmbedExpr) EmbedExprOrBuilder { private static final long serialVersionUID = 0L; // Use EmbedExpr.newBuilder() to construct. private EmbedExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmbedExpr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmbedExpr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EmbedExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int BODY_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return body_ != null; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { return getBody(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (body_ != null) { output.writeMessage(2, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr other = (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr 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; } /** * Protobuf type {@code daml_lf_1.Scenario.EmbedExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Scenario.EmbedExpr) com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr build() { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr result = new com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder setBody( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder mergeBody(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_1.Expr body = 2[json_name = "body"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @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:daml_lf_1.Scenario.EmbedExpr) } // @@protoc_insertion_point(class_scope:daml_lf_1.Scenario.EmbedExpr) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmbedExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EmbedExpr(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { PURE(1), BLOCK(2), COMMIT(3), MUSTFAILAT(4), PASS(5), GET_TIME(6), GET_PARTY(7), EMBED_EXPR(8), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return PURE; case 2: return BLOCK; case 3: return COMMIT; case 4: return MUSTFAILAT; case 5: return PASS; case 6: return GET_TIME; case 7: return GET_PARTY; case 8: return EMBED_EXPR; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int PURE_FIELD_NUMBER = 1; /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Pure getPure() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder getPureOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block getBlock() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 3; /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public boolean hasCommit() { return sumCase_ == 3; } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getCommit() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder getCommitOrBuilder() { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } public static final int MUSTFAILAT_FIELD_NUMBER = 4; /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public boolean hasMustFailAt() { return sumCase_ == 4; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getMustFailAt() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder getMustFailAtOrBuilder() { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } public static final int PASS_FIELD_NUMBER = 5; /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public boolean hasPass() { return sumCase_ == 5; } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getPass() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPassOrBuilder() { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } public static final int GET_TIME_FIELD_NUMBER = 6; /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getGetTime() { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } public static final int GET_PARTY_FIELD_NUMBER = 7; /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public boolean hasGetParty() { return sumCase_ == 7; } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getGetParty() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getGetPartyOrBuilder() { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } public static final int EMBED_EXPR_FIELD_NUMBER = 8; /** *
     * embed an expression of type Scenario. note that this construct is useful
     * to explicitly mark the start of scenario execution, which is useful in
     * top level definitions. for example if we hav
     * def test : Scenario Unit = if <blah> then <this> else <that>
     * this is not a value, since it's headed with an `if`, but we can turn
     * it into a value by wrapping the `if` with this constructor. in that
     * case, the `if` will be executed every time the scenario runs --
     * as expected.
     * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public boolean hasEmbedExpr() { return sumCase_ == 8; } /** *
     * embed an expression of type Scenario. note that this construct is useful
     * to explicitly mark the start of scenario execution, which is useful in
     * top level definitions. for example if we hav
     * def test : Scenario Unit = if <blah> then <this> else <that>
     * this is not a value, since it's headed with an `if`, but we can turn
     * it into a value by wrapping the `if` with this constructor. in that
     * case, the `if` will be executed every time the scenario runs --
     * as expected.
     * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr getEmbedExpr() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } /** *
     * embed an expression of type Scenario. note that this construct is useful
     * to explicitly mark the start of scenario execution, which is useful in
     * top level definitions. for example if we hav
     * def test : Scenario Unit = if <blah> then <this> else <that>
     * this is not a value, since it's headed with an `if`, but we can turn
     * it into a value by wrapping the `if` with this constructor. in that
     * case, the `if` will be executed every time the scenario runs --
     * as expected.
     * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder() { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Scenario)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Scenario other = (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getPure() .equals(other.getPure())) return false; break; case 2: if (!getBlock() .equals(other.getBlock())) return false; break; case 3: if (!getCommit() .equals(other.getCommit())) return false; break; case 4: if (!getMustFailAt() .equals(other.getMustFailAt())) return false; break; case 5: if (!getPass() .equals(other.getPass())) return false; break; case 6: if (!getGetTime() .equals(other.getGetTime())) return false; break; case 7: if (!getGetParty() .equals(other.getGetParty())) return false; break; case 8: if (!getEmbedExpr() .equals(other.getEmbedExpr())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + PURE_FIELD_NUMBER; hash = (53 * hash) + getPure().hashCode(); break; case 2: hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); break; case 3: hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + getCommit().hashCode(); break; case 4: hash = (37 * hash) + MUSTFAILAT_FIELD_NUMBER; hash = (53 * hash) + getMustFailAt().hashCode(); break; case 5: hash = (37 * hash) + PASS_FIELD_NUMBER; hash = (53 * hash) + getPass().hashCode(); break; case 6: hash = (37 * hash) + GET_TIME_FIELD_NUMBER; hash = (53 * hash) + getGetTime().hashCode(); break; case 7: hash = (37 * hash) + GET_PARTY_FIELD_NUMBER; hash = (53 * hash) + getGetParty().hashCode(); break; case 8: hash = (37 * hash) + EMBED_EXPR_FIELD_NUMBER; hash = (53 * hash) + getEmbedExpr().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario 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; } /** *
     * Scenario actions
     * 
* * Protobuf type {@code daml_lf_1.Scenario} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Scenario) com.digitalasset.daml_lf_1_7.DamlLf1.ScenarioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.class, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Scenario_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario build() { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario result = new com.digitalasset.daml_lf_1_7.DamlLf1.Scenario(this); if (sumCase_ == 1) { if (pureBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = pureBuilder_.build(); } } if (sumCase_ == 2) { if (blockBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = blockBuilder_.build(); } } if (sumCase_ == 3) { if (commitBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = commitBuilder_.build(); } } if (sumCase_ == 4) { if (mustFailAtBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = mustFailAtBuilder_.build(); } } if (sumCase_ == 5) { if (passBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = passBuilder_.build(); } } if (sumCase_ == 6) { if (getTimeBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = getTimeBuilder_.build(); } } if (sumCase_ == 7) { if (getPartyBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = getPartyBuilder_.build(); } } if (sumCase_ == 8) { if (embedExprBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = embedExprBuilder_.build(); } } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.getDefaultInstance()) return this; switch (other.getSumCase()) { case PURE: { mergePure(other.getPure()); break; } case BLOCK: { mergeBlock(other.getBlock()); break; } case COMMIT: { mergeCommit(other.getCommit()); break; } case MUSTFAILAT: { mergeMustFailAt(other.getMustFailAt()); break; } case PASS: { mergePass(other.getPass()); break; } case GET_TIME: { mergeGetTime(other.getGetTime()); break; } case GET_PARTY: { mergeGetParty(other.getGetParty()); break; } case EMBED_EXPR: { mergeEmbedExpr(other.getEmbedExpr()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Scenario parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Pure, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder> pureBuilder_; /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Pure getPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } else { if (sumCase_ == 1) { return pureBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder setPure(com.digitalasset.daml_lf_1_7.DamlLf1.Pure value) { if (pureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { pureBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder setPure( com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder builderForValue) { if (pureBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { pureBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder mergePure(com.digitalasset.daml_lf_1_7.DamlLf1.Pure value) { if (pureBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Pure.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { pureBuilder_.mergeFrom(value); } pureBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public Builder clearPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } pureBuilder_.clear(); } return this; } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder getPureBuilder() { return getPureFieldBuilder().getBuilder(); } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder getPureOrBuilder() { if ((sumCase_ == 1) && (pureBuilder_ != null)) { return pureBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1[json_name = "pure"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Pure, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder> getPureFieldBuilder() { if (pureBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Pure.getDefaultInstance(); } pureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Pure, com.digitalasset.daml_lf_1_7.DamlLf1.Pure.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.PureOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Pure) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return pureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder> blockBuilder_; /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block getBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } else { if (sumCase_ == 2) { return blockBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder setBlock(com.digitalasset.daml_lf_1_7.DamlLf1.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder setBlock( com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder builderForValue) { if (blockBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder mergeBlock(com.digitalasset.daml_lf_1_7.DamlLf1.Block value) { if (blockBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Block.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { blockBuilder_.mergeFrom(value); } blockBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public Builder clearBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } blockBuilder_.clear(); } return this; } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if ((sumCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2[json_name = "block"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Block, com.digitalasset.daml_lf_1_7.DamlLf1.Block.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.BlockOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder> commitBuilder_; /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public boolean hasCommit() { return sumCase_ == 3; } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getCommit() { if (commitBuilder_ == null) { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } else { if (sumCase_ == 3) { return commitBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public Builder setCommit(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { commitBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public Builder setCommit( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder builderForValue) { if (commitBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { commitBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public Builder mergeCommit(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit value) { if (commitBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { commitBuilder_.mergeFrom(value); } commitBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public Builder clearCommit() { if (commitBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } commitBuilder_.clear(); } return this; } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder getCommitOrBuilder() { if ((sumCase_ == 3) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit commit = 3[json_name = "commit"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return commitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder> mustFailAtBuilder_; /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public boolean hasMustFailAt() { return sumCase_ == 4; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit getMustFailAt() { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } else { if (sumCase_ == 4) { return mustFailAtBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public Builder setMustFailAt(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit value) { if (mustFailAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { mustFailAtBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public Builder setMustFailAt( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder builderForValue) { if (mustFailAtBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { mustFailAtBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public Builder mergeMustFailAt(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit value) { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 4) { mustFailAtBuilder_.mergeFrom(value); } mustFailAtBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public Builder clearMustFailAt() { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; } mustFailAtBuilder_.clear(); } return this; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder getMustFailAtBuilder() { return getMustFailAtFieldBuilder().getBuilder(); } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder getMustFailAtOrBuilder() { if ((sumCase_ == 4) && (mustFailAtBuilder_ != null)) { return mustFailAtBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4[json_name = "mustFailAt"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder> getMustFailAtFieldBuilder() { if (mustFailAtBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.getDefaultInstance(); } mustFailAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.CommitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.Commit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return mustFailAtBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> passBuilder_; /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public boolean hasPass() { return sumCase_ == 5; } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getPass() { if (passBuilder_ == null) { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } else { if (sumCase_ == 5) { return passBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public Builder setPass(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (passBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { passBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public Builder setPass( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (passBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { passBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public Builder mergePass(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (passBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { passBuilder_.mergeFrom(value); } passBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public Builder clearPass() { if (passBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } passBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getPassBuilder() { return getPassFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPassOrBuilder() { if ((sumCase_ == 5) && (passBuilder_ != null)) { return passBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr pass = 5[json_name = "pass"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getPassFieldBuilder() { if (passBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } passBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return passBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getTimeBuilder_; /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit getGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 6) { return getTimeBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder setGetTime(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (getTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { getTimeBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder setGetTime( com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder builderForValue) { if (getTimeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { getTimeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder mergeGetTime(com.digitalasset.daml_lf_1_7.DamlLf1.Unit value) { if (getTimeBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 6) { getTimeBuilder_.mergeFrom(value); } getTimeBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public Builder clearGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; } getTimeBuilder_.clear(); } return this; } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder getGetTimeBuilder() { return getGetTimeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if ((sumCase_ == 6) && (getTimeBuilder_ != null)) { return getTimeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6[json_name = "getTime"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder> getGetTimeFieldBuilder() { if (getTimeBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Unit.getDefaultInstance(); } getTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Unit, com.digitalasset.daml_lf_1_7.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.UnitOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged();; return getTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getPartyBuilder_; /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public boolean hasGetParty() { return sumCase_ == 7; } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getGetParty() { if (getPartyBuilder_ == null) { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } else { if (sumCase_ == 7) { return getPartyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public Builder setGetParty(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (getPartyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { getPartyBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public Builder setGetParty( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (getPartyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { getPartyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public Builder mergeGetParty(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (getPartyBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { getPartyBuilder_.mergeFrom(value); } getPartyBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public Builder clearGetParty() { if (getPartyBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } getPartyBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getGetPartyBuilder() { return getGetPartyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getGetPartyOrBuilder() { if ((sumCase_ == 7) && (getPartyBuilder_ != null)) { return getPartyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr get_party = 7[json_name = "getParty"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getGetPartyFieldBuilder() { if (getPartyBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } getPartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return getPartyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder> embedExprBuilder_; /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public boolean hasEmbedExpr() { return sumCase_ == 8; } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr getEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } else { if (sumCase_ == 8) { return embedExprBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public Builder setEmbedExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr value) { if (embedExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { embedExprBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public Builder setEmbedExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder builderForValue) { if (embedExprBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { embedExprBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public Builder mergeEmbedExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr value) { if (embedExprBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 8) { embedExprBuilder_.mergeFrom(value); } embedExprBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public Builder clearEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; } embedExprBuilder_.clear(); } return this; } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder getEmbedExprBuilder() { return getEmbedExprFieldBuilder().getBuilder(); } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder() { if ((sumCase_ == 8) && (embedExprBuilder_ != null)) { return embedExprBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } } /** *
       * embed an expression of type Scenario. note that this construct is useful
       * to explicitly mark the start of scenario execution, which is useful in
       * top level definitions. for example if we hav
       * def test : Scenario Unit = if <blah> then <this> else <that>
       * this is not a value, since it's headed with an `if`, but we can turn
       * it into a value by wrapping the `if` with this constructor. in that
       * case, the `if` will be executed every time the scenario runs --
       * as expected.
       * 
* * .daml_lf_1.Scenario.EmbedExpr embed_expr = 8[json_name = "embedExpr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder> getEmbedExprFieldBuilder() { if (embedExprBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } embedExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExprOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Scenario.EmbedExpr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return embedExprBuilder_; } @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:daml_lf_1.Scenario) } // @@protoc_insertion_point(class_scope:daml_lf_1.Scenario) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Scenario DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Scenario(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Scenario getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Scenario parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Scenario(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Scenario getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TemplateChoiceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.TemplateChoice) com.google.protobuf.MessageOrBuilder { /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1[json_name = "nameStr"]; */ java.lang.String getNameStr(); /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1[json_name = "nameStr"]; */ com.google.protobuf.ByteString getNameStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 9[json_name = "nameInternedStr"]; */ int getNameInternedStr(); /** *
     * Choice type
     * 
* * bool consuming = 2[json_name = "consuming"]; */ boolean getConsuming(); /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, but not the choice parameter. All of these
     * controllers need to authorize the exercising of this choice (aka
     * conjunctive choice controllers).
     * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ boolean hasControllers(); /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, but not the choice parameter. All of these
     * controllers need to authorize the exercising of this choice (aka
     * conjunctive choice controllers).
     * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getControllers(); /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, but not the choice parameter. All of these
     * controllers need to authorize the exercising of this choice (aka
     * conjunctive choice controllers).
     * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getControllersOrBuilder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ boolean hasArgBinder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getArgBinder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getArgBinderOrBuilder(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ boolean hasRetType(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getRetType(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getRetTypeOrBuilder(); /** *
     * Follow-up update of the choice. It has type `Update <ret_type>` and both
     * the template parameter and the choice parameter in scope.
     * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ boolean hasUpdate(); /** *
     * Follow-up update of the choice. It has type `Update <ret_type>` and both
     * the template parameter and the choice parameter in scope.
     * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate(); /** *
     * Follow-up update of the choice. It has type `Update <ret_type>` and both
     * the template parameter and the choice parameter in scope.
     * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder(); /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ java.lang.String getSelfBinderStr(); /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ com.google.protobuf.ByteString getSelfBinderStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10[json_name = "selfBinderInternedStr"]; */ int getSelfBinderInternedStr(); /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ boolean hasLocation(); /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.NameCase getNameCase(); public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.SelfBinderCase getSelfBinderCase(); } /** *
   * Template choice definition.
   * 
* * Protobuf type {@code daml_lf_1.TemplateChoice} */ public static final class TemplateChoice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.TemplateChoice) TemplateChoiceOrBuilder { private static final long serialVersionUID = 0L; // Use TemplateChoice.newBuilder() to construct. private TemplateChoice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TemplateChoice() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TemplateChoice(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TemplateChoice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); nameCase_ = 1; name_ = s; break; } case 16: { consuming_ = input.readBool(); break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (controllers_ != null) { subBuilder = controllers_.toBuilder(); } controllers_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(controllers_); controllers_ = subBuilder.buildPartial(); } break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder subBuilder = null; if (argBinder_ != null) { subBuilder = argBinder_.toBuilder(); } argBinder_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(argBinder_); argBinder_ = subBuilder.buildPartial(); } break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (retType_ != null) { subBuilder = retType_.toBuilder(); } retType_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retType_); retType_ = subBuilder.buildPartial(); } break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(update_); update_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); selfBinderCase_ = 7; selfBinder_ = s; break; } case 66: { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 72: { nameCase_ = 9; name_ = input.readInt32(); break; } case 80: { selfBinderCase_ = 10; selfBinder_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TemplateChoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TemplateChoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.class, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite { NAME_STR(1), NAME_INTERNED_STR(9), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NameCase valueOf(int value) { return forNumber(value); } public static NameCase forNumber(int value) { switch (value) { case 1: return NAME_STR; case 9: return NAME_INTERNED_STR; case 0: return NAME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } private int selfBinderCase_ = 0; private java.lang.Object selfBinder_; public enum SelfBinderCase implements com.google.protobuf.Internal.EnumLite { SELF_BINDER_STR(7), SELF_BINDER_INTERNED_STR(10), SELFBINDER_NOT_SET(0); private final int value; private SelfBinderCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SelfBinderCase valueOf(int value) { return forNumber(value); } public static SelfBinderCase forNumber(int value) { switch (value) { case 7: return SELF_BINDER_STR; case 10: return SELF_BINDER_INTERNED_STR; case 0: return SELFBINDER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SelfBinderCase getSelfBinderCase() { return SelfBinderCase.forNumber( selfBinderCase_); } public static final int NAME_STR_FIELD_NUMBER = 1; /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1[json_name = "nameStr"]; */ public java.lang.String getNameStr() { java.lang.Object ref = ""; if (nameCase_ == 1) { ref = name_; } 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(); if (nameCase_ == 1) { name_ = s; } return s; } } /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1[json_name = "nameStr"]; */ public com.google.protobuf.ByteString getNameStrBytes() { java.lang.Object ref = ""; if (nameCase_ == 1) { ref = name_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (nameCase_ == 1) { name_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_INTERNED_STR_FIELD_NUMBER = 9; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 9[json_name = "nameInternedStr"]; */ public int getNameInternedStr() { if (nameCase_ == 9) { return (java.lang.Integer) name_; } return 0; } public static final int CONSUMING_FIELD_NUMBER = 2; private boolean consuming_; /** *
     * Choice type
     * 
* * bool consuming = 2[json_name = "consuming"]; */ public boolean getConsuming() { return consuming_; } public static final int CONTROLLERS_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr controllers_; /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, but not the choice parameter. All of these
     * controllers need to authorize the exercising of this choice (aka
     * conjunctive choice controllers).
     * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public boolean hasControllers() { return controllers_ != null; } /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, but not the choice parameter. All of these
     * controllers need to authorize the exercising of this choice (aka
     * conjunctive choice controllers).
     * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getControllers() { return controllers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : controllers_; } /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, but not the choice parameter. All of these
     * controllers need to authorize the exercising of this choice (aka
     * conjunctive choice controllers).
     * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getControllersOrBuilder() { return getControllers(); } public static final int ARG_BINDER_FIELD_NUMBER = 4; private com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType argBinder_; /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public boolean hasArgBinder() { return argBinder_ != null; } /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getArgBinder() { return argBinder_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance() : argBinder_; } /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getArgBinderOrBuilder() { return getArgBinder(); } public static final int RET_TYPE_FIELD_NUMBER = 5; private com.digitalasset.daml_lf_1_7.DamlLf1.Type retType_; /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public boolean hasRetType() { return retType_ != null; } /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getRetType() { return retType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : retType_; } /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { return getRetType(); } public static final int UPDATE_FIELD_NUMBER = 6; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr update_; /** *
     * Follow-up update of the choice. It has type `Update <ret_type>` and both
     * the template parameter and the choice parameter in scope.
     * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public boolean hasUpdate() { return update_ != null; } /** *
     * Follow-up update of the choice. It has type `Update <ret_type>` and both
     * the template parameter and the choice parameter in scope.
     * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate() { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } /** *
     * Follow-up update of the choice. It has type `Update <ret_type>` and both
     * the template parameter and the choice parameter in scope.
     * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { return getUpdate(); } public static final int SELF_BINDER_STR_FIELD_NUMBER = 7; /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public java.lang.String getSelfBinderStr() { java.lang.Object ref = ""; if (selfBinderCase_ == 7) { ref = selfBinder_; } 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(); if (selfBinderCase_ == 7) { selfBinder_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public com.google.protobuf.ByteString getSelfBinderStrBytes() { java.lang.Object ref = ""; if (selfBinderCase_ == 7) { ref = selfBinder_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (selfBinderCase_ == 7) { selfBinder_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELF_BINDER_INTERNED_STR_FIELD_NUMBER = 10; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10[json_name = "selfBinderInternedStr"]; */ public int getSelfBinderInternedStr() { if (selfBinderCase_ == 10) { return (java.lang.Integer) selfBinder_; } return 0; } public static final int LOCATION_FIELD_NUMBER = 8; private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } 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 (nameCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (consuming_ != false) { output.writeBool(2, consuming_); } if (controllers_ != null) { output.writeMessage(3, getControllers()); } if (argBinder_ != null) { output.writeMessage(4, getArgBinder()); } if (retType_ != null) { output.writeMessage(5, getRetType()); } if (update_ != null) { output.writeMessage(6, getUpdate()); } if (selfBinderCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, selfBinder_); } if (location_ != null) { output.writeMessage(8, getLocation()); } if (nameCase_ == 9) { output.writeInt32( 9, (int)((java.lang.Integer) name_)); } if (selfBinderCase_ == 10) { output.writeInt32( 10, (int)((java.lang.Integer) selfBinder_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nameCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (consuming_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, consuming_); } if (controllers_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getControllers()); } if (argBinder_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArgBinder()); } if (retType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRetType()); } if (update_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getUpdate()); } if (selfBinderCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, selfBinder_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLocation()); } if (nameCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 9, (int)((java.lang.Integer) name_)); } if (selfBinderCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 10, (int)((java.lang.Integer) selfBinder_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice other = (com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice) obj; if (getConsuming() != other.getConsuming()) return false; if (hasControllers() != other.hasControllers()) return false; if (hasControllers()) { if (!getControllers() .equals(other.getControllers())) return false; } if (hasArgBinder() != other.hasArgBinder()) return false; if (hasArgBinder()) { if (!getArgBinder() .equals(other.getArgBinder())) return false; } if (hasRetType() != other.hasRetType()) return false; if (hasRetType()) { if (!getRetType() .equals(other.getRetType())) return false; } if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { if (!getUpdate() .equals(other.getUpdate())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getNameCase().equals(other.getNameCase())) return false; switch (nameCase_) { case 1: if (!getNameStr() .equals(other.getNameStr())) return false; break; case 9: if (getNameInternedStr() != other.getNameInternedStr()) return false; break; case 0: default: } if (!getSelfBinderCase().equals(other.getSelfBinderCase())) return false; switch (selfBinderCase_) { case 7: if (!getSelfBinderStr() .equals(other.getSelfBinderStr())) return false; break; case 10: if (getSelfBinderInternedStr() != other.getSelfBinderInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) 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) + CONSUMING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getConsuming()); if (hasControllers()) { hash = (37 * hash) + CONTROLLERS_FIELD_NUMBER; hash = (53 * hash) + getControllers().hashCode(); } if (hasArgBinder()) { hash = (37 * hash) + ARG_BINDER_FIELD_NUMBER; hash = (53 * hash) + getArgBinder().hashCode(); } if (hasRetType()) { hash = (37 * hash) + RET_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRetType().hashCode(); } if (hasUpdate()) { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } switch (nameCase_) { case 1: hash = (37 * hash) + NAME_STR_FIELD_NUMBER; hash = (53 * hash) + getNameStr().hashCode(); break; case 9: hash = (37 * hash) + NAME_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getNameInternedStr(); break; case 0: default: } switch (selfBinderCase_) { case 7: hash = (37 * hash) + SELF_BINDER_STR_FIELD_NUMBER; hash = (53 * hash) + getSelfBinderStr().hashCode(); break; case 10: hash = (37 * hash) + SELF_BINDER_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getSelfBinderInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice 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.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice 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.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice 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.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice 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; } /** *
     * Template choice definition.
     * 
* * Protobuf type {@code daml_lf_1.TemplateChoice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.TemplateChoice) com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TemplateChoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TemplateChoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.class, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); consuming_ = false; if (controllersBuilder_ == null) { controllers_ = null; } else { controllers_ = null; controllersBuilder_ = null; } if (argBinderBuilder_ == null) { argBinder_ = null; } else { argBinder_ = null; argBinderBuilder_ = null; } if (retTypeBuilder_ == null) { retType_ = null; } else { retType_ = null; retTypeBuilder_ = null; } if (updateBuilder_ == null) { update_ = null; } else { update_ = null; updateBuilder_ = null; } if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } nameCase_ = 0; name_ = null; selfBinderCase_ = 0; selfBinder_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_TemplateChoice_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice build() { com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice result = new com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice(this); if (nameCase_ == 1) { result.name_ = name_; } if (nameCase_ == 9) { result.name_ = name_; } result.consuming_ = consuming_; if (controllersBuilder_ == null) { result.controllers_ = controllers_; } else { result.controllers_ = controllersBuilder_.build(); } if (argBinderBuilder_ == null) { result.argBinder_ = argBinder_; } else { result.argBinder_ = argBinderBuilder_.build(); } if (retTypeBuilder_ == null) { result.retType_ = retType_; } else { result.retType_ = retTypeBuilder_.build(); } if (updateBuilder_ == null) { result.update_ = update_; } else { result.update_ = updateBuilder_.build(); } if (selfBinderCase_ == 7) { result.selfBinder_ = selfBinder_; } if (selfBinderCase_ == 10) { result.selfBinder_ = selfBinder_; } if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.nameCase_ = nameCase_; result.selfBinderCase_ = selfBinderCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.getDefaultInstance()) return this; if (other.getConsuming() != false) { setConsuming(other.getConsuming()); } if (other.hasControllers()) { mergeControllers(other.getControllers()); } if (other.hasArgBinder()) { mergeArgBinder(other.getArgBinder()); } if (other.hasRetType()) { mergeRetType(other.getRetType()); } if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } switch (other.getNameCase()) { case NAME_STR: { nameCase_ = 1; name_ = other.name_; onChanged(); break; } case NAME_INTERNED_STR: { setNameInternedStr(other.getNameInternedStr()); break; } case NAME_NOT_SET: { break; } } switch (other.getSelfBinderCase()) { case SELF_BINDER_STR: { selfBinderCase_ = 7; selfBinder_ = other.selfBinder_; onChanged(); break; } case SELF_BINDER_INTERNED_STR: { setSelfBinderInternedStr(other.getSelfBinderInternedStr()); break; } case SELFBINDER_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int nameCase_ = 0; private java.lang.Object name_; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } public Builder clearName() { nameCase_ = 0; name_ = null; onChanged(); return this; } private int selfBinderCase_ = 0; private java.lang.Object selfBinder_; public SelfBinderCase getSelfBinderCase() { return SelfBinderCase.forNumber( selfBinderCase_); } public Builder clearSelfBinder() { selfBinderCase_ = 0; selfBinder_ = null; onChanged(); return this; } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1[json_name = "nameStr"]; */ public java.lang.String getNameStr() { java.lang.Object ref = ""; if (nameCase_ == 1) { ref = name_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (nameCase_ == 1) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1[json_name = "nameStr"]; */ public com.google.protobuf.ByteString getNameStrBytes() { java.lang.Object ref = ""; if (nameCase_ == 1) { ref = name_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (nameCase_ == 1) { name_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1[json_name = "nameStr"]; */ public Builder setNameStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nameCase_ = 1; name_ = value; onChanged(); return this; } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1[json_name = "nameStr"]; */ public Builder clearNameStr() { if (nameCase_ == 1) { nameCase_ = 0; name_ = null; onChanged(); } return this; } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1[json_name = "nameStr"]; */ public Builder setNameStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nameCase_ = 1; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 9[json_name = "nameInternedStr"]; */ public int getNameInternedStr() { if (nameCase_ == 9) { return (java.lang.Integer) name_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 9[json_name = "nameInternedStr"]; */ public Builder setNameInternedStr(int value) { nameCase_ = 9; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 9[json_name = "nameInternedStr"]; */ public Builder clearNameInternedStr() { if (nameCase_ == 9) { nameCase_ = 0; name_ = null; onChanged(); } return this; } private boolean consuming_ ; /** *
       * Choice type
       * 
* * bool consuming = 2[json_name = "consuming"]; */ public boolean getConsuming() { return consuming_; } /** *
       * Choice type
       * 
* * bool consuming = 2[json_name = "consuming"]; */ public Builder setConsuming(boolean value) { consuming_ = value; onChanged(); return this; } /** *
       * Choice type
       * 
* * bool consuming = 2[json_name = "consuming"]; */ public Builder clearConsuming() { consuming_ = false; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr controllers_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> controllersBuilder_; /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public boolean hasControllers() { return controllersBuilder_ != null || controllers_ != null; } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getControllers() { if (controllersBuilder_ == null) { return controllers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : controllers_; } else { return controllersBuilder_.getMessage(); } } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public Builder setControllers(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (controllersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } controllers_ = value; onChanged(); } else { controllersBuilder_.setMessage(value); } return this; } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public Builder setControllers( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (controllersBuilder_ == null) { controllers_ = builderForValue.build(); onChanged(); } else { controllersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public Builder mergeControllers(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (controllersBuilder_ == null) { if (controllers_ != null) { controllers_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(controllers_).mergeFrom(value).buildPartial(); } else { controllers_ = value; } onChanged(); } else { controllersBuilder_.mergeFrom(value); } return this; } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public Builder clearControllers() { if (controllersBuilder_ == null) { controllers_ = null; onChanged(); } else { controllers_ = null; controllersBuilder_ = null; } return this; } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getControllersBuilder() { onChanged(); return getControllersFieldBuilder().getBuilder(); } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getControllersOrBuilder() { if (controllersBuilder_ != null) { return controllersBuilder_.getMessageOrBuilder(); } else { return controllers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : controllers_; } } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, but not the choice parameter. All of these
       * controllers need to authorize the exercising of this choice (aka
       * conjunctive choice controllers).
       * 
* * .daml_lf_1.Expr controllers = 3[json_name = "controllers"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getControllersFieldBuilder() { if (controllersBuilder_ == null) { controllersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getControllers(), getParentForChildren(), isClean()); controllers_ = null; } return controllersBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType argBinder_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder> argBinderBuilder_; /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public boolean hasArgBinder() { return argBinderBuilder_ != null || argBinder_ != null; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType getArgBinder() { if (argBinderBuilder_ == null) { return argBinder_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance() : argBinder_; } else { return argBinderBuilder_.getMessage(); } } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public Builder setArgBinder(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (argBinderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } argBinder_ = value; onChanged(); } else { argBinderBuilder_.setMessage(value); } return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public Builder setArgBinder( com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder builderForValue) { if (argBinderBuilder_ == null) { argBinder_ = builderForValue.build(); onChanged(); } else { argBinderBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public Builder mergeArgBinder(com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType value) { if (argBinderBuilder_ == null) { if (argBinder_ != null) { argBinder_ = com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.newBuilder(argBinder_).mergeFrom(value).buildPartial(); } else { argBinder_ = value; } onChanged(); } else { argBinderBuilder_.mergeFrom(value); } return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public Builder clearArgBinder() { if (argBinderBuilder_ == null) { argBinder_ = null; onChanged(); } else { argBinder_ = null; argBinderBuilder_ = null; } return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder getArgBinderBuilder() { onChanged(); return getArgBinderFieldBuilder().getBuilder(); } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder getArgBinderOrBuilder() { if (argBinderBuilder_ != null) { return argBinderBuilder_.getMessageOrBuilder(); } else { return argBinder_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.getDefaultInstance() : argBinder_; } } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4[json_name = "argBinder"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder> getArgBinderFieldBuilder() { if (argBinderBuilder_ == null) { argBinderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.VarWithTypeOrBuilder>( getArgBinder(), getParentForChildren(), isClean()); argBinder_ = null; } return argBinderBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type retType_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> retTypeBuilder_; /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public boolean hasRetType() { return retTypeBuilder_ != null || retType_ != null; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getRetType() { if (retTypeBuilder_ == null) { return retType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : retType_; } else { return retTypeBuilder_.getMessage(); } } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public Builder setRetType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (retTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retType_ = value; onChanged(); } else { retTypeBuilder_.setMessage(value); } return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public Builder setRetType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (retTypeBuilder_ == null) { retType_ = builderForValue.build(); onChanged(); } else { retTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public Builder mergeRetType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (retTypeBuilder_ == null) { if (retType_ != null) { retType_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(retType_).mergeFrom(value).buildPartial(); } else { retType_ = value; } onChanged(); } else { retTypeBuilder_.mergeFrom(value); } return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public Builder clearRetType() { if (retTypeBuilder_ == null) { retType_ = null; onChanged(); } else { retType_ = null; retTypeBuilder_ = null; } return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getRetTypeBuilder() { onChanged(); return getRetTypeFieldBuilder().getBuilder(); } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { if (retTypeBuilder_ != null) { return retTypeBuilder_.getMessageOrBuilder(); } else { return retType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : retType_; } } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5[json_name = "retType"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getRetTypeFieldBuilder() { if (retTypeBuilder_ == null) { retTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getRetType(), getParentForChildren(), isClean()); retType_ = null; } return retTypeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> updateBuilder_; /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public boolean hasUpdate() { return updateBuilder_ != null || update_ != null; } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public Builder setUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } return this; } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public Builder setUpdate( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public Builder mergeUpdate(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(update_).mergeFrom(value).buildPartial(); } else { update_ = value; } onChanged(); } else { updateBuilder_.mergeFrom(value); } return this; } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public Builder clearUpdate() { if (updateBuilder_ == null) { update_ = null; onChanged(); } else { update_ = null; updateBuilder_ = null; } return this; } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getUpdateBuilder() { onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : update_; } } /** *
       * Follow-up update of the choice. It has type `Update <ret_type>` and both
       * the template parameter and the choice parameter in scope.
       * 
* * .daml_lf_1.Expr update = 6[json_name = "update"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getUpdate(), getParentForChildren(), isClean()); update_ = null; } return updateBuilder_; } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public java.lang.String getSelfBinderStr() { java.lang.Object ref = ""; if (selfBinderCase_ == 7) { ref = selfBinder_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (selfBinderCase_ == 7) { selfBinder_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public com.google.protobuf.ByteString getSelfBinderStrBytes() { java.lang.Object ref = ""; if (selfBinderCase_ == 7) { ref = selfBinder_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (selfBinderCase_ == 7) { selfBinder_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public Builder setSelfBinderStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } selfBinderCase_ = 7; selfBinder_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public Builder clearSelfBinderStr() { if (selfBinderCase_ == 7) { selfBinderCase_ = 0; selfBinder_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7[json_name = "selfBinderStr"]; */ public Builder setSelfBinderStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selfBinderCase_ = 7; selfBinder_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10[json_name = "selfBinderInternedStr"]; */ public int getSelfBinderInternedStr() { if (selfBinderCase_ == 10) { return (java.lang.Integer) selfBinder_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10[json_name = "selfBinderInternedStr"]; */ public Builder setSelfBinderInternedStr(int value) { selfBinderCase_ = 10; selfBinder_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10[json_name = "selfBinderInternedStr"]; */ public Builder clearSelfBinderInternedStr() { if (selfBinderCase_ == 10) { selfBinderCase_ = 0; selfBinder_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public Builder setLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public Builder setLocation( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public Builder mergeLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.digitalasset.daml_lf_1_7.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 8[json_name = "location"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } @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:daml_lf_1.TemplateChoice) } // @@protoc_insertion_point(class_scope:daml_lf_1.TemplateChoice) private static final com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TemplateChoice parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TemplateChoice(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.KeyExpr) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ boolean hasProjections(); /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections getProjections(); /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder getProjectionsOrBuilder(); /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ boolean hasRecord(); /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record getRecord(); /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder getRecordOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.SumCase getSumCase(); } /** *
   * we restrict key expressions to records of projections, much like SQL
   * 
* * Protobuf type {@code daml_lf_1.KeyExpr} */ public static final class KeyExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.KeyExpr) KeyExprOrBuilder { private static final long serialVersionUID = 0L; // Use KeyExpr.newBuilder() to construct. private KeyExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyExpr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeyExpr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_).toBuilder(); } sum_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder.class); } public interface ProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.KeyExpr.Projection) com.google.protobuf.MessageOrBuilder { /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.FieldCase getFieldCase(); } /** * Protobuf type {@code daml_lf_1.KeyExpr.Projection} */ public static final class Projection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.KeyExpr.Projection) ProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use Projection.newBuilder() to construct. private Projection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Projection() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Projection(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Projection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 2; field_ = s; break; } case 24: { fieldCase_ = 3; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(2), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 2: return FIELD_STR; case 3: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELD_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } 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(); if (fieldCase_ == 2) { field_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 2) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } if (fieldCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (fieldCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection other = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 2: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 3: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } switch (fieldCase_) { case 2: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 3: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection 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; } /** * Protobuf type {@code daml_lf_1.KeyExpr.Projection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.KeyExpr.Projection) com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection build() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection result = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection(this); if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (fieldCase_ == 2) { result.field_ = field_; } if (fieldCase_ == 3) { result.field_ = field_; } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 2; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 2) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 2) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 2) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 2; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 2) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 2; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; 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:daml_lf_1.KeyExpr.Projection) } // @@protoc_insertion_point(class_scope:daml_lf_1.KeyExpr.Projection) private static final com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Projection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Projection(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProjectionsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.KeyExpr.Projections) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ java.util.List getProjectionsList(); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection getProjections(int index); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ int getProjectionsCount(); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ java.util.List getProjectionsOrBuilderList(); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder getProjectionsOrBuilder( int index); } /** *
     * note that the projection is always referring to the template parameter.
     * 
* * Protobuf type {@code daml_lf_1.KeyExpr.Projections} */ public static final class Projections extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.KeyExpr.Projections) ProjectionsOrBuilder { private static final long serialVersionUID = 0L; // Use Projections.newBuilder() to construct. private Projections(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Projections() { projections_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Projections(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Projections( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { projections_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } projections_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projections_ = java.util.Collections.unmodifiableList(projections_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder.class); } public static final int PROJECTIONS_FIELD_NUMBER = 2; private java.util.List projections_; /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public java.util.List getProjectionsList() { return projections_; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public java.util.List getProjectionsOrBuilderList() { return projections_; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public int getProjectionsCount() { return projections_.size(); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection getProjections(int index) { return projections_.get(index); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder getProjectionsOrBuilder( int index) { return projections_.get(index); } 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 { for (int i = 0; i < projections_.size(); i++) { output.writeMessage(2, projections_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < projections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, projections_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections other = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) obj; if (!getProjectionsList() .equals(other.getProjectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getProjectionsCount() > 0) { hash = (37 * hash) + PROJECTIONS_FIELD_NUMBER; hash = (53 * hash) + getProjectionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections 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; } /** *
       * note that the projection is always referring to the template parameter.
       * 
* * Protobuf type {@code daml_lf_1.KeyExpr.Projections} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.KeyExpr.Projections) com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getProjectionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (projectionsBuilder_ == null) { projections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { projectionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections build() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections result = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections(this); int from_bitField0_ = bitField0_; if (projectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { projections_ = java.util.Collections.unmodifiableList(projections_); bitField0_ = (bitField0_ & ~0x00000001); } result.projections_ = projections_; } else { result.projections_ = projectionsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance()) return this; if (projectionsBuilder_ == null) { if (!other.projections_.isEmpty()) { if (projections_.isEmpty()) { projections_ = other.projections_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureProjectionsIsMutable(); projections_.addAll(other.projections_); } onChanged(); } } else { if (!other.projections_.isEmpty()) { if (projectionsBuilder_.isEmpty()) { projectionsBuilder_.dispose(); projectionsBuilder_ = null; projections_ = other.projections_; bitField0_ = (bitField0_ & ~0x00000001); projectionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProjectionsFieldBuilder() : null; } else { projectionsBuilder_.addAllMessages(other.projections_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List projections_ = java.util.Collections.emptyList(); private void ensureProjectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projections_ = new java.util.ArrayList(projections_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder> projectionsBuilder_; /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public java.util.List getProjectionsList() { if (projectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(projections_); } else { return projectionsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public int getProjectionsCount() { if (projectionsBuilder_ == null) { return projections_.size(); } else { return projectionsBuilder_.getCount(); } } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection getProjections(int index) { if (projectionsBuilder_ == null) { return projections_.get(index); } else { return projectionsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder setProjections( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection value) { if (projectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.set(index, value); onChanged(); } else { projectionsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder setProjections( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder builderForValue) { if (projectionsBuilder_ == null) { ensureProjectionsIsMutable(); projections_.set(index, builderForValue.build()); onChanged(); } else { projectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder addProjections(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection value) { if (projectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.add(value); onChanged(); } else { projectionsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder addProjections( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection value) { if (projectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.add(index, value); onChanged(); } else { projectionsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder addProjections( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder builderForValue) { if (projectionsBuilder_ == null) { ensureProjectionsIsMutable(); projections_.add(builderForValue.build()); onChanged(); } else { projectionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder addProjections( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder builderForValue) { if (projectionsBuilder_ == null) { ensureProjectionsIsMutable(); projections_.add(index, builderForValue.build()); onChanged(); } else { projectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder addAllProjections( java.lang.Iterable values) { if (projectionsBuilder_ == null) { ensureProjectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, projections_); onChanged(); } else { projectionsBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder clearProjections() { if (projectionsBuilder_ == null) { projections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { projectionsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public Builder removeProjections(int index) { if (projectionsBuilder_ == null) { ensureProjectionsIsMutable(); projections_.remove(index); onChanged(); } else { projectionsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder getProjectionsBuilder( int index) { return getProjectionsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder getProjectionsOrBuilder( int index) { if (projectionsBuilder_ == null) { return projections_.get(index); } else { return projectionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public java.util.List getProjectionsOrBuilderList() { if (projectionsBuilder_ != null) { return projectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(projections_); } } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder addProjectionsBuilder() { return getProjectionsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder addProjectionsBuilder( int index) { return getProjectionsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2[json_name = "projections"]; */ public java.util.List getProjectionsBuilderList() { return getProjectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder> getProjectionsFieldBuilder() { if (projectionsBuilder_ == null) { projectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projection.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionOrBuilder>( projections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); projections_ = null; } return projectionsBuilder_; } @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:daml_lf_1.KeyExpr.Projections) } // @@protoc_insertion_point(class_scope:daml_lf_1.KeyExpr.Projections) private static final com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Projections parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Projections(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecordFieldOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.KeyExpr.RecordField) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ int getFieldInternedStr(); /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getExpr(); /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder getExprOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.FieldCase getFieldCase(); } /** * Protobuf type {@code daml_lf_1.KeyExpr.RecordField} */ public static final class RecordField extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.KeyExpr.RecordField) RecordFieldOrBuilder { private static final long serialVersionUID = 0L; // Use RecordField.newBuilder() to construct. private RecordField(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordField() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecordField(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordField( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 1; field_ = s; break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 24: { fieldCase_ = 3; field_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldCase valueOf(int value) { return forNumber(value); } public static FieldCase forNumber(int value) { switch (value) { case 1: return FIELD_STR; case 3: return FIELD_INTERNED_STR; case 0: return FIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public static final int FIELD_STR_FIELD_NUMBER = 1; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } 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(); if (fieldCase_ == 1) { field_ = s; } return s; } } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; /** *
       * *Must be a valid identifier*
       * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr expr_; /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder getExprOrBuilder() { return getExpr(); } 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 (fieldCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } if (expr_ != null) { output.writeMessage(2, getExpr()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField other = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField) obj; if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (!getFieldCase().equals(other.getFieldCase())) return false; switch (fieldCase_) { case 1: if (!getFieldStr() .equals(other.getFieldStr())) return false; break; case 3: if (getFieldInternedStr() != other.getFieldInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } switch (fieldCase_) { case 1: hash = (37 * hash) + FIELD_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldStr().hashCode(); break; case 3: hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField 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; } /** * Protobuf type {@code daml_lf_1.KeyExpr.RecordField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.KeyExpr.RecordField) com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField build() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField result = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 3) { result.field_ = field_; } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } result.fieldCase_ = fieldCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.getDefaultInstance()) return this; if (other.hasExpr()) { mergeExpr(other.getExpr()); } switch (other.getFieldCase()) { case FIELD_STR: { fieldCase_ = 1; field_ = other.field_; onChanged(); break; } case FIELD_INTERNED_STR: { setFieldInternedStr(other.getFieldInternedStr()); break; } case FIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fieldCase_ = 0; private java.lang.Object field_; public FieldCase getFieldCase() { return FieldCase.forNumber( fieldCase_); } public Builder clearField() { fieldCase_ = 0; field_ = null; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public java.lang.String getFieldStr() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldCase_ == 1) { field_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public com.google.protobuf.ByteString getFieldStrBytes() { java.lang.Object ref = ""; if (fieldCase_ == 1) { ref = field_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldCase_ == 1) { field_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1[json_name = "fieldStr"]; */ public Builder setFieldStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldCase_ = 1; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * int32 field_interned_str = 3[json_name = "fieldInternedStr"]; */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder> exprBuilder_; /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.KeyExpr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } @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:daml_lf_1.KeyExpr.RecordField) } // @@protoc_insertion_point(class_scope:daml_lf_1.KeyExpr.RecordField) private static final com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordField parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordField(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecordOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.KeyExpr.Record) com.google.protobuf.MessageOrBuilder { /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ boolean hasTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ java.util.List getFieldsList(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField getFields(int index); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ int getFieldsCount(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ java.util.List getFieldsOrBuilderList(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder getFieldsOrBuilder( int index); } /** * Protobuf type {@code daml_lf_1.KeyExpr.Record} */ public static final class Record extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.KeyExpr.Record) RecordOrBuilder { private static final long serialVersionUID = 0L; // Use Record.newBuilder() to construct. private Record(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Record() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Record(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Record( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tycon_); tycon_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fields_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder.class); } public static final int TYCON_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tycon_ != null; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELDS_FIELD_NUMBER = 2; private java.util.List fields_; /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public java.util.List getFieldsList() { return fields_; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public int getFieldsCount() { return fields_.size(); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField getFields(int index) { return fields_.get(index); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } 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 (tycon_ != null) { output.writeMessage(1, getTycon()); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(2, fields_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tycon_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fields_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record other = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (!getFieldsList() .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTycon()) { hash = (37 * hash) + TYCON_FIELD_NUMBER; hash = (53 * hash) + getTycon().hashCode(); } if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record 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; } /** * Protobuf type {@code daml_lf_1.KeyExpr.Record} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.KeyExpr.Record) com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (tyconBuilder_ == null) { tycon_ = null; } else { tycon_ = null; tyconBuilder_ = null; } if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fieldsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record build() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record result = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record(this); int from_bitField0_ = bitField0_; if (tyconBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconBuilder_.build(); } if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconBuilder_.setMessage(value); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder setTycon( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder builderForValue) { if (tyconBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder mergeTycon(com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { tyconBuilder_.mergeFrom(value); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public Builder clearTycon() { if (tyconBuilder_ == null) { tycon_ = null; onChanged(); } else { tycon_ = null; tyconBuilder_ = null; } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder> fieldsBuilder_; /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder addFields(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder addFields( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2[json_name = "fields"]; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordField.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordFieldOrBuilder>( fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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:daml_lf_1.KeyExpr.Record) } // @@protoc_insertion_point(class_scope:daml_lf_1.KeyExpr.Record) private static final com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Record parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Record(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite { PROJECTIONS(1), RECORD(2), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SumCase valueOf(int value) { return forNumber(value); } public static SumCase forNumber(int value) { switch (value) { case 1: return PROJECTIONS; case 2: return RECORD; case 0: return SUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public static final int PROJECTIONS_FIELD_NUMBER = 1; /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public boolean hasProjections() { return sumCase_ == 1; } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections getProjections() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder getProjectionsOrBuilder() { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } public static final int RECORD_FIELD_NUMBER = 2; /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public boolean hasRecord() { return sumCase_ == 2; } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record getRecord() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder getRecordOrBuilder() { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } 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 (sumCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr other = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getProjections() .equals(other.getProjections())) return false; break; case 2: if (!getRecord() .equals(other.getRecord())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (sumCase_) { case 1: hash = (37 * hash) + PROJECTIONS_FIELD_NUMBER; hash = (53 * hash) + getProjections().hashCode(); break; case 2: hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr 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; } /** *
     * we restrict key expressions to records of projections, much like SQL
     * 
* * Protobuf type {@code daml_lf_1.KeyExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.KeyExpr) com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.class, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sumCase_ = 0; sum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_KeyExpr_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr build() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr result = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr(this); if (sumCase_ == 1) { if (projectionsBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = projectionsBuilder_.build(); } } if (sumCase_ == 2) { if (recordBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = recordBuilder_.build(); } } result.sumCase_ = sumCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance()) return this; switch (other.getSumCase()) { case PROJECTIONS: { mergeProjections(other.getProjections()); break; } case RECORD: { mergeRecord(other.getRecord()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sumCase_ = 0; private java.lang.Object sum_; public SumCase getSumCase() { return SumCase.forNumber( sumCase_); } public Builder clearSum() { sumCase_ = 0; sum_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder> projectionsBuilder_; /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public boolean hasProjections() { return sumCase_ == 1; } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections getProjections() { if (projectionsBuilder_ == null) { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } else { if (sumCase_ == 1) { return projectionsBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public Builder setProjections(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections value) { if (projectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { projectionsBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public Builder setProjections( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder builderForValue) { if (projectionsBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { projectionsBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public Builder mergeProjections(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections value) { if (projectionsBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1) { projectionsBuilder_.mergeFrom(value); } projectionsBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public Builder clearProjections() { if (projectionsBuilder_ == null) { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; } projectionsBuilder_.clear(); } return this; } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder getProjectionsBuilder() { return getProjectionsFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder getProjectionsOrBuilder() { if ((sumCase_ == 1) && (projectionsBuilder_ != null)) { return projectionsBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Projections projections = 1[json_name = "projections"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder> getProjectionsFieldBuilder() { if (projectionsBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } projectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.ProjectionsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Projections) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return projectionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder> recordBuilder_; /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public boolean hasRecord() { return sumCase_ == 2; } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record getRecord() { if (recordBuilder_ == null) { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } else { if (sumCase_ == 2) { return recordBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public Builder setRecord(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public Builder setRecord( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder builderForValue) { if (recordBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public Builder mergeRecord(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record value) { if (recordBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance()) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { recordBuilder_.mergeFrom(value); } recordBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public Builder clearRecord() { if (recordBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } recordBuilder_.clear(); } return this; } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder getRecordOrBuilder() { if ((sumCase_ == 2) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Record record = 2[json_name = "record"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.RecordOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Record) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return recordBuilder_; } @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:daml_lf_1.KeyExpr) } // @@protoc_insertion_point(class_scope:daml_lf_1.KeyExpr) private static final com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeyExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyExpr(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefTemplate) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ boolean hasTyconDname(); /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getTyconDname(); /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getTyconDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 12[json_name = "tyconInternedDname"]; */ int getTyconInternedDname(); /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2[json_name = "paramStr"]; */ java.lang.String getParamStr(); /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2[json_name = "paramStr"]; */ com.google.protobuf.ByteString getParamStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 11[json_name = "paramInternedStr"]; */ int getParamInternedStr(); /** *
     * Pre-condition that the template argument must satisfy.
     * When present, it has type `Bool` and the template parameter in scope.
     * *Optional*, interpreted as 'True' if undefined
     * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ boolean hasPrecond(); /** *
     * Pre-condition that the template argument must satisfy.
     * When present, it has type `Bool` and the template parameter in scope.
     * *Optional*, interpreted as 'True' if undefined
     * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getPrecond(); /** *
     * Pre-condition that the template argument must satisfy.
     * When present, it has type `Bool` and the template parameter in scope.
     * *Optional*, interpreted as 'True' if undefined
     * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPrecondOrBuilder(); /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ boolean hasSignatories(); /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getSignatories(); /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getSignatoriesOrBuilder(); /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ boolean hasAgreement(); /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getAgreement(); /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getAgreementOrBuilder(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ java.util.List getChoicesList(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice getChoices(int index); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ int getChoicesCount(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ java.util.List getChoicesOrBuilderList(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index); /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ boolean hasObservers(); /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getObservers(); /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getObserversOrBuilder(); /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ boolean hasLocation(); /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** *
     * They key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ boolean hasKey(); /** *
     * They key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey getKey(); /** *
     * They key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder getKeyOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.TyconCase getTyconCase(); public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.ParamCase getParamCase(); } /** *
   * Contract template definition
   * 
* * Protobuf type {@code daml_lf_1.DefTemplate} */ public static final class DefTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefTemplate) DefTemplateOrBuilder { private static final long serialVersionUID = 0L; // Use DefTemplate.newBuilder() to construct. private DefTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefTemplate() { choices_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefTemplate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder subBuilder = null; if (tyconCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_).toBuilder(); } tycon_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_); tycon_ = subBuilder.buildPartial(); } tyconCase_ = 1; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); paramCase_ = 2; param_ = s; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (precond_ != null) { subBuilder = precond_.toBuilder(); } precond_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(precond_); precond_ = subBuilder.buildPartial(); } break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (signatories_ != null) { subBuilder = signatories_.toBuilder(); } signatories_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signatories_); signatories_ = subBuilder.buildPartial(); } break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (agreement_ != null) { subBuilder = agreement_.toBuilder(); } agreement_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agreement_); agreement_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { choices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } choices_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.parser(), extensionRegistry)); break; } case 66: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (observers_ != null) { subBuilder = observers_.toBuilder(); } observers_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(observers_); observers_ = subBuilder.buildPartial(); } break; } case 74: { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 82: { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 88: { paramCase_ = 11; param_ = input.readInt32(); break; } case 96: { tyconCase_ = 12; tycon_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { choices_ = java.util.Collections.unmodifiableList(choices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder.class); } public interface DefKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefTemplate.DefKey) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ boolean hasType(); /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ boolean hasKey(); /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getKey(); /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder getKeyOrBuilder(); /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ boolean hasComplexKey(); /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getComplexKey(); /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getComplexKeyOrBuilder(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ boolean hasMaintainers(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getMaintainers(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getMaintainersOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.KeyExprCase getKeyExprCase(); } /** * Protobuf type {@code daml_lf_1.DefTemplate.DefKey} */ public static final class DefKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefTemplate.DefKey) DefKeyOrBuilder { private static final long serialVersionUID = 0L; // Use DefKey.newBuilder() to construct. private DefKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefKey() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefKey(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder subBuilder = null; if (keyExprCase_ == 2) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_).toBuilder(); } keyExpr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_); keyExpr_ = subBuilder.buildPartial(); } keyExprCase_ = 2; break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (maintainers_ != null) { subBuilder = maintainers_.toBuilder(); } maintainers_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maintainers_); maintainers_ = subBuilder.buildPartial(); } break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (keyExprCase_ == 4) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_).toBuilder(); } keyExpr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_); keyExpr_ = subBuilder.buildPartial(); } keyExprCase_ = 4; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder.class); } private int keyExprCase_ = 0; private java.lang.Object keyExpr_; public enum KeyExprCase implements com.google.protobuf.Internal.EnumLite { KEY(2), COMPLEX_KEY(4), KEYEXPR_NOT_SET(0); private final int value; private KeyExprCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KeyExprCase valueOf(int value) { return forNumber(value); } public static KeyExprCase forNumber(int value) { switch (value) { case 2: return KEY; case 4: return COMPLEX_KEY; case 0: return KEYEXPR_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KeyExprCase getKeyExprCase() { return KeyExprCase.forNumber( keyExprCase_); } public static final int TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int KEY_FIELD_NUMBER = 2; /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public boolean hasKey() { return keyExprCase_ == 2; } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getKey() { if (keyExprCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder getKeyOrBuilder() { if (keyExprCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } public static final int COMPLEX_KEY_FIELD_NUMBER = 4; /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public boolean hasComplexKey() { return keyExprCase_ == 4; } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getComplexKey() { if (keyExprCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getComplexKeyOrBuilder() { if (keyExprCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } public static final int MAINTAINERS_FIELD_NUMBER = 3; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr maintainers_; /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public boolean hasMaintainers() { return maintainers_ != null; } /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getMaintainers() { return maintainers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : maintainers_; } /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getMaintainersOrBuilder() { return getMaintainers(); } 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 (type_ != null) { output.writeMessage(1, getType()); } if (keyExprCase_ == 2) { output.writeMessage(2, (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_); } if (maintainers_ != null) { output.writeMessage(3, getMaintainers()); } if (keyExprCase_ == 4) { output.writeMessage(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (keyExprCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_); } if (maintainers_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaintainers()); } if (keyExprCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasMaintainers() != other.hasMaintainers()) return false; if (hasMaintainers()) { if (!getMaintainers() .equals(other.getMaintainers())) return false; } if (!getKeyExprCase().equals(other.getKeyExprCase())) return false; switch (keyExprCase_) { case 2: if (!getKey() .equals(other.getKey())) return false; break; case 4: if (!getComplexKey() .equals(other.getComplexKey())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasMaintainers()) { hash = (37 * hash) + MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getMaintainers().hashCode(); } switch (keyExprCase_) { case 2: hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); break; case 4: hash = (37 * hash) + COMPLEX_KEY_FIELD_NUMBER; hash = (53 * hash) + getComplexKey().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey 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; } /** * Protobuf type {@code daml_lf_1.DefTemplate.DefKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefTemplate.DefKey) com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (maintainersBuilder_ == null) { maintainers_ = null; } else { maintainers_ = null; maintainersBuilder_ = null; } keyExprCase_ = 0; keyExpr_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey(this); if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (keyExprCase_ == 2) { if (keyBuilder_ == null) { result.keyExpr_ = keyExpr_; } else { result.keyExpr_ = keyBuilder_.build(); } } if (keyExprCase_ == 4) { if (complexKeyBuilder_ == null) { result.keyExpr_ = keyExpr_; } else { result.keyExpr_ = complexKeyBuilder_.build(); } } if (maintainersBuilder_ == null) { result.maintainers_ = maintainers_; } else { result.maintainers_ = maintainersBuilder_.build(); } result.keyExprCase_ = keyExprCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasMaintainers()) { mergeMaintainers(other.getMaintainers()); } switch (other.getKeyExprCase()) { case KEY: { mergeKey(other.getKey()); break; } case COMPLEX_KEY: { mergeComplexKey(other.getComplexKey()); break; } case KEYEXPR_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int keyExprCase_ = 0; private java.lang.Object keyExpr_; public KeyExprCase getKeyExprCase() { return KeyExprCase.forNumber( keyExprCase_); } public Builder clearKeyExpr() { keyExprCase_ = 0; keyExpr_ = null; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 1[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder> keyBuilder_; /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public boolean hasKey() { return keyExprCase_ == 2; } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr getKey() { if (keyBuilder_ == null) { if (keyExprCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } else { if (keyExprCase_ == 2) { return keyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public Builder setKey(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyExpr_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } keyExprCase_ = 2; return this; } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public Builder setKey( com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder builderForValue) { if (keyBuilder_ == null) { keyExpr_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } keyExprCase_ = 2; return this; } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public Builder mergeKey(com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr value) { if (keyBuilder_ == null) { if (keyExprCase_ == 2 && keyExpr_ != com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance()) { keyExpr_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_) .mergeFrom(value).buildPartial(); } else { keyExpr_ = value; } onChanged(); } else { if (keyExprCase_ == 2) { keyBuilder_.mergeFrom(value); } keyBuilder_.setMessage(value); } keyExprCase_ = 2; return this; } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public Builder clearKey() { if (keyBuilder_ == null) { if (keyExprCase_ == 2) { keyExprCase_ = 0; keyExpr_ = null; onChanged(); } } else { if (keyExprCase_ == 2) { keyExprCase_ = 0; keyExpr_ = null; } keyBuilder_.clear(); } return this; } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder getKeyOrBuilder() { if ((keyExprCase_ == 2) && (keyBuilder_ != null)) { return keyBuilder_.getMessageOrBuilder(); } else { if (keyExprCase_ == 2) { return (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr key = 2[json_name = "key"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { if (!(keyExprCase_ == 2)) { keyExpr_ = com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.getDefaultInstance(); } keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.KeyExprOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.KeyExpr) keyExpr_, getParentForChildren(), isClean()); keyExpr_ = null; } keyExprCase_ = 2; onChanged();; return keyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> complexKeyBuilder_; /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public boolean hasComplexKey() { return keyExprCase_ == 4; } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getComplexKey() { if (complexKeyBuilder_ == null) { if (keyExprCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } else { if (keyExprCase_ == 4) { return complexKeyBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public Builder setComplexKey(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (complexKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyExpr_ = value; onChanged(); } else { complexKeyBuilder_.setMessage(value); } keyExprCase_ = 4; return this; } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public Builder setComplexKey( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (complexKeyBuilder_ == null) { keyExpr_ = builderForValue.build(); onChanged(); } else { complexKeyBuilder_.setMessage(builderForValue.build()); } keyExprCase_ = 4; return this; } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public Builder mergeComplexKey(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (complexKeyBuilder_ == null) { if (keyExprCase_ == 4 && keyExpr_ != com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance()) { keyExpr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_) .mergeFrom(value).buildPartial(); } else { keyExpr_ = value; } onChanged(); } else { if (keyExprCase_ == 4) { complexKeyBuilder_.mergeFrom(value); } complexKeyBuilder_.setMessage(value); } keyExprCase_ = 4; return this; } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public Builder clearComplexKey() { if (complexKeyBuilder_ == null) { if (keyExprCase_ == 4) { keyExprCase_ = 0; keyExpr_ = null; onChanged(); } } else { if (keyExprCase_ == 4) { keyExprCase_ = 0; keyExpr_ = null; } complexKeyBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getComplexKeyBuilder() { return getComplexKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getComplexKeyOrBuilder() { if ((keyExprCase_ == 4) && (complexKeyBuilder_ != null)) { return complexKeyBuilder_.getMessageOrBuilder(); } else { if (keyExprCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_; } return com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr complex_key = 4[json_name = "complexKey"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getComplexKeyFieldBuilder() { if (complexKeyBuilder_ == null) { if (!(keyExprCase_ == 4)) { keyExpr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance(); } complexKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.Expr) keyExpr_, getParentForChildren(), isClean()); keyExpr_ = null; } keyExprCase_ = 4; onChanged();; return complexKeyBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr maintainers_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> maintainersBuilder_; /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public boolean hasMaintainers() { return maintainersBuilder_ != null || maintainers_ != null; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getMaintainers() { if (maintainersBuilder_ == null) { return maintainers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : maintainers_; } else { return maintainersBuilder_.getMessage(); } } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public Builder setMaintainers(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (maintainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maintainers_ = value; onChanged(); } else { maintainersBuilder_.setMessage(value); } return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public Builder setMaintainers( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (maintainersBuilder_ == null) { maintainers_ = builderForValue.build(); onChanged(); } else { maintainersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public Builder mergeMaintainers(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (maintainersBuilder_ == null) { if (maintainers_ != null) { maintainers_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(maintainers_).mergeFrom(value).buildPartial(); } else { maintainers_ = value; } onChanged(); } else { maintainersBuilder_.mergeFrom(value); } return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public Builder clearMaintainers() { if (maintainersBuilder_ == null) { maintainers_ = null; onChanged(); } else { maintainers_ = null; maintainersBuilder_ = null; } return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getMaintainersBuilder() { onChanged(); return getMaintainersFieldBuilder().getBuilder(); } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getMaintainersOrBuilder() { if (maintainersBuilder_ != null) { return maintainersBuilder_.getMessageOrBuilder(); } else { return maintainers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : maintainers_; } } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3[json_name = "maintainers"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getMaintainersFieldBuilder() { if (maintainersBuilder_ == null) { maintainersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getMaintainers(), getParentForChildren(), isClean()); maintainers_ = null; } return maintainersBuilder_; } @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:daml_lf_1.DefTemplate.DefKey) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefTemplate.DefKey) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefKey(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int tyconCase_ = 0; private java.lang.Object tycon_; public enum TyconCase implements com.google.protobuf.Internal.EnumLite { TYCON_DNAME(1), TYCON_INTERNED_DNAME(12), TYCON_NOT_SET(0); private final int value; private TyconCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TyconCase valueOf(int value) { return forNumber(value); } public static TyconCase forNumber(int value) { switch (value) { case 1: return TYCON_DNAME; case 12: return TYCON_INTERNED_DNAME; case 0: return TYCON_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TyconCase getTyconCase() { return TyconCase.forNumber( tyconCase_); } private int paramCase_ = 0; private java.lang.Object param_; public enum ParamCase implements com.google.protobuf.Internal.EnumLite { PARAM_STR(2), PARAM_INTERNED_STR(11), PARAM_NOT_SET(0); private final int value; private ParamCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ParamCase valueOf(int value) { return forNumber(value); } public static ParamCase forNumber(int value) { switch (value) { case 2: return PARAM_STR; case 11: return PARAM_INTERNED_STR; case 0: return PARAM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ParamCase getParamCase() { return ParamCase.forNumber( paramCase_); } public static final int TYCON_DNAME_FIELD_NUMBER = 1; /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public boolean hasTyconDname() { return tyconCase_ == 1; } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getTyconDname() { if (tyconCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getTyconDnameOrBuilder() { if (tyconCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } public static final int TYCON_INTERNED_DNAME_FIELD_NUMBER = 12; /** *
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 12[json_name = "tyconInternedDname"]; */ public int getTyconInternedDname() { if (tyconCase_ == 12) { return (java.lang.Integer) tycon_; } return 0; } public static final int PARAM_STR_FIELD_NUMBER = 2; /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2[json_name = "paramStr"]; */ public java.lang.String getParamStr() { java.lang.Object ref = ""; if (paramCase_ == 2) { ref = param_; } 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(); if (paramCase_ == 2) { param_ = s; } return s; } } /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2[json_name = "paramStr"]; */ public com.google.protobuf.ByteString getParamStrBytes() { java.lang.Object ref = ""; if (paramCase_ == 2) { ref = param_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (paramCase_ == 2) { param_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAM_INTERNED_STR_FIELD_NUMBER = 11; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 11[json_name = "paramInternedStr"]; */ public int getParamInternedStr() { if (paramCase_ == 11) { return (java.lang.Integer) param_; } return 0; } public static final int PRECOND_FIELD_NUMBER = 4; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr precond_; /** *
     * Pre-condition that the template argument must satisfy.
     * When present, it has type `Bool` and the template parameter in scope.
     * *Optional*, interpreted as 'True' if undefined
     * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public boolean hasPrecond() { return precond_ != null; } /** *
     * Pre-condition that the template argument must satisfy.
     * When present, it has type `Bool` and the template parameter in scope.
     * *Optional*, interpreted as 'True' if undefined
     * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getPrecond() { return precond_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : precond_; } /** *
     * Pre-condition that the template argument must satisfy.
     * When present, it has type `Bool` and the template parameter in scope.
     * *Optional*, interpreted as 'True' if undefined
     * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPrecondOrBuilder() { return getPrecond(); } public static final int SIGNATORIES_FIELD_NUMBER = 5; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr signatories_; /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public boolean hasSignatories() { return signatories_ != null; } /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getSignatories() { return signatories_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : signatories_; } /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getSignatoriesOrBuilder() { return getSignatories(); } public static final int AGREEMENT_FIELD_NUMBER = 6; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr agreement_; /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public boolean hasAgreement() { return agreement_ != null; } /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getAgreement() { return agreement_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : agreement_; } /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getAgreementOrBuilder() { return getAgreement(); } public static final int CHOICES_FIELD_NUMBER = 7; private java.util.List choices_; /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public java.util.List getChoicesList() { return choices_; } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public java.util.List getChoicesOrBuilderList() { return choices_; } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public int getChoicesCount() { return choices_.size(); } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice getChoices(int index) { return choices_.get(index); } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { return choices_.get(index); } public static final int OBSERVERS_FIELD_NUMBER = 8; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr observers_; /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public boolean hasObservers() { return observers_ != null; } /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getObservers() { return observers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : observers_; } /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getObserversOrBuilder() { return getObservers(); } public static final int LOCATION_FIELD_NUMBER = 9; private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int KEY_FIELD_NUMBER = 10; private com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey key_; /** *
     * They key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public boolean hasKey() { return key_ != null; } /** *
     * They key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey getKey() { return key_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } /** *
     * They key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder getKeyOrBuilder() { return getKey(); } 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 (tyconCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_); } if (paramCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, param_); } if (precond_ != null) { output.writeMessage(4, getPrecond()); } if (signatories_ != null) { output.writeMessage(5, getSignatories()); } if (agreement_ != null) { output.writeMessage(6, getAgreement()); } for (int i = 0; i < choices_.size(); i++) { output.writeMessage(7, choices_.get(i)); } if (observers_ != null) { output.writeMessage(8, getObservers()); } if (location_ != null) { output.writeMessage(9, getLocation()); } if (key_ != null) { output.writeMessage(10, getKey()); } if (paramCase_ == 11) { output.writeInt32( 11, (int)((java.lang.Integer) param_)); } if (tyconCase_ == 12) { output.writeInt32( 12, (int)((java.lang.Integer) tycon_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tyconCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_); } if (paramCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, param_); } if (precond_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPrecond()); } if (signatories_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSignatories()); } if (agreement_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAgreement()); } for (int i = 0; i < choices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, choices_.get(i)); } if (observers_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getObservers()); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getLocation()); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getKey()); } if (paramCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 11, (int)((java.lang.Integer) param_)); } if (tyconCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 12, (int)((java.lang.Integer) tycon_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate) obj; if (hasPrecond() != other.hasPrecond()) return false; if (hasPrecond()) { if (!getPrecond() .equals(other.getPrecond())) return false; } if (hasSignatories() != other.hasSignatories()) return false; if (hasSignatories()) { if (!getSignatories() .equals(other.getSignatories())) return false; } if (hasAgreement() != other.hasAgreement()) return false; if (hasAgreement()) { if (!getAgreement() .equals(other.getAgreement())) return false; } if (!getChoicesList() .equals(other.getChoicesList())) return false; if (hasObservers() != other.hasObservers()) return false; if (hasObservers()) { if (!getObservers() .equals(other.getObservers())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (!getTyconCase().equals(other.getTyconCase())) return false; switch (tyconCase_) { case 1: if (!getTyconDname() .equals(other.getTyconDname())) return false; break; case 12: if (getTyconInternedDname() != other.getTyconInternedDname()) return false; break; case 0: default: } if (!getParamCase().equals(other.getParamCase())) return false; switch (paramCase_) { case 2: if (!getParamStr() .equals(other.getParamStr())) return false; break; case 11: if (getParamInternedStr() != other.getParamInternedStr()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPrecond()) { hash = (37 * hash) + PRECOND_FIELD_NUMBER; hash = (53 * hash) + getPrecond().hashCode(); } if (hasSignatories()) { hash = (37 * hash) + SIGNATORIES_FIELD_NUMBER; hash = (53 * hash) + getSignatories().hashCode(); } if (hasAgreement()) { hash = (37 * hash) + AGREEMENT_FIELD_NUMBER; hash = (53 * hash) + getAgreement().hashCode(); } if (getChoicesCount() > 0) { hash = (37 * hash) + CHOICES_FIELD_NUMBER; hash = (53 * hash) + getChoicesList().hashCode(); } if (hasObservers()) { hash = (37 * hash) + OBSERVERS_FIELD_NUMBER; hash = (53 * hash) + getObservers().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } switch (tyconCase_) { case 1: hash = (37 * hash) + TYCON_DNAME_FIELD_NUMBER; hash = (53 * hash) + getTyconDname().hashCode(); break; case 12: hash = (37 * hash) + TYCON_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getTyconInternedDname(); break; case 0: default: } switch (paramCase_) { case 2: hash = (37 * hash) + PARAM_STR_FIELD_NUMBER; hash = (53 * hash) + getParamStr().hashCode(); break; case 11: hash = (37 * hash) + PARAM_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getParamInternedStr(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate 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 template definition
     * 
* * Protobuf type {@code daml_lf_1.DefTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefTemplate) com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChoicesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (precondBuilder_ == null) { precond_ = null; } else { precond_ = null; precondBuilder_ = null; } if (signatoriesBuilder_ == null) { signatories_ = null; } else { signatories_ = null; signatoriesBuilder_ = null; } if (agreementBuilder_ == null) { agreement_ = null; } else { agreement_ = null; agreementBuilder_ = null; } if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { choicesBuilder_.clear(); } if (observersBuilder_ == null) { observers_ = null; } else { observers_ = null; observersBuilder_ = null; } if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } tyconCase_ = 0; tycon_ = null; paramCase_ = 0; param_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefTemplate_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate(this); int from_bitField0_ = bitField0_; if (tyconCase_ == 1) { if (tyconDnameBuilder_ == null) { result.tycon_ = tycon_; } else { result.tycon_ = tyconDnameBuilder_.build(); } } if (tyconCase_ == 12) { result.tycon_ = tycon_; } if (paramCase_ == 2) { result.param_ = param_; } if (paramCase_ == 11) { result.param_ = param_; } if (precondBuilder_ == null) { result.precond_ = precond_; } else { result.precond_ = precondBuilder_.build(); } if (signatoriesBuilder_ == null) { result.signatories_ = signatories_; } else { result.signatories_ = signatoriesBuilder_.build(); } if (agreementBuilder_ == null) { result.agreement_ = agreement_; } else { result.agreement_ = agreementBuilder_.build(); } if (choicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { choices_ = java.util.Collections.unmodifiableList(choices_); bitField0_ = (bitField0_ & ~0x00000001); } result.choices_ = choices_; } else { result.choices_ = choicesBuilder_.build(); } if (observersBuilder_ == null) { result.observers_ = observers_; } else { result.observers_ = observersBuilder_.build(); } if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } result.tyconCase_ = tyconCase_; result.paramCase_ = paramCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.getDefaultInstance()) return this; if (other.hasPrecond()) { mergePrecond(other.getPrecond()); } if (other.hasSignatories()) { mergeSignatories(other.getSignatories()); } if (other.hasAgreement()) { mergeAgreement(other.getAgreement()); } if (choicesBuilder_ == null) { if (!other.choices_.isEmpty()) { if (choices_.isEmpty()) { choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChoicesIsMutable(); choices_.addAll(other.choices_); } onChanged(); } } else { if (!other.choices_.isEmpty()) { if (choicesBuilder_.isEmpty()) { choicesBuilder_.dispose(); choicesBuilder_ = null; choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00000001); choicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChoicesFieldBuilder() : null; } else { choicesBuilder_.addAllMessages(other.choices_); } } } if (other.hasObservers()) { mergeObservers(other.getObservers()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.hasKey()) { mergeKey(other.getKey()); } switch (other.getTyconCase()) { case TYCON_DNAME: { mergeTyconDname(other.getTyconDname()); break; } case TYCON_INTERNED_DNAME: { setTyconInternedDname(other.getTyconInternedDname()); break; } case TYCON_NOT_SET: { break; } } switch (other.getParamCase()) { case PARAM_STR: { paramCase_ = 2; param_ = other.param_; onChanged(); break; } case PARAM_INTERNED_STR: { setParamInternedStr(other.getParamInternedStr()); break; } case PARAM_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int tyconCase_ = 0; private java.lang.Object tycon_; public TyconCase getTyconCase() { return TyconCase.forNumber( tyconCase_); } public Builder clearTycon() { tyconCase_ = 0; tycon_ = null; onChanged(); return this; } private int paramCase_ = 0; private java.lang.Object param_; public ParamCase getParamCase() { return ParamCase.forNumber( paramCase_); } public Builder clearParam() { paramCase_ = 0; param_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> tyconDnameBuilder_; /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public boolean hasTyconDname() { return tyconCase_ == 1; } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getTyconDname() { if (tyconDnameBuilder_ == null) { if (tyconCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } else { if (tyconCase_ == 1) { return tyconDnameBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public Builder setTyconDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (tyconDnameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tycon_ = value; onChanged(); } else { tyconDnameBuilder_.setMessage(value); } tyconCase_ = 1; return this; } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public Builder setTyconDname( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder builderForValue) { if (tyconDnameBuilder_ == null) { tycon_ = builderForValue.build(); onChanged(); } else { tyconDnameBuilder_.setMessage(builderForValue.build()); } tyconCase_ = 1; return this; } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public Builder mergeTyconDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (tyconDnameBuilder_ == null) { if (tyconCase_ == 1 && tycon_ != com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance()) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_) .mergeFrom(value).buildPartial(); } else { tycon_ = value; } onChanged(); } else { if (tyconCase_ == 1) { tyconDnameBuilder_.mergeFrom(value); } tyconDnameBuilder_.setMessage(value); } tyconCase_ = 1; return this; } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public Builder clearTyconDname() { if (tyconDnameBuilder_ == null) { if (tyconCase_ == 1) { tyconCase_ = 0; tycon_ = null; onChanged(); } } else { if (tyconCase_ == 1) { tyconCase_ = 0; tycon_ = null; } tyconDnameBuilder_.clear(); } return this; } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder getTyconDnameBuilder() { return getTyconDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getTyconDnameOrBuilder() { if ((tyconCase_ == 1) && (tyconDnameBuilder_ != null)) { return tyconDnameBuilder_.getMessageOrBuilder(); } else { if (tyconCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName tycon_dname = 1[json_name = "tyconDname"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> getTyconDnameFieldBuilder() { if (tyconDnameBuilder_ == null) { if (!(tyconCase_ == 1)) { tycon_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } tyconDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) tycon_, getParentForChildren(), isClean()); tycon_ = null; } tyconCase_ = 1; onChanged();; return tyconDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 12[json_name = "tyconInternedDname"]; */ public int getTyconInternedDname() { if (tyconCase_ == 12) { return (java.lang.Integer) tycon_; } return 0; } /** *
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 12[json_name = "tyconInternedDname"]; */ public Builder setTyconInternedDname(int value) { tyconCase_ = 12; tycon_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 12[json_name = "tyconInternedDname"]; */ public Builder clearTyconInternedDname() { if (tyconCase_ == 12) { tyconCase_ = 0; tycon_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2[json_name = "paramStr"]; */ public java.lang.String getParamStr() { java.lang.Object ref = ""; if (paramCase_ == 2) { ref = param_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (paramCase_ == 2) { param_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2[json_name = "paramStr"]; */ public com.google.protobuf.ByteString getParamStrBytes() { java.lang.Object ref = ""; if (paramCase_ == 2) { ref = param_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (paramCase_ == 2) { param_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2[json_name = "paramStr"]; */ public Builder setParamStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paramCase_ = 2; param_ = value; onChanged(); return this; } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2[json_name = "paramStr"]; */ public Builder clearParamStr() { if (paramCase_ == 2) { paramCase_ = 0; param_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2[json_name = "paramStr"]; */ public Builder setParamStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paramCase_ = 2; param_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 11[json_name = "paramInternedStr"]; */ public int getParamInternedStr() { if (paramCase_ == 11) { return (java.lang.Integer) param_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 11[json_name = "paramInternedStr"]; */ public Builder setParamInternedStr(int value) { paramCase_ = 11; param_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 11[json_name = "paramInternedStr"]; */ public Builder clearParamInternedStr() { if (paramCase_ == 11) { paramCase_ = 0; param_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr precond_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> precondBuilder_; /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public boolean hasPrecond() { return precondBuilder_ != null || precond_ != null; } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getPrecond() { if (precondBuilder_ == null) { return precond_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : precond_; } else { return precondBuilder_.getMessage(); } } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public Builder setPrecond(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (precondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } precond_ = value; onChanged(); } else { precondBuilder_.setMessage(value); } return this; } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public Builder setPrecond( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (precondBuilder_ == null) { precond_ = builderForValue.build(); onChanged(); } else { precondBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public Builder mergePrecond(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (precondBuilder_ == null) { if (precond_ != null) { precond_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(precond_).mergeFrom(value).buildPartial(); } else { precond_ = value; } onChanged(); } else { precondBuilder_.mergeFrom(value); } return this; } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public Builder clearPrecond() { if (precondBuilder_ == null) { precond_ = null; onChanged(); } else { precond_ = null; precondBuilder_ = null; } return this; } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getPrecondBuilder() { onChanged(); return getPrecondFieldBuilder().getBuilder(); } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getPrecondOrBuilder() { if (precondBuilder_ != null) { return precondBuilder_.getMessageOrBuilder(); } else { return precond_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : precond_; } } /** *
       * Pre-condition that the template argument must satisfy.
       * When present, it has type `Bool` and the template parameter in scope.
       * *Optional*, interpreted as 'True' if undefined
       * 
* * .daml_lf_1.Expr precond = 4[json_name = "precond"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getPrecondFieldBuilder() { if (precondBuilder_ == null) { precondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getPrecond(), getParentForChildren(), isClean()); precond_ = null; } return precondBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr signatories_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> signatoriesBuilder_; /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public boolean hasSignatories() { return signatoriesBuilder_ != null || signatories_ != null; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getSignatories() { if (signatoriesBuilder_ == null) { return signatories_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : signatories_; } else { return signatoriesBuilder_.getMessage(); } } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public Builder setSignatories(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (signatoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signatories_ = value; onChanged(); } else { signatoriesBuilder_.setMessage(value); } return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public Builder setSignatories( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (signatoriesBuilder_ == null) { signatories_ = builderForValue.build(); onChanged(); } else { signatoriesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public Builder mergeSignatories(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (signatoriesBuilder_ == null) { if (signatories_ != null) { signatories_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(signatories_).mergeFrom(value).buildPartial(); } else { signatories_ = value; } onChanged(); } else { signatoriesBuilder_.mergeFrom(value); } return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public Builder clearSignatories() { if (signatoriesBuilder_ == null) { signatories_ = null; onChanged(); } else { signatories_ = null; signatoriesBuilder_ = null; } return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getSignatoriesBuilder() { onChanged(); return getSignatoriesFieldBuilder().getBuilder(); } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getSignatoriesOrBuilder() { if (signatoriesBuilder_ != null) { return signatoriesBuilder_.getMessageOrBuilder(); } else { return signatories_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : signatories_; } } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr signatories = 5[json_name = "signatories"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getSignatoriesFieldBuilder() { if (signatoriesBuilder_ == null) { signatoriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getSignatories(), getParentForChildren(), isClean()); signatories_ = null; } return signatoriesBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr agreement_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> agreementBuilder_; /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public boolean hasAgreement() { return agreementBuilder_ != null || agreement_ != null; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getAgreement() { if (agreementBuilder_ == null) { return agreement_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : agreement_; } else { return agreementBuilder_.getMessage(); } } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public Builder setAgreement(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (agreementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agreement_ = value; onChanged(); } else { agreementBuilder_.setMessage(value); } return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public Builder setAgreement( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (agreementBuilder_ == null) { agreement_ = builderForValue.build(); onChanged(); } else { agreementBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public Builder mergeAgreement(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (agreementBuilder_ == null) { if (agreement_ != null) { agreement_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(agreement_).mergeFrom(value).buildPartial(); } else { agreement_ = value; } onChanged(); } else { agreementBuilder_.mergeFrom(value); } return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public Builder clearAgreement() { if (agreementBuilder_ == null) { agreement_ = null; onChanged(); } else { agreement_ = null; agreementBuilder_ = null; } return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getAgreementBuilder() { onChanged(); return getAgreementFieldBuilder().getBuilder(); } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getAgreementOrBuilder() { if (agreementBuilder_ != null) { return agreementBuilder_.getMessageOrBuilder(); } else { return agreement_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : agreement_; } } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_1.Expr agreement = 6[json_name = "agreement"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getAgreementFieldBuilder() { if (agreementBuilder_ == null) { agreementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getAgreement(), getParentForChildren(), isClean()); agreement_ = null; } return agreementBuilder_; } private java.util.List choices_ = java.util.Collections.emptyList(); private void ensureChoicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { choices_ = new java.util.ArrayList(choices_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder> choicesBuilder_; /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public java.util.List getChoicesList() { if (choicesBuilder_ == null) { return java.util.Collections.unmodifiableList(choices_); } else { return choicesBuilder_.getMessageList(); } } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public int getChoicesCount() { if (choicesBuilder_ == null) { return choices_.size(); } else { return choicesBuilder_.getCount(); } } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice getChoices(int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessage(index); } } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder setChoices( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice value) { if (choicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChoicesIsMutable(); choices_.set(index, value); onChanged(); } else { choicesBuilder_.setMessage(index, value); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder setChoices( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.set(index, builderForValue.build()); onChanged(); } else { choicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder addChoices(com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice value) { if (choicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChoicesIsMutable(); choices_.add(value); onChanged(); } else { choicesBuilder_.addMessage(value); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder addChoices( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice value) { if (choicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChoicesIsMutable(); choices_.add(index, value); onChanged(); } else { choicesBuilder_.addMessage(index, value); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder addChoices( com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(builderForValue.build()); onChanged(); } else { choicesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder addChoices( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(index, builderForValue.build()); onChanged(); } else { choicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder addAllChoices( java.lang.Iterable values) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, choices_); onChanged(); } else { choicesBuilder_.addAllMessages(values); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder clearChoices() { if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { choicesBuilder_.clear(); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public Builder removeChoices(int index) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.remove(index); onChanged(); } else { choicesBuilder_.remove(index); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder getChoicesBuilder( int index) { return getChoicesFieldBuilder().getBuilder(index); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessageOrBuilder(index); } } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public java.util.List getChoicesOrBuilderList() { if (choicesBuilder_ != null) { return choicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(choices_); } } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder addChoicesBuilder() { return getChoicesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.getDefaultInstance()); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder addChoicesBuilder( int index) { return getChoicesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.getDefaultInstance()); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7[json_name = "choices"]; */ public java.util.List getChoicesBuilderList() { return getChoicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder> getChoicesFieldBuilder() { if (choicesBuilder_ == null) { choicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoice.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TemplateChoiceOrBuilder>( choices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); choices_ = null; } return choicesBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr observers_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> observersBuilder_; /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public boolean hasObservers() { return observersBuilder_ != null || observers_ != null; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getObservers() { if (observersBuilder_ == null) { return observers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : observers_; } else { return observersBuilder_.getMessage(); } } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public Builder setObservers(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (observersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } observers_ = value; onChanged(); } else { observersBuilder_.setMessage(value); } return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public Builder setObservers( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (observersBuilder_ == null) { observers_ = builderForValue.build(); onChanged(); } else { observersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public Builder mergeObservers(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (observersBuilder_ == null) { if (observers_ != null) { observers_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(observers_).mergeFrom(value).buildPartial(); } else { observers_ = value; } onChanged(); } else { observersBuilder_.mergeFrom(value); } return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public Builder clearObservers() { if (observersBuilder_ == null) { observers_ = null; onChanged(); } else { observers_ = null; observersBuilder_ = null; } return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getObserversBuilder() { onChanged(); return getObserversFieldBuilder().getBuilder(); } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getObserversOrBuilder() { if (observersBuilder_ != null) { return observersBuilder_.getMessageOrBuilder(); } else { return observers_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : observers_; } } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_1.Expr observers = 8[json_name = "observers"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getObserversFieldBuilder() { if (observersBuilder_ == null) { observersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getObservers(), getParentForChildren(), isClean()); observers_ = null; } return observersBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public Builder setLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public Builder setLocation( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public Builder mergeLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.digitalasset.daml_lf_1_7.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 9[json_name = "location"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey key_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder> keyBuilder_; /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey getKey() { if (keyBuilder_ == null) { return key_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public Builder setKey(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public Builder setKey( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public Builder mergeKey(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } } /** *
       * They key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10[json_name = "key"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKey.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.DefKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } @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:daml_lf_1.DefTemplate) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefTemplate) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefTemplate(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefDataTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefDataType) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ boolean hasNameDname(); /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname(); /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ int getNameInternedDname(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ java.util.List getParamsList(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getParams(int index); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ int getParamsCount(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ java.util.List getParamsOrBuilderList(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ boolean hasRecord(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getRecord(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder getRecordOrBuilder(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ boolean hasVariant(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getVariant(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder getVariantOrBuilder(); /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ boolean hasEnum(); /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors getEnum(); /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder(); /** *
     * If true, this data type preserves serializability in the sense that when
     * all parameters are instantiated with serializable types (of kind '*'),
     * then the resulting type is serializable as well.
     * This flag is used to simplify package validation by not requiring an
     * inference but only a check. Such a check must validate that this flag is
     * set correctly and that template and choice argument and result types
     * have this flag set to true.
     * 
* * bool serializable = 5[json_name = "serializable"]; */ boolean getSerializable(); /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ boolean hasLocation(); /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder(); public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.NameCase getNameCase(); public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.DataConsCase getDataConsCase(); } /** *
   * Data type definition
   * 
* * Protobuf type {@code daml_lf_1.DefDataType} */ public static final class DefDataType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefDataType) DefDataTypeOrBuilder { private static final long serialVersionUID = 0L; // Use DefDataType.newBuilder() to construct. private DefDataType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefDataType() { params_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefDataType(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefDataType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); name_ = subBuilder.buildPartial(); } nameCase_ = 1; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } params_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 26: { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder subBuilder = null; if (dataConsCase_ == 3) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 3; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder subBuilder = null; if (dataConsCase_ == 4) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 4; break; } case 40: { serializable_ = input.readBool(); break; } case 50: { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 58: { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder subBuilder = null; if (dataConsCase_ == 7) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 7; break; } case 64: { nameCase_ = 8; name_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder.class); } public interface FieldsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefDataType.Fields) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ java.util.List getFieldsList(); /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getFields(int index); /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ int getFieldsCount(); /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ java.util.List getFieldsOrBuilderList(); /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index); } /** * Protobuf type {@code daml_lf_1.DefDataType.Fields} */ public static final class Fields extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefDataType.Fields) FieldsOrBuilder { private static final long serialVersionUID = 0L; // Use Fields.newBuilder() to construct. private Fields(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Fields() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Fields(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Fields( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fields_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; private java.util.List fields_; /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsList() { return fields_; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public int getFieldsCount() { return fields_.size(); } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getFields(int index) { return fields_.get(index); } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } 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 { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, fields_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) obj; if (!getFieldsList() .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields 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; } /** * Protobuf type {@code daml_lf_1.DefDataType.Fields} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefDataType.Fields) com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fieldsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields(this); int from_bitField0_ = bitField0_; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance()) return this; if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder> fieldsBuilder_; /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder setFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields(com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addFields( int index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.getDefaultInstance()); } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.getDefaultInstance()); } /** * repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"]; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FieldWithTypeOrBuilder>( fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @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:daml_lf_1.DefDataType.Fields) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefDataType.Fields) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Fields parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Fields(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumConstructorsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefDataType.EnumConstructors) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ java.util.List getConstructorsStrList(); /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ int getConstructorsStrCount(); /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ java.lang.String getConstructorsStr(int index); /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ com.google.protobuf.ByteString getConstructorsStrBytes(int index); /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ java.util.List getConstructorsInternedStrList(); /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ int getConstructorsInternedStrCount(); /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ int getConstructorsInternedStr(int index); } /** *
     * *Available in versions >= 1.6*
     * 
* * Protobuf type {@code daml_lf_1.DefDataType.EnumConstructors} */ public static final class EnumConstructors extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefDataType.EnumConstructors) EnumConstructorsOrBuilder { private static final long serialVersionUID = 0L; // Use EnumConstructors.newBuilder() to construct. private EnumConstructors(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumConstructors() { constructorsStr_ = com.google.protobuf.LazyStringArrayList.EMPTY; constructorsInternedStr_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumConstructors(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumConstructors( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { constructorsStr_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } constructorsStr_.add(s); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { constructorsInternedStr_ = newIntList(); mutable_bitField0_ |= 0x00000002; } constructorsInternedStr_.addInt(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { constructorsInternedStr_ = newIntList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { constructorsInternedStr_.addInt(input.readInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { constructorsStr_ = constructorsStr_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { constructorsInternedStr_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder.class); } public static final int CONSTRUCTORS_STR_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList constructorsStr_; /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public com.google.protobuf.ProtocolStringList getConstructorsStrList() { return constructorsStr_; } /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public int getConstructorsStrCount() { return constructorsStr_.size(); } /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public java.lang.String getConstructorsStr(int index) { return constructorsStr_.get(index); } /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public com.google.protobuf.ByteString getConstructorsStrBytes(int index) { return constructorsStr_.getByteString(index); } public static final int CONSTRUCTORS_INTERNED_STR_FIELD_NUMBER = 2; private com.google.protobuf.Internal.IntList constructorsInternedStr_; /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public java.util.List getConstructorsInternedStrList() { return constructorsInternedStr_; } /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public int getConstructorsInternedStrCount() { return constructorsInternedStr_.size(); } /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public int getConstructorsInternedStr(int index) { return constructorsInternedStr_.getInt(index); } private int constructorsInternedStrMemoizedSerializedSize = -1; 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 { getSerializedSize(); for (int i = 0; i < constructorsStr_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, constructorsStr_.getRaw(i)); } if (getConstructorsInternedStrList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(constructorsInternedStrMemoizedSerializedSize); } for (int i = 0; i < constructorsInternedStr_.size(); i++) { output.writeInt32NoTag(constructorsInternedStr_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < constructorsStr_.size(); i++) { dataSize += computeStringSizeNoTag(constructorsStr_.getRaw(i)); } size += dataSize; size += 1 * getConstructorsStrList().size(); } { int dataSize = 0; for (int i = 0; i < constructorsInternedStr_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(constructorsInternedStr_.getInt(i)); } size += dataSize; if (!getConstructorsInternedStrList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } constructorsInternedStrMemoizedSerializedSize = dataSize; } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) obj; if (!getConstructorsStrList() .equals(other.getConstructorsStrList())) return false; if (!getConstructorsInternedStrList() .equals(other.getConstructorsInternedStrList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConstructorsStrCount() > 0) { hash = (37 * hash) + CONSTRUCTORS_STR_FIELD_NUMBER; hash = (53 * hash) + getConstructorsStrList().hashCode(); } if (getConstructorsInternedStrCount() > 0) { hash = (37 * hash) + CONSTRUCTORS_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getConstructorsInternedStrList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors 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; } /** *
       * *Available in versions >= 1.6*
       * 
* * Protobuf type {@code daml_lf_1.DefDataType.EnumConstructors} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefDataType.EnumConstructors) com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); constructorsStr_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); constructorsInternedStr_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { constructorsStr_ = constructorsStr_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.constructorsStr_ = constructorsStr_; if (((bitField0_ & 0x00000002) != 0)) { constructorsInternedStr_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.constructorsInternedStr_ = constructorsInternedStr_; 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance()) return this; if (!other.constructorsStr_.isEmpty()) { if (constructorsStr_.isEmpty()) { constructorsStr_ = other.constructorsStr_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConstructorsStrIsMutable(); constructorsStr_.addAll(other.constructorsStr_); } onChanged(); } if (!other.constructorsInternedStr_.isEmpty()) { if (constructorsInternedStr_.isEmpty()) { constructorsInternedStr_ = other.constructorsInternedStr_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConstructorsInternedStrIsMutable(); constructorsInternedStr_.addAll(other.constructorsInternedStr_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList constructorsStr_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConstructorsStrIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { constructorsStr_ = new com.google.protobuf.LazyStringArrayList(constructorsStr_); bitField0_ |= 0x00000001; } } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public com.google.protobuf.ProtocolStringList getConstructorsStrList() { return constructorsStr_.getUnmodifiableView(); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public int getConstructorsStrCount() { return constructorsStr_.size(); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public java.lang.String getConstructorsStr(int index) { return constructorsStr_.get(index); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public com.google.protobuf.ByteString getConstructorsStrBytes(int index) { return constructorsStr_.getByteString(index); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public Builder setConstructorsStr( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConstructorsStrIsMutable(); constructorsStr_.set(index, value); onChanged(); return this; } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public Builder addConstructorsStr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConstructorsStrIsMutable(); constructorsStr_.add(value); onChanged(); return this; } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public Builder addAllConstructorsStr( java.lang.Iterable values) { ensureConstructorsStrIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, constructorsStr_); onChanged(); return this; } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public Builder clearConstructorsStr() { constructorsStr_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1[json_name = "constructorsStr"]; */ public Builder addConstructorsStrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureConstructorsStrIsMutable(); constructorsStr_.add(value); onChanged(); return this; } private com.google.protobuf.Internal.IntList constructorsInternedStr_ = emptyIntList(); private void ensureConstructorsInternedStrIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { constructorsInternedStr_ = mutableCopy(constructorsInternedStr_); bitField0_ |= 0x00000002; } } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public java.util.List getConstructorsInternedStrList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(constructorsInternedStr_) : constructorsInternedStr_; } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public int getConstructorsInternedStrCount() { return constructorsInternedStr_.size(); } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public int getConstructorsInternedStr(int index) { return constructorsInternedStr_.getInt(index); } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public Builder setConstructorsInternedStr( int index, int value) { ensureConstructorsInternedStrIsMutable(); constructorsInternedStr_.setInt(index, value); onChanged(); return this; } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public Builder addConstructorsInternedStr(int value) { ensureConstructorsInternedStrIsMutable(); constructorsInternedStr_.addInt(value); onChanged(); return this; } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public Builder addAllConstructorsInternedStr( java.lang.Iterable values) { ensureConstructorsInternedStrIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, constructorsInternedStr_); onChanged(); return this; } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2[json_name = "constructorsInternedStr"]; */ public Builder clearConstructorsInternedStr() { constructorsInternedStr_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); 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:daml_lf_1.DefDataType.EnumConstructors) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefDataType.EnumConstructors) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnumConstructors parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumConstructors(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite { NAME_DNAME(1), NAME_INTERNED_DNAME(8), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NameCase valueOf(int value) { return forNumber(value); } public static NameCase forNumber(int value) { switch (value) { case 1: return NAME_DNAME; case 8: return NAME_INTERNED_DNAME; case 0: return NAME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } private int dataConsCase_ = 0; private java.lang.Object dataCons_; public enum DataConsCase implements com.google.protobuf.Internal.EnumLite { RECORD(3), VARIANT(4), ENUM(7), DATACONS_NOT_SET(0); private final int value; private DataConsCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataConsCase valueOf(int value) { return forNumber(value); } public static DataConsCase forNumber(int value) { switch (value) { case 3: return RECORD; case 4: return VARIANT; case 7: return ENUM; case 0: return DATACONS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DataConsCase getDataConsCase() { return DataConsCase.forNumber( dataConsCase_); } public static final int NAME_DNAME_FIELD_NUMBER = 1; /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname() { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 8; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { if (nameCase_ == 8) { return (java.lang.Integer) name_; } return 0; } public static final int PARAMS_FIELD_NUMBER = 2; private java.util.List params_; /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public java.util.List getParamsList() { return params_; } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public java.util.List getParamsOrBuilderList() { return params_; } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public int getParamsCount() { return params_.size(); } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getParams(int index) { return params_.get(index); } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int RECORD_FIELD_NUMBER = 3; /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public boolean hasRecord() { return dataConsCase_ == 3; } /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getRecord() { if (dataConsCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder getRecordOrBuilder() { if (dataConsCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 4; /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public boolean hasVariant() { return dataConsCase_ == 4; } /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getVariant() { if (dataConsCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder getVariantOrBuilder() { if (dataConsCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 7; /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public boolean hasEnum() { return dataConsCase_ == 7; } /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors getEnum() { if (dataConsCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } /** *
     * *Available in versions >= 1.6*
     * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder() { if (dataConsCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } public static final int SERIALIZABLE_FIELD_NUMBER = 5; private boolean serializable_; /** *
     * If true, this data type preserves serializability in the sense that when
     * all parameters are instantiated with serializable types (of kind '*'),
     * then the resulting type is serializable as well.
     * This flag is used to simplify package validation by not requiring an
     * inference but only a check. Such a check must validate that this flag is
     * set correctly and that template and choice argument and result types
     * have this flag set to true.
     * 
* * bool serializable = 5[json_name = "serializable"]; */ public boolean getSerializable() { return serializable_; } public static final int LOCATION_FIELD_NUMBER = 6; private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } 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 (nameCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(2, params_.get(i)); } if (dataConsCase_ == 3) { output.writeMessage(3, (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 4) { output.writeMessage(4, (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_); } if (serializable_ != false) { output.writeBool(5, serializable_); } if (location_ != null) { output.writeMessage(6, getLocation()); } if (dataConsCase_ == 7) { output.writeMessage(7, (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_); } if (nameCase_ == 8) { output.writeInt32( 8, (int)((java.lang.Integer) name_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nameCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, params_.get(i)); } if (dataConsCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_); } if (serializable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, serializable_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLocation()); } if (dataConsCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_); } if (nameCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 8, (int)((java.lang.Integer) name_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType) obj; if (!getParamsList() .equals(other.getParamsList())) return false; if (getSerializable() != other.getSerializable()) return false; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getNameCase().equals(other.getNameCase())) return false; switch (nameCase_) { case 1: if (!getNameDname() .equals(other.getNameDname())) return false; break; case 8: if (getNameInternedDname() != other.getNameInternedDname()) return false; break; case 0: default: } if (!getDataConsCase().equals(other.getDataConsCase())) return false; switch (dataConsCase_) { case 3: if (!getRecord() .equals(other.getRecord())) return false; break; case 4: if (!getVariant() .equals(other.getVariant())) return false; break; case 7: if (!getEnum() .equals(other.getEnum())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParamsCount() > 0) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParamsList().hashCode(); } hash = (37 * hash) + SERIALIZABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSerializable()); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } switch (nameCase_) { case 1: hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameDname().hashCode(); break; case 8: hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); break; case 0: default: } switch (dataConsCase_) { case 3: hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); break; case 4: hash = (37 * hash) + VARIANT_FIELD_NUMBER; hash = (53 * hash) + getVariant().hashCode(); break; case 7: hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnum().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType 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; } /** *
     * Data type definition
     * 
* * Protobuf type {@code daml_lf_1.DefDataType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefDataType) com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { paramsBuilder_.clear(); } serializable_ = false; if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } nameCase_ = 0; name_ = null; dataConsCase_ = 0; dataCons_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefDataType_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType(this); int from_bitField0_ = bitField0_; if (nameCase_ == 1) { if (nameDnameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameDnameBuilder_.build(); } } if (nameCase_ == 8) { result.name_ = name_; } if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000001); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (dataConsCase_ == 3) { if (recordBuilder_ == null) { result.dataCons_ = dataCons_; } else { result.dataCons_ = recordBuilder_.build(); } } if (dataConsCase_ == 4) { if (variantBuilder_ == null) { result.dataCons_ = dataCons_; } else { result.dataCons_ = variantBuilder_.build(); } } if (dataConsCase_ == 7) { if (enumBuilder_ == null) { result.dataCons_ = dataCons_; } else { result.dataCons_ = enumBuilder_.build(); } } result.serializable_ = serializable_; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.nameCase_ = nameCase_; result.dataConsCase_ = dataConsCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.getDefaultInstance()) return this; if (paramsBuilder_ == null) { if (!other.params_.isEmpty()) { if (params_.isEmpty()) { params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); paramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } if (other.getSerializable() != false) { setSerializable(other.getSerializable()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } switch (other.getNameCase()) { case NAME_DNAME: { mergeNameDname(other.getNameDname()); break; } case NAME_INTERNED_DNAME: { setNameInternedDname(other.getNameInternedDname()); break; } case NAME_NOT_SET: { break; } } switch (other.getDataConsCase()) { case RECORD: { mergeRecord(other.getRecord()); break; } case VARIANT: { mergeVariant(other.getVariant()); break; } case ENUM: { mergeEnum(other.getEnum()); break; } case DATACONS_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int nameCase_ = 0; private java.lang.Object name_; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } public Builder clearName() { nameCase_ = 0; name_ = null; onChanged(); return this; } private int dataConsCase_ = 0; private java.lang.Object dataCons_; public DataConsCase getDataConsCase() { return DataConsCase.forNumber( dataConsCase_); } public Builder clearDataCons() { dataConsCase_ = 0; dataCons_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 1) { return nameDnameBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder setNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameDnameBuilder_.setMessage(value); } nameCase_ = 1; return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder setNameDname( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder builderForValue) { if (nameDnameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameDnameBuilder_.setMessage(builderForValue.build()); } nameCase_ = 1; return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder mergeNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 1 && name_ != com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_) .mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { if (nameCase_ == 1) { nameDnameBuilder_.mergeFrom(value); } nameDnameBuilder_.setMessage(value); } nameCase_ = 1; return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder clearNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { nameCase_ = 0; name_ = null; onChanged(); } } else { if (nameCase_ == 1) { nameCase_ = 0; name_ = null; } nameDnameBuilder_.clear(); } return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 1) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 1)) { name_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 1; onChanged();; return nameDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { if (nameCase_ == 8) { return (java.lang.Integer) name_; } return 0; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public Builder setNameInternedDname(int value) { nameCase_ = 8; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public Builder clearNameInternedDname() { if (nameCase_ == 8) { nameCase_ = 0; name_ = null; onChanged(); } return this; } private java.util.List params_ = java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder> paramsBuilder_; /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder setParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.set(index, value); onChanged(); } else { paramsBuilder_.setMessage(index, value); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder setParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder addParams(com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(value); onChanged(); } else { paramsBuilder_.addMessage(value); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder addParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(index, value); onChanged(); } else { paramsBuilder_.addMessage(index, value); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder addParams( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder addParams( int index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder addAllParams( java.lang.Iterable values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2[json_name = "params"]; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeVarWithKindOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder> recordBuilder_; /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public boolean hasRecord() { return dataConsCase_ == 3; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getRecord() { if (recordBuilder_ == null) { if (dataConsCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } else { if (dataConsCase_ == 3) { return recordBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public Builder setRecord(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } dataConsCase_ = 3; return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public Builder setRecord( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder builderForValue) { if (recordBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 3; return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public Builder mergeRecord(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields value) { if (recordBuilder_ == null) { if (dataConsCase_ == 3 && dataCons_ != com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance()) { dataCons_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 3) { recordBuilder_.mergeFrom(value); } recordBuilder_.setMessage(value); } dataConsCase_ = 3; return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public Builder clearRecord() { if (recordBuilder_ == null) { if (dataConsCase_ == 3) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 3) { dataConsCase_ = 0; dataCons_ = null; } recordBuilder_.clear(); } return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder getRecordOrBuilder() { if ((dataConsCase_ == 3) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 3) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3[json_name = "record"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(dataConsCase_ == 3)) { dataCons_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 3; onChanged();; return recordBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder> variantBuilder_; /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public boolean hasVariant() { return dataConsCase_ == 4; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields getVariant() { if (variantBuilder_ == null) { if (dataConsCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } else { if (dataConsCase_ == 4) { return variantBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public Builder setVariant(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields value) { if (variantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { variantBuilder_.setMessage(value); } dataConsCase_ = 4; return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public Builder setVariant( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder builderForValue) { if (variantBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { variantBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 4; return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public Builder mergeVariant(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields value) { if (variantBuilder_ == null) { if (dataConsCase_ == 4 && dataCons_ != com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance()) { dataCons_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 4) { variantBuilder_.mergeFrom(value); } variantBuilder_.setMessage(value); } dataConsCase_ = 4; return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public Builder clearVariant() { if (variantBuilder_ == null) { if (dataConsCase_ == 4) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 4) { dataConsCase_ = 0; dataCons_ = null; } variantBuilder_.clear(); } return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder getVariantOrBuilder() { if ((dataConsCase_ == 4) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 4) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4[json_name = "variant"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(dataConsCase_ == 4)) { dataCons_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.FieldsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Fields) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 4; onChanged();; return variantBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder> enumBuilder_; /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public boolean hasEnum() { return dataConsCase_ == 7; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors getEnum() { if (enumBuilder_ == null) { if (dataConsCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } else { if (dataConsCase_ == 7) { return enumBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public Builder setEnum(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } dataConsCase_ = 7; return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public Builder setEnum( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder builderForValue) { if (enumBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 7; return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public Builder mergeEnum(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors value) { if (enumBuilder_ == null) { if (dataConsCase_ == 7 && dataCons_ != com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance()) { dataCons_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 7) { enumBuilder_.mergeFrom(value); } enumBuilder_.setMessage(value); } dataConsCase_ = 7; return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public Builder clearEnum() { if (enumBuilder_ == null) { if (dataConsCase_ == 7) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 7) { dataConsCase_ = 0; dataCons_ = null; } enumBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder() { if ((dataConsCase_ == 7) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 7) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.6*
       * 
* * .daml_lf_1.DefDataType.EnumConstructors enum = 7[json_name = "enum"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(dataConsCase_ == 7)) { dataCons_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructorsOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.EnumConstructors) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 7; onChanged();; return enumBuilder_; } private boolean serializable_ ; /** *
       * If true, this data type preserves serializability in the sense that when
       * all parameters are instantiated with serializable types (of kind '*'),
       * then the resulting type is serializable as well.
       * This flag is used to simplify package validation by not requiring an
       * inference but only a check. Such a check must validate that this flag is
       * set correctly and that template and choice argument and result types
       * have this flag set to true.
       * 
* * bool serializable = 5[json_name = "serializable"]; */ public boolean getSerializable() { return serializable_; } /** *
       * If true, this data type preserves serializability in the sense that when
       * all parameters are instantiated with serializable types (of kind '*'),
       * then the resulting type is serializable as well.
       * This flag is used to simplify package validation by not requiring an
       * inference but only a check. Such a check must validate that this flag is
       * set correctly and that template and choice argument and result types
       * have this flag set to true.
       * 
* * bool serializable = 5[json_name = "serializable"]; */ public Builder setSerializable(boolean value) { serializable_ = value; onChanged(); return this; } /** *
       * If true, this data type preserves serializability in the sense that when
       * all parameters are instantiated with serializable types (of kind '*'),
       * then the resulting type is serializable as well.
       * This flag is used to simplify package validation by not requiring an
       * inference but only a check. Such a check must validate that this flag is
       * set correctly and that template and choice argument and result types
       * have this flag set to true.
       * 
* * bool serializable = 5[json_name = "serializable"]; */ public Builder clearSerializable() { serializable_ = false; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public Builder setLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public Builder setLocation( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public Builder mergeLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.digitalasset.daml_lf_1_7.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 6[json_name = "location"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } @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:daml_lf_1.DefDataType) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefDataType) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefDataType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefDataType(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefDataType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefValueOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefValue) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ boolean hasNameWithType(); /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType getNameWithType(); /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder(); /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ boolean hasExpr(); /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr(); /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder(); /** *
     * If true, the value must not contain any party literals and not reference
     * values which contain party literals.
     * This flag is used to simplify package validation by not requiring an
     * inference but only a check. Such a check must validate that this flag is
     * set correctly and that templates do not reference values which have this
     * flag set to false.
     * 
* * bool no_party_literals = 3[json_name = "noPartyLiterals"]; */ boolean getNoPartyLiterals(); /** * bool is_test = 4[json_name = "isTest"]; */ boolean getIsTest(); /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ boolean hasLocation(); /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder(); } /** *
   * Value definition
   * 
* * Protobuf type {@code daml_lf_1.DefValue} */ public static final class DefValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefValue) DefValueOrBuilder { private static final long serialVersionUID = 0L; // Use DefValue.newBuilder() to construct. private DefValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder subBuilder = null; if (nameWithType_ != null) { subBuilder = nameWithType_.toBuilder(); } nameWithType_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nameWithType_); nameWithType_ = subBuilder.buildPartial(); } break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 24: { noPartyLiterals_ = input.readBool(); break; } case 32: { isTest_ = input.readBool(); break; } case 42: { com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder.class); } public interface NameWithTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefValue.NameWithType) com.google.protobuf.MessageOrBuilder { /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ java.util.List getNameDnameList(); /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ int getNameDnameCount(); /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ java.lang.String getNameDname(int index); /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ com.google.protobuf.ByteString getNameDnameBytes(int index); /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ int getNameInternedDname(); /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ boolean hasType(); /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Type getType(); /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder(); } /** *
     * The reason why we have this type instead of just flattening name
     * and type in DefValue is that it was VarWithType before, and we
     * want to be binary-compatible with it.
     * 
* * Protobuf type {@code daml_lf_1.DefValue.NameWithType} */ public static final class NameWithType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefValue.NameWithType) NameWithTypeOrBuilder { private static final long serialVersionUID = 0L; // Use NameWithType.newBuilder() to construct. private NameWithType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NameWithType() { nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NameWithType(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NameWithType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { nameDname_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } nameDname_.add(s); break; } case 18: { com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 24: { nameInternedDname_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { nameDname_ = nameDname_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder.class); } public static final int NAME_DNAME_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList nameDname_; /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_; } /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public int getNameDnameCount() { return nameDname_.size(); } /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public java.lang.String getNameDname(int index) { return nameDname_.get(index); } /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public com.google.protobuf.ByteString getNameDnameBytes(int index) { return nameDname_.getByteString(index); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3; private int nameInternedDname_; /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { return nameInternedDname_; } public static final int TYPE_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public boolean hasType() { return type_ != null; } /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } 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 { for (int i = 0; i < nameDname_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameDname_.getRaw(i)); } if (type_ != null) { output.writeMessage(2, getType()); } if (nameInternedDname_ != 0) { output.writeInt32(3, nameInternedDname_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < nameDname_.size(); i++) { dataSize += computeStringSizeNoTag(nameDname_.getRaw(i)); } size += dataSize; size += 1 * getNameDnameList().size(); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, nameInternedDname_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType) obj; if (!getNameDnameList() .equals(other.getNameDnameList())) return false; if (getNameInternedDname() != other.getNameInternedDname()) return false; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNameDnameCount() > 0) { hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameDnameList().hashCode(); } hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType 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; } /** *
       * The reason why we have this type instead of just flattening name
       * and type in DefValue is that it was VarWithType before, and we
       * want to be binary-compatible with it.
       * 
* * Protobuf type {@code daml_lf_1.DefValue.NameWithType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefValue.NameWithType) com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); nameInternedDname_ = 0; if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { nameDname_ = nameDname_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.nameDname_ = nameDname_; result.nameInternedDname_ = nameInternedDname_; if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.getDefaultInstance()) return this; if (!other.nameDname_.isEmpty()) { if (nameDname_.isEmpty()) { nameDname_ = other.nameDname_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNameDnameIsMutable(); nameDname_.addAll(other.nameDname_); } onChanged(); } if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } if (other.hasType()) { mergeType(other.getType()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNameDnameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nameDname_ = new com.google.protobuf.LazyStringArrayList(nameDname_); bitField0_ |= 0x00000001; } } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_.getUnmodifiableView(); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public int getNameDnameCount() { return nameDname_.size(); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public java.lang.String getNameDname(int index) { return nameDname_.get(index); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public com.google.protobuf.ByteString getNameDnameBytes(int index) { return nameDname_.getByteString(index); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public Builder setNameDname( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameDnameIsMutable(); nameDname_.set(index, value); onChanged(); return this; } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public Builder addNameDname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameDnameIsMutable(); nameDname_.add(value); onChanged(); return this; } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public Builder addAllNameDname( java.lang.Iterable values) { ensureNameDnameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nameDname_); onChanged(); return this; } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public Builder clearNameDname() { nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1[json_name = "nameDname"]; */ public Builder addNameDnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNameDnameIsMutable(); nameDname_.add(value); onChanged(); return this; } private int nameInternedDname_ ; /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { return nameInternedDname_; } /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 3[json_name = "nameInternedDname"]; */ public Builder clearNameInternedDname() { nameInternedDname_ = 0; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder setType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder setType( com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder mergeType(com.digitalasset.daml_lf_1_7.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.digitalasset.daml_lf_1_7.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2[json_name = "type"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Type, com.digitalasset.daml_lf_1_7.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } @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:daml_lf_1.DefValue.NameWithType) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefValue.NameWithType) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NameWithType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NameWithType(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NAME_WITH_TYPE_FIELD_NUMBER = 1; private com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType nameWithType_; /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public boolean hasNameWithType() { return nameWithType_ != null; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType getNameWithType() { return nameWithType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder() { return getNameWithType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } public static final int NO_PARTY_LITERALS_FIELD_NUMBER = 3; private boolean noPartyLiterals_; /** *
     * If true, the value must not contain any party literals and not reference
     * values which contain party literals.
     * This flag is used to simplify package validation by not requiring an
     * inference but only a check. Such a check must validate that this flag is
     * set correctly and that templates do not reference values which have this
     * flag set to false.
     * 
* * bool no_party_literals = 3[json_name = "noPartyLiterals"]; */ public boolean getNoPartyLiterals() { return noPartyLiterals_; } public static final int IS_TEST_FIELD_NUMBER = 4; private boolean isTest_; /** * bool is_test = 4[json_name = "isTest"]; */ public boolean getIsTest() { return isTest_; } public static final int LOCATION_FIELD_NUMBER = 5; private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } 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 (nameWithType_ != null) { output.writeMessage(1, getNameWithType()); } if (expr_ != null) { output.writeMessage(2, getExpr()); } if (noPartyLiterals_ != false) { output.writeBool(3, noPartyLiterals_); } if (isTest_ != false) { output.writeBool(4, isTest_); } if (location_ != null) { output.writeMessage(5, getLocation()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nameWithType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNameWithType()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (noPartyLiterals_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, noPartyLiterals_); } if (isTest_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isTest_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLocation()); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.DefValue)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.DefValue other = (com.digitalasset.daml_lf_1_7.DamlLf1.DefValue) obj; if (hasNameWithType() != other.hasNameWithType()) return false; if (hasNameWithType()) { if (!getNameWithType() .equals(other.getNameWithType())) return false; } if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (getNoPartyLiterals() != other.getNoPartyLiterals()) return false; if (getIsTest() != other.getIsTest()) return false; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNameWithType()) { hash = (37 * hash) + NAME_WITH_TYPE_FIELD_NUMBER; hash = (53 * hash) + getNameWithType().hashCode(); } if (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } hash = (37 * hash) + NO_PARTY_LITERALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoPartyLiterals()); hash = (37 * hash) + IS_TEST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsTest()); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue 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; } /** *
     * Value definition
     * 
* * Protobuf type {@code daml_lf_1.DefValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefValue) com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.class, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (nameWithTypeBuilder_ == null) { nameWithType_ = null; } else { nameWithType_ = null; nameWithTypeBuilder_ = null; } if (exprBuilder_ == null) { expr_ = null; } else { expr_ = null; exprBuilder_ = null; } noPartyLiterals_ = false; isTest_ = false; if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_DefValue_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue build() { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue result = new com.digitalasset.daml_lf_1_7.DamlLf1.DefValue(this); if (nameWithTypeBuilder_ == null) { result.nameWithType_ = nameWithType_; } else { result.nameWithType_ = nameWithTypeBuilder_.build(); } if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } result.noPartyLiterals_ = noPartyLiterals_; result.isTest_ = isTest_; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DefValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.getDefaultInstance()) return this; if (other.hasNameWithType()) { mergeNameWithType(other.getNameWithType()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } if (other.getNoPartyLiterals() != false) { setNoPartyLiterals(other.getNoPartyLiterals()); } if (other.getIsTest() != false) { setIsTest(other.getIsTest()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.DefValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.DefValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType nameWithType_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder> nameWithTypeBuilder_; /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public boolean hasNameWithType() { return nameWithTypeBuilder_ != null || nameWithType_ != null; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType getNameWithType() { if (nameWithTypeBuilder_ == null) { return nameWithType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } else { return nameWithTypeBuilder_.getMessage(); } } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public Builder setNameWithType(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType value) { if (nameWithTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nameWithType_ = value; onChanged(); } else { nameWithTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public Builder setNameWithType( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder builderForValue) { if (nameWithTypeBuilder_ == null) { nameWithType_ = builderForValue.build(); onChanged(); } else { nameWithTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public Builder mergeNameWithType(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType value) { if (nameWithTypeBuilder_ == null) { if (nameWithType_ != null) { nameWithType_ = com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.newBuilder(nameWithType_).mergeFrom(value).buildPartial(); } else { nameWithType_ = value; } onChanged(); } else { nameWithTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public Builder clearNameWithType() { if (nameWithTypeBuilder_ == null) { nameWithType_ = null; onChanged(); } else { nameWithType_ = null; nameWithTypeBuilder_ = null; } return this; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder getNameWithTypeBuilder() { onChanged(); return getNameWithTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder() { if (nameWithTypeBuilder_ != null) { return nameWithTypeBuilder_.getMessageOrBuilder(); } else { return nameWithType_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1[json_name = "nameWithType"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder> getNameWithTypeFieldBuilder() { if (nameWithTypeBuilder_ == null) { nameWithTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.NameWithTypeOrBuilder>( getNameWithType(), getParentForChildren(), isClean()); nameWithType_ = null; } return nameWithTypeBuilder_; } private com.digitalasset.daml_lf_1_7.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> exprBuilder_; /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder setExpr( com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder mergeExpr(com.digitalasset.daml_lf_1_7.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.digitalasset.daml_lf_1_7.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.Expr expr = 2[json_name = "expr"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Expr, com.digitalasset.daml_lf_1_7.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private boolean noPartyLiterals_ ; /** *
       * If true, the value must not contain any party literals and not reference
       * values which contain party literals.
       * This flag is used to simplify package validation by not requiring an
       * inference but only a check. Such a check must validate that this flag is
       * set correctly and that templates do not reference values which have this
       * flag set to false.
       * 
* * bool no_party_literals = 3[json_name = "noPartyLiterals"]; */ public boolean getNoPartyLiterals() { return noPartyLiterals_; } /** *
       * If true, the value must not contain any party literals and not reference
       * values which contain party literals.
       * This flag is used to simplify package validation by not requiring an
       * inference but only a check. Such a check must validate that this flag is
       * set correctly and that templates do not reference values which have this
       * flag set to false.
       * 
* * bool no_party_literals = 3[json_name = "noPartyLiterals"]; */ public Builder setNoPartyLiterals(boolean value) { noPartyLiterals_ = value; onChanged(); return this; } /** *
       * If true, the value must not contain any party literals and not reference
       * values which contain party literals.
       * This flag is used to simplify package validation by not requiring an
       * inference but only a check. Such a check must validate that this flag is
       * set correctly and that templates do not reference values which have this
       * flag set to false.
       * 
* * bool no_party_literals = 3[json_name = "noPartyLiterals"]; */ public Builder clearNoPartyLiterals() { noPartyLiterals_ = false; onChanged(); return this; } private boolean isTest_ ; /** * bool is_test = 4[json_name = "isTest"]; */ public boolean getIsTest() { return isTest_; } /** * bool is_test = 4[json_name = "isTest"]; */ public Builder setIsTest(boolean value) { isTest_ = value; onChanged(); return this; } /** * bool is_test = 4[json_name = "isTest"]; */ public Builder clearIsTest() { isTest_ = false; onChanged(); return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public Builder setLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public Builder setLocation( com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public Builder mergeLocation(com.digitalasset.daml_lf_1_7.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.digitalasset.daml_lf_1_7.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 5[json_name = "location"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Location, com.digitalasset.daml_lf_1_7.DamlLf1.Location.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } @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:daml_lf_1.DefValue) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefValue) private static final com.digitalasset.daml_lf_1_7.DamlLf1.DefValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.DefValue(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.DefValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefValue(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.DefValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeatureFlagsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.FeatureFlags) com.google.protobuf.MessageOrBuilder { /** * bool forbidPartyLiterals = 1[json_name = "forbidPartyLiterals"]; */ boolean getForbidPartyLiterals(); /** * bool dontDivulgeContractIdsInCreateArguments = 2[json_name = "dontDivulgeContractIdsInCreateArguments"]; */ boolean getDontDivulgeContractIdsInCreateArguments(); /** * bool dontDiscloseNonConsumingChoicesToObservers = 3[json_name = "dontDiscloseNonConsumingChoicesToObservers"]; */ boolean getDontDiscloseNonConsumingChoicesToObservers(); } /** * Protobuf type {@code daml_lf_1.FeatureFlags} */ public static final class FeatureFlags extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.FeatureFlags) FeatureFlagsOrBuilder { private static final long serialVersionUID = 0L; // Use FeatureFlags.newBuilder() to construct. private FeatureFlags(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeatureFlags() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeatureFlags(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FeatureFlags( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { forbidPartyLiterals_ = input.readBool(); break; } case 16: { dontDivulgeContractIdsInCreateArguments_ = input.readBool(); break; } case 24: { dontDiscloseNonConsumingChoicesToObservers_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FeatureFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FeatureFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.class, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder.class); } public static final int FORBIDPARTYLITERALS_FIELD_NUMBER = 1; private boolean forbidPartyLiterals_; /** * bool forbidPartyLiterals = 1[json_name = "forbidPartyLiterals"]; */ public boolean getForbidPartyLiterals() { return forbidPartyLiterals_; } public static final int DONTDIVULGECONTRACTIDSINCREATEARGUMENTS_FIELD_NUMBER = 2; private boolean dontDivulgeContractIdsInCreateArguments_; /** * bool dontDivulgeContractIdsInCreateArguments = 2[json_name = "dontDivulgeContractIdsInCreateArguments"]; */ public boolean getDontDivulgeContractIdsInCreateArguments() { return dontDivulgeContractIdsInCreateArguments_; } public static final int DONTDISCLOSENONCONSUMINGCHOICESTOOBSERVERS_FIELD_NUMBER = 3; private boolean dontDiscloseNonConsumingChoicesToObservers_; /** * bool dontDiscloseNonConsumingChoicesToObservers = 3[json_name = "dontDiscloseNonConsumingChoicesToObservers"]; */ public boolean getDontDiscloseNonConsumingChoicesToObservers() { return dontDiscloseNonConsumingChoicesToObservers_; } 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 (forbidPartyLiterals_ != false) { output.writeBool(1, forbidPartyLiterals_); } if (dontDivulgeContractIdsInCreateArguments_ != false) { output.writeBool(2, dontDivulgeContractIdsInCreateArguments_); } if (dontDiscloseNonConsumingChoicesToObservers_ != false) { output.writeBool(3, dontDiscloseNonConsumingChoicesToObservers_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (forbidPartyLiterals_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, forbidPartyLiterals_); } if (dontDivulgeContractIdsInCreateArguments_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, dontDivulgeContractIdsInCreateArguments_); } if (dontDiscloseNonConsumingChoicesToObservers_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, dontDiscloseNonConsumingChoicesToObservers_); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags other = (com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags) obj; if (getForbidPartyLiterals() != other.getForbidPartyLiterals()) return false; if (getDontDivulgeContractIdsInCreateArguments() != other.getDontDivulgeContractIdsInCreateArguments()) return false; if (getDontDiscloseNonConsumingChoicesToObservers() != other.getDontDiscloseNonConsumingChoicesToObservers()) return false; if (!unknownFields.equals(other.unknownFields)) 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) + FORBIDPARTYLITERALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForbidPartyLiterals()); hash = (37 * hash) + DONTDIVULGECONTRACTIDSINCREATEARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDontDivulgeContractIdsInCreateArguments()); hash = (37 * hash) + DONTDISCLOSENONCONSUMINGCHOICESTOOBSERVERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDontDiscloseNonConsumingChoicesToObservers()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags 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.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags 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.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags 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.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags 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; } /** * Protobuf type {@code daml_lf_1.FeatureFlags} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.FeatureFlags) com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FeatureFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FeatureFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.class, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); forbidPartyLiterals_ = false; dontDivulgeContractIdsInCreateArguments_ = false; dontDiscloseNonConsumingChoicesToObservers_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_FeatureFlags_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags build() { com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags result = new com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags(this); result.forbidPartyLiterals_ = forbidPartyLiterals_; result.dontDivulgeContractIdsInCreateArguments_ = dontDivulgeContractIdsInCreateArguments_; result.dontDiscloseNonConsumingChoicesToObservers_ = dontDiscloseNonConsumingChoicesToObservers_; 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.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.getDefaultInstance()) return this; if (other.getForbidPartyLiterals() != false) { setForbidPartyLiterals(other.getForbidPartyLiterals()); } if (other.getDontDivulgeContractIdsInCreateArguments() != false) { setDontDivulgeContractIdsInCreateArguments(other.getDontDivulgeContractIdsInCreateArguments()); } if (other.getDontDiscloseNonConsumingChoicesToObservers() != false) { setDontDiscloseNonConsumingChoicesToObservers(other.getDontDiscloseNonConsumingChoicesToObservers()); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean forbidPartyLiterals_ ; /** * bool forbidPartyLiterals = 1[json_name = "forbidPartyLiterals"]; */ public boolean getForbidPartyLiterals() { return forbidPartyLiterals_; } /** * bool forbidPartyLiterals = 1[json_name = "forbidPartyLiterals"]; */ public Builder setForbidPartyLiterals(boolean value) { forbidPartyLiterals_ = value; onChanged(); return this; } /** * bool forbidPartyLiterals = 1[json_name = "forbidPartyLiterals"]; */ public Builder clearForbidPartyLiterals() { forbidPartyLiterals_ = false; onChanged(); return this; } private boolean dontDivulgeContractIdsInCreateArguments_ ; /** * bool dontDivulgeContractIdsInCreateArguments = 2[json_name = "dontDivulgeContractIdsInCreateArguments"]; */ public boolean getDontDivulgeContractIdsInCreateArguments() { return dontDivulgeContractIdsInCreateArguments_; } /** * bool dontDivulgeContractIdsInCreateArguments = 2[json_name = "dontDivulgeContractIdsInCreateArguments"]; */ public Builder setDontDivulgeContractIdsInCreateArguments(boolean value) { dontDivulgeContractIdsInCreateArguments_ = value; onChanged(); return this; } /** * bool dontDivulgeContractIdsInCreateArguments = 2[json_name = "dontDivulgeContractIdsInCreateArguments"]; */ public Builder clearDontDivulgeContractIdsInCreateArguments() { dontDivulgeContractIdsInCreateArguments_ = false; onChanged(); return this; } private boolean dontDiscloseNonConsumingChoicesToObservers_ ; /** * bool dontDiscloseNonConsumingChoicesToObservers = 3[json_name = "dontDiscloseNonConsumingChoicesToObservers"]; */ public boolean getDontDiscloseNonConsumingChoicesToObservers() { return dontDiscloseNonConsumingChoicesToObservers_; } /** * bool dontDiscloseNonConsumingChoicesToObservers = 3[json_name = "dontDiscloseNonConsumingChoicesToObservers"]; */ public Builder setDontDiscloseNonConsumingChoicesToObservers(boolean value) { dontDiscloseNonConsumingChoicesToObservers_ = value; onChanged(); return this; } /** * bool dontDiscloseNonConsumingChoicesToObservers = 3[json_name = "dontDiscloseNonConsumingChoicesToObservers"]; */ public Builder clearDontDiscloseNonConsumingChoicesToObservers() { dontDiscloseNonConsumingChoicesToObservers_ = false; 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:daml_lf_1.FeatureFlags) } // @@protoc_insertion_point(class_scope:daml_lf_1.FeatureFlags) private static final com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FeatureFlags parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FeatureFlags(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModuleOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Module) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ boolean hasNameDname(); /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname(); /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Available in versions >= 1.7*
     * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ int getNameInternedDname(); /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ boolean hasFlags(); /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags getFlags(); /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder getFlagsOrBuilder(); /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ java.util.List getDataTypesList(); /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType getDataTypes(int index); /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ int getDataTypesCount(); /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ java.util.List getDataTypesOrBuilderList(); /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder getDataTypesOrBuilder( int index); /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ java.util.List getValuesList(); /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefValue getValues(int index); /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ int getValuesCount(); /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ java.util.List getValuesOrBuilderList(); /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder getValuesOrBuilder( int index); /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ java.util.List getTemplatesList(); /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate getTemplates(int index); /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ int getTemplatesCount(); /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ java.util.List getTemplatesOrBuilderList(); /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder getTemplatesOrBuilder( int index); public com.digitalasset.daml_lf_1_7.DamlLf1.Module.NameCase getNameCase(); } /** * Protobuf type {@code daml_lf_1.Module} */ public static final class Module extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Module) ModuleOrBuilder { private static final long serialVersionUID = 0L; // Use Module.newBuilder() to construct. private Module(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Module() { dataTypes_ = java.util.Collections.emptyList(); values_ = java.util.Collections.emptyList(); templates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Module(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Module( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 1) { subBuilder = ((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); name_ = subBuilder.buildPartial(); } nameCase_ = 1; break; } case 34: { com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder subBuilder = null; if (flags_ != null) { subBuilder = flags_.toBuilder(); } flags_ = input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flags_); flags_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dataTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dataTypes_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } values_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { templates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } templates_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.parser(), extensionRegistry)); break; } case 64: { nameCase_ = 8; name_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dataTypes_ = java.util.Collections.unmodifiableList(dataTypes_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { templates_ = java.util.Collections.unmodifiableList(templates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Module_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Module_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Module.class, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite { NAME_DNAME(1), NAME_INTERNED_DNAME(8), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NameCase valueOf(int value) { return forNumber(value); } public static NameCase forNumber(int value) { switch (value) { case 1: return NAME_DNAME; case 8: return NAME_INTERNED_DNAME; case 0: return NAME_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } public static final int NAME_DNAME_FIELD_NUMBER = 1; /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname() { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 8; /** *
     * *Available in versions >= 1.7*
     * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { if (nameCase_ == 8) { return (java.lang.Integer) name_; } return 0; } public static final int FLAGS_FIELD_NUMBER = 4; private com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags flags_; /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public boolean hasFlags() { return flags_ != null; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags getFlags() { return flags_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder getFlagsOrBuilder() { return getFlags(); } public static final int DATA_TYPES_FIELD_NUMBER = 5; private java.util.List dataTypes_; /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public java.util.List getDataTypesList() { return dataTypes_; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public java.util.List getDataTypesOrBuilderList() { return dataTypes_; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public int getDataTypesCount() { return dataTypes_.size(); } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType getDataTypes(int index) { return dataTypes_.get(index); } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder getDataTypesOrBuilder( int index) { return dataTypes_.get(index); } public static final int VALUES_FIELD_NUMBER = 6; private java.util.List values_; /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public java.util.List getValuesList() { return values_; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public java.util.List getValuesOrBuilderList() { return values_; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public int getValuesCount() { return values_.size(); } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue getValues(int index) { return values_.get(index); } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder getValuesOrBuilder( int index) { return values_.get(index); } public static final int TEMPLATES_FIELD_NUMBER = 7; private java.util.List templates_; /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public java.util.List getTemplatesList() { return templates_; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public java.util.List getTemplatesOrBuilderList() { return templates_; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public int getTemplatesCount() { return templates_.size(); } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate getTemplates(int index) { return templates_.get(index); } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder getTemplatesOrBuilder( int index) { return templates_.get(index); } 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 (nameCase_ == 1) { output.writeMessage(1, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); } if (flags_ != null) { output.writeMessage(4, getFlags()); } for (int i = 0; i < dataTypes_.size(); i++) { output.writeMessage(5, dataTypes_.get(i)); } for (int i = 0; i < values_.size(); i++) { output.writeMessage(6, values_.get(i)); } for (int i = 0; i < templates_.size(); i++) { output.writeMessage(7, templates_.get(i)); } if (nameCase_ == 8) { output.writeInt32( 8, (int)((java.lang.Integer) name_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nameCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_); } if (flags_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFlags()); } for (int i = 0; i < dataTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, dataTypes_.get(i)); } for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, values_.get(i)); } for (int i = 0; i < templates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, templates_.get(i)); } if (nameCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 8, (int)((java.lang.Integer) name_)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Module)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Module other = (com.digitalasset.daml_lf_1_7.DamlLf1.Module) obj; if (hasFlags() != other.hasFlags()) return false; if (hasFlags()) { if (!getFlags() .equals(other.getFlags())) return false; } if (!getDataTypesList() .equals(other.getDataTypesList())) return false; if (!getValuesList() .equals(other.getValuesList())) return false; if (!getTemplatesList() .equals(other.getTemplatesList())) return false; if (!getNameCase().equals(other.getNameCase())) return false; switch (nameCase_) { case 1: if (!getNameDname() .equals(other.getNameDname())) return false; break; case 8: if (getNameInternedDname() != other.getNameInternedDname()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFlags()) { hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlags().hashCode(); } if (getDataTypesCount() > 0) { hash = (37 * hash) + DATA_TYPES_FIELD_NUMBER; hash = (53 * hash) + getDataTypesList().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } if (getTemplatesCount() > 0) { hash = (37 * hash) + TEMPLATES_FIELD_NUMBER; hash = (53 * hash) + getTemplatesList().hashCode(); } switch (nameCase_) { case 1: hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameDname().hashCode(); break; case 8: hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module 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.digitalasset.daml_lf_1_7.DamlLf1.Module parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module 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.digitalasset.daml_lf_1_7.DamlLf1.Module parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module 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.digitalasset.daml_lf_1_7.DamlLf1.Module 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; } /** * Protobuf type {@code daml_lf_1.Module} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Module) com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Module_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Module_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Module.class, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Module.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDataTypesFieldBuilder(); getValuesFieldBuilder(); getTemplatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (flagsBuilder_ == null) { flags_ = null; } else { flags_ = null; flagsBuilder_ = null; } if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dataTypesBuilder_.clear(); } if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valuesBuilder_.clear(); } if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { templatesBuilder_.clear(); } nameCase_ = 0; name_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Module_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Module getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Module.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Module build() { com.digitalasset.daml_lf_1_7.DamlLf1.Module result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Module buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Module result = new com.digitalasset.daml_lf_1_7.DamlLf1.Module(this); int from_bitField0_ = bitField0_; if (nameCase_ == 1) { if (nameDnameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameDnameBuilder_.build(); } } if (nameCase_ == 8) { result.name_ = name_; } if (flagsBuilder_ == null) { result.flags_ = flags_; } else { result.flags_ = flagsBuilder_.build(); } if (dataTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataTypes_ = java.util.Collections.unmodifiableList(dataTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.dataTypes_ = dataTypes_; } else { result.dataTypes_ = dataTypesBuilder_.build(); } if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000002); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } if (templatesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { templates_ = java.util.Collections.unmodifiableList(templates_); bitField0_ = (bitField0_ & ~0x00000004); } result.templates_ = templates_; } else { result.templates_ = templatesBuilder_.build(); } result.nameCase_ = nameCase_; 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.digitalasset.daml_lf_1_7.DamlLf1.Module) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Module)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Module other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Module.getDefaultInstance()) return this; if (other.hasFlags()) { mergeFlags(other.getFlags()); } if (dataTypesBuilder_ == null) { if (!other.dataTypes_.isEmpty()) { if (dataTypes_.isEmpty()) { dataTypes_ = other.dataTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataTypesIsMutable(); dataTypes_.addAll(other.dataTypes_); } onChanged(); } } else { if (!other.dataTypes_.isEmpty()) { if (dataTypesBuilder_.isEmpty()) { dataTypesBuilder_.dispose(); dataTypesBuilder_ = null; dataTypes_ = other.dataTypes_; bitField0_ = (bitField0_ & ~0x00000001); dataTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataTypesFieldBuilder() : null; } else { dataTypesBuilder_.addAllMessages(other.dataTypes_); } } } if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } } } if (templatesBuilder_ == null) { if (!other.templates_.isEmpty()) { if (templates_.isEmpty()) { templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTemplatesIsMutable(); templates_.addAll(other.templates_); } onChanged(); } } else { if (!other.templates_.isEmpty()) { if (templatesBuilder_.isEmpty()) { templatesBuilder_.dispose(); templatesBuilder_ = null; templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000004); templatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTemplatesFieldBuilder() : null; } else { templatesBuilder_.addAllMessages(other.templates_); } } } switch (other.getNameCase()) { case NAME_DNAME: { mergeNameDname(other.getNameDname()); break; } case NAME_INTERNED_DNAME: { setNameInternedDname(other.getNameInternedDname()); break; } case NAME_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Module parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Module) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int nameCase_ = 0; private java.lang.Object name_; public NameCase getNameCase() { return NameCase.forNumber( nameCase_); } public Builder clearName() { nameCase_ = 0; name_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 1) { return nameDnameBuilder_.getMessage(); } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder setNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameDnameBuilder_.setMessage(value); } nameCase_ = 1; return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder setNameDname( com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder builderForValue) { if (nameDnameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameDnameBuilder_.setMessage(builderForValue.build()); } nameCase_ = 1; return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder mergeNameDname(com.digitalasset.daml_lf_1_7.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 1 && name_ != com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_) .mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { if (nameCase_ == 1) { nameDnameBuilder_.mergeFrom(value); } nameDnameBuilder_.setMessage(value); } nameCase_ = 1; return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public Builder clearNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { nameCase_ = 0; name_ = null; onChanged(); } } else { if (nameCase_ == 1) { nameCase_ = 0; name_ = null; } nameDnameBuilder_.clear(); } return this; } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 1) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 1) { return (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_; } return com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1[json_name = "nameDname"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 1)) { name_ = com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DottedName, com.digitalasset.daml_lf_1_7.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DottedNameOrBuilder>( (com.digitalasset.daml_lf_1_7.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 1; onChanged();; return nameDnameBuilder_; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public int getNameInternedDname() { if (nameCase_ == 8) { return (java.lang.Integer) name_; } return 0; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public Builder setNameInternedDname(int value) { nameCase_ = 8; name_ = value; onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8[json_name = "nameInternedDname"]; */ public Builder clearNameInternedDname() { if (nameCase_ == 8) { nameCase_ = 0; name_ = null; onChanged(); } return this; } private com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags flags_; private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder> flagsBuilder_; /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public boolean hasFlags() { return flagsBuilder_ != null || flags_ != null; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags getFlags() { if (flagsBuilder_ == null) { return flags_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } else { return flagsBuilder_.getMessage(); } } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public Builder setFlags(com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flags_ = value; onChanged(); } else { flagsBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public Builder setFlags( com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder builderForValue) { if (flagsBuilder_ == null) { flags_ = builderForValue.build(); onChanged(); } else { flagsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public Builder mergeFlags(com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags value) { if (flagsBuilder_ == null) { if (flags_ != null) { flags_ = com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.newBuilder(flags_).mergeFrom(value).buildPartial(); } else { flags_ = value; } onChanged(); } else { flagsBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = null; onChanged(); } else { flags_ = null; flagsBuilder_ = null; } return this; } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder getFlagsBuilder() { onChanged(); return getFlagsFieldBuilder().getBuilder(); } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder getFlagsOrBuilder() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilder(); } else { return flags_ == null ? com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } } /** * .daml_lf_1.FeatureFlags flags = 4[json_name = "flags"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlags.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.FeatureFlagsOrBuilder>( getFlags(), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } private java.util.List dataTypes_ = java.util.Collections.emptyList(); private void ensureDataTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataTypes_ = new java.util.ArrayList(dataTypes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder> dataTypesBuilder_; /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public java.util.List getDataTypesList() { if (dataTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataTypes_); } else { return dataTypesBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public int getDataTypesCount() { if (dataTypesBuilder_ == null) { return dataTypes_.size(); } else { return dataTypesBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType getDataTypes(int index) { if (dataTypesBuilder_ == null) { return dataTypes_.get(index); } else { return dataTypesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder setDataTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType value) { if (dataTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataTypesIsMutable(); dataTypes_.set(index, value); onChanged(); } else { dataTypesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder setDataTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder builderForValue) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.set(index, builderForValue.build()); onChanged(); } else { dataTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder addDataTypes(com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType value) { if (dataTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataTypesIsMutable(); dataTypes_.add(value); onChanged(); } else { dataTypesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder addDataTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType value) { if (dataTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataTypesIsMutable(); dataTypes_.add(index, value); onChanged(); } else { dataTypesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder addDataTypes( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder builderForValue) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.add(builderForValue.build()); onChanged(); } else { dataTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder addDataTypes( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder builderForValue) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.add(index, builderForValue.build()); onChanged(); } else { dataTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder addAllDataTypes( java.lang.Iterable values) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dataTypes_); onChanged(); } else { dataTypesBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder clearDataTypes() { if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataTypesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public Builder removeDataTypes(int index) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.remove(index); onChanged(); } else { dataTypesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder getDataTypesBuilder( int index) { return getDataTypesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder getDataTypesOrBuilder( int index) { if (dataTypesBuilder_ == null) { return dataTypes_.get(index); } else { return dataTypesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public java.util.List getDataTypesOrBuilderList() { if (dataTypesBuilder_ != null) { return dataTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataTypes_); } } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder addDataTypesBuilder() { return getDataTypesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.getDefaultInstance()); } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder addDataTypesBuilder( int index) { return getDataTypesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.getDefaultInstance()); } /** * repeated .daml_lf_1.DefDataType data_types = 5[json_name = "dataTypes"]; */ public java.util.List getDataTypesBuilderList() { return getDataTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder> getDataTypesFieldBuilder() { if (dataTypesBuilder_ == null) { dataTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataType.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefDataTypeOrBuilder>( dataTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dataTypes_ = null; } return dataTypesBuilder_; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefValue, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder> valuesBuilder_; /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder setValues( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder setValues( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder addValues(com.digitalasset.daml_lf_1_7.DamlLf1.DefValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder addValues( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder addValues( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder addValues( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder addAllValues( java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder getValuesBuilder( int index) { return getValuesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public java.util.List getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(values_); } } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder addValuesBuilder() { return getValuesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.getDefaultInstance()); } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder addValuesBuilder( int index) { return getValuesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.getDefaultInstance()); } /** * repeated .daml_lf_1.DefValue values = 6[json_name = "values"]; */ public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefValue, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefValue, com.digitalasset.daml_lf_1_7.DamlLf1.DefValue.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefValueOrBuilder>( values_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } private java.util.List templates_ = java.util.Collections.emptyList(); private void ensureTemplatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { templates_ = new java.util.ArrayList(templates_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder> templatesBuilder_; /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public java.util.List getTemplatesList() { if (templatesBuilder_ == null) { return java.util.Collections.unmodifiableList(templates_); } else { return templatesBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public int getTemplatesCount() { if (templatesBuilder_ == null) { return templates_.size(); } else { return templatesBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate getTemplates(int index) { if (templatesBuilder_ == null) { return templates_.get(index); } else { return templatesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder setTemplates( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTemplatesIsMutable(); templates_.set(index, value); onChanged(); } else { templatesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder setTemplates( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder builderForValue) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.set(index, builderForValue.build()); onChanged(); } else { templatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder addTemplates(com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTemplatesIsMutable(); templates_.add(value); onChanged(); } else { templatesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder addTemplates( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTemplatesIsMutable(); templates_.add(index, value); onChanged(); } else { templatesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder addTemplates( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder builderForValue) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.add(builderForValue.build()); onChanged(); } else { templatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder addTemplates( int index, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder builderForValue) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.add(index, builderForValue.build()); onChanged(); } else { templatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder addAllTemplates( java.lang.Iterable values) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, templates_); onChanged(); } else { templatesBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder clearTemplates() { if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { templatesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public Builder removeTemplates(int index) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.remove(index); onChanged(); } else { templatesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder getTemplatesBuilder( int index) { return getTemplatesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder getTemplatesOrBuilder( int index) { if (templatesBuilder_ == null) { return templates_.get(index); } else { return templatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public java.util.List getTemplatesOrBuilderList() { if (templatesBuilder_ != null) { return templatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(templates_); } } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder addTemplatesBuilder() { return getTemplatesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.getDefaultInstance()); } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder addTemplatesBuilder( int index) { return getTemplatesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.getDefaultInstance()); } /** * repeated .daml_lf_1.DefTemplate templates = 7[json_name = "templates"]; */ public java.util.List getTemplatesBuilderList() { return getTemplatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder> getTemplatesFieldBuilder() { if (templatesBuilder_ == null) { templatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplate.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.DefTemplateOrBuilder>( templates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); templates_ = null; } return templatesBuilder_; } @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:daml_lf_1.Module) } // @@protoc_insertion_point(class_scope:daml_lf_1.Module) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Module DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Module(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Module getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Module parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Module(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Module getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InternedDottedNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.InternedDottedName) com.google.protobuf.MessageOrBuilder { /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ java.util.List getSegmentsInternedStrList(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ int getSegmentsInternedStrCount(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ int getSegmentsInternedStr(int index); } /** * Protobuf type {@code daml_lf_1.InternedDottedName} */ public static final class InternedDottedName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.InternedDottedName) InternedDottedNameOrBuilder { private static final long serialVersionUID = 0L; // Use InternedDottedName.newBuilder() to construct. private InternedDottedName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InternedDottedName() { segmentsInternedStr_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InternedDottedName(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InternedDottedName( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { segmentsInternedStr_ = newIntList(); mutable_bitField0_ |= 0x00000001; } segmentsInternedStr_.addInt(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { segmentsInternedStr_ = newIntList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { segmentsInternedStr_.addInt(input.readInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { segmentsInternedStr_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_InternedDottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_InternedDottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.class, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder.class); } public static final int SEGMENTS_INTERNED_STR_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList segmentsInternedStr_; /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public java.util.List getSegmentsInternedStrList() { return segmentsInternedStr_; } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public int getSegmentsInternedStrCount() { return segmentsInternedStr_.size(); } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public int getSegmentsInternedStr(int index) { return segmentsInternedStr_.getInt(index); } private int segmentsInternedStrMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (getSegmentsInternedStrList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(segmentsInternedStrMemoizedSerializedSize); } for (int i = 0; i < segmentsInternedStr_.size(); i++) { output.writeInt32NoTag(segmentsInternedStr_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < segmentsInternedStr_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(segmentsInternedStr_.getInt(i)); } size += dataSize; if (!getSegmentsInternedStrList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } segmentsInternedStrMemoizedSerializedSize = dataSize; } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName other = (com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName) obj; if (!getSegmentsInternedStrList() .equals(other.getSegmentsInternedStrList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSegmentsInternedStrCount() > 0) { hash = (37 * hash) + SEGMENTS_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getSegmentsInternedStrList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName 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.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName 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.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName 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.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName 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; } /** * Protobuf type {@code daml_lf_1.InternedDottedName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.InternedDottedName) com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_InternedDottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_InternedDottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.class, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); segmentsInternedStr_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_InternedDottedName_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName build() { com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName result = new com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { segmentsInternedStr_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.segmentsInternedStr_ = segmentsInternedStr_; 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.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.getDefaultInstance()) return this; if (!other.segmentsInternedStr_.isEmpty()) { if (segmentsInternedStr_.isEmpty()) { segmentsInternedStr_ = other.segmentsInternedStr_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsInternedStrIsMutable(); segmentsInternedStr_.addAll(other.segmentsInternedStr_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Internal.IntList segmentsInternedStr_ = emptyIntList(); private void ensureSegmentsInternedStrIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { segmentsInternedStr_ = mutableCopy(segmentsInternedStr_); bitField0_ |= 0x00000001; } } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public java.util.List getSegmentsInternedStrList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(segmentsInternedStr_) : segmentsInternedStr_; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public int getSegmentsInternedStrCount() { return segmentsInternedStr_.size(); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public int getSegmentsInternedStr(int index) { return segmentsInternedStr_.getInt(index); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public Builder setSegmentsInternedStr( int index, int value) { ensureSegmentsInternedStrIsMutable(); segmentsInternedStr_.setInt(index, value); onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public Builder addSegmentsInternedStr(int value) { ensureSegmentsInternedStrIsMutable(); segmentsInternedStr_.addInt(value); onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public Builder addAllSegmentsInternedStr( java.lang.Iterable values) { ensureSegmentsInternedStrIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, segmentsInternedStr_); onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1[json_name = "segmentsInternedStr"]; */ public Builder clearSegmentsInternedStr() { segmentsInternedStr_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); 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:daml_lf_1.InternedDottedName) } // @@protoc_insertion_point(class_scope:daml_lf_1.InternedDottedName) private static final com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InternedDottedName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InternedDottedName(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Package) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ java.util.List getModulesList(); /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.Module getModules(int index); /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ int getModulesCount(); /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ java.util.List getModulesOrBuilderList(); /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder getModulesOrBuilder( int index); /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ java.util.List getInternedStringsList(); /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ int getInternedStringsCount(); /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ java.lang.String getInternedStrings(int index); /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ com.google.protobuf.ByteString getInternedStringsBytes(int index); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ java.util.List getInternedDottedNamesList(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName getInternedDottedNames(int index); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ int getInternedDottedNamesCount(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ java.util.List getInternedDottedNamesOrBuilderList(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index); } /** * Protobuf type {@code daml_lf_1.Package} */ public static final class Package extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Package) PackageOrBuilder { private static final long serialVersionUID = 0L; // Use Package.newBuilder() to construct. private Package(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Package() { modules_ = java.util.Collections.emptyList(); internedStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; internedDottedNames_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Package(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Package( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { modules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } modules_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.Module.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { internedStrings_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } internedStrings_.add(s); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { internedDottedNames_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } internedDottedNames_.add( input.readMessage(com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { modules_ = java.util.Collections.unmodifiableList(modules_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { internedStrings_ = internedStrings_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { internedDottedNames_ = java.util.Collections.unmodifiableList(internedDottedNames_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Package.class, com.digitalasset.daml_lf_1_7.DamlLf1.Package.Builder.class); } public static final int MODULES_FIELD_NUMBER = 1; private java.util.List modules_; /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public java.util.List getModulesList() { return modules_; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public java.util.List getModulesOrBuilderList() { return modules_; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public int getModulesCount() { return modules_.size(); } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Module getModules(int index) { return modules_.get(index); } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder getModulesOrBuilder( int index) { return modules_.get(index); } public static final int INTERNED_STRINGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList internedStrings_; /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public com.google.protobuf.ProtocolStringList getInternedStringsList() { return internedStrings_; } /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public int getInternedStringsCount() { return internedStrings_.size(); } /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public java.lang.String getInternedStrings(int index) { return internedStrings_.get(index); } /** *
     * *Available in versions >= 1.6*
     * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public com.google.protobuf.ByteString getInternedStringsBytes(int index) { return internedStrings_.getByteString(index); } public static final int INTERNED_DOTTED_NAMES_FIELD_NUMBER = 3; private java.util.List internedDottedNames_; /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public java.util.List getInternedDottedNamesList() { return internedDottedNames_; } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public java.util.List getInternedDottedNamesOrBuilderList() { return internedDottedNames_; } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public int getInternedDottedNamesCount() { return internedDottedNames_.size(); } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName getInternedDottedNames(int index) { return internedDottedNames_.get(index); } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index) { return internedDottedNames_.get(index); } 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 { for (int i = 0; i < modules_.size(); i++) { output.writeMessage(1, modules_.get(i)); } for (int i = 0; i < internedStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, internedStrings_.getRaw(i)); } for (int i = 0; i < internedDottedNames_.size(); i++) { output.writeMessage(3, internedDottedNames_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < modules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, modules_.get(i)); } { int dataSize = 0; for (int i = 0; i < internedStrings_.size(); i++) { dataSize += computeStringSizeNoTag(internedStrings_.getRaw(i)); } size += dataSize; size += 1 * getInternedStringsList().size(); } for (int i = 0; i < internedDottedNames_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, internedDottedNames_.get(i)); } size += unknownFields.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.digitalasset.daml_lf_1_7.DamlLf1.Package)) { return super.equals(obj); } com.digitalasset.daml_lf_1_7.DamlLf1.Package other = (com.digitalasset.daml_lf_1_7.DamlLf1.Package) obj; if (!getModulesList() .equals(other.getModulesList())) return false; if (!getInternedStringsList() .equals(other.getInternedStringsList())) return false; if (!getInternedDottedNamesList() .equals(other.getInternedDottedNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getModulesCount() > 0) { hash = (37 * hash) + MODULES_FIELD_NUMBER; hash = (53 * hash) + getModulesList().hashCode(); } if (getInternedStringsCount() > 0) { hash = (37 * hash) + INTERNED_STRINGS_FIELD_NUMBER; hash = (53 * hash) + getInternedStringsList().hashCode(); } if (getInternedDottedNamesCount() > 0) { hash = (37 * hash) + INTERNED_DOTTED_NAMES_FIELD_NUMBER; hash = (53 * hash) + getInternedDottedNamesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package 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.digitalasset.daml_lf_1_7.DamlLf1.Package parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package 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.digitalasset.daml_lf_1_7.DamlLf1.Package parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package 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.digitalasset.daml_lf_1_7.DamlLf1.Package 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; } /** * Protobuf type {@code daml_lf_1.Package} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Package) com.digitalasset.daml_lf_1_7.DamlLf1.PackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( com.digitalasset.daml_lf_1_7.DamlLf1.Package.class, com.digitalasset.daml_lf_1_7.DamlLf1.Package.Builder.class); } // Construct using com.digitalasset.daml_lf_1_7.DamlLf1.Package.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModulesFieldBuilder(); getInternedDottedNamesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (modulesBuilder_ == null) { modules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { modulesBuilder_.clear(); } internedStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (internedDottedNamesBuilder_ == null) { internedDottedNames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { internedDottedNamesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.internal_static_daml_lf_1_Package_descriptor; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Package getDefaultInstanceForType() { return com.digitalasset.daml_lf_1_7.DamlLf1.Package.getDefaultInstance(); } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Package build() { com.digitalasset.daml_lf_1_7.DamlLf1.Package result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.digitalasset.daml_lf_1_7.DamlLf1.Package buildPartial() { com.digitalasset.daml_lf_1_7.DamlLf1.Package result = new com.digitalasset.daml_lf_1_7.DamlLf1.Package(this); int from_bitField0_ = bitField0_; if (modulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modules_ = java.util.Collections.unmodifiableList(modules_); bitField0_ = (bitField0_ & ~0x00000001); } result.modules_ = modules_; } else { result.modules_ = modulesBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { internedStrings_ = internedStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.internedStrings_ = internedStrings_; if (internedDottedNamesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { internedDottedNames_ = java.util.Collections.unmodifiableList(internedDottedNames_); bitField0_ = (bitField0_ & ~0x00000004); } result.internedDottedNames_ = internedDottedNames_; } else { result.internedDottedNames_ = internedDottedNamesBuilder_.build(); } 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.digitalasset.daml_lf_1_7.DamlLf1.Package) { return mergeFrom((com.digitalasset.daml_lf_1_7.DamlLf1.Package)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.digitalasset.daml_lf_1_7.DamlLf1.Package other) { if (other == com.digitalasset.daml_lf_1_7.DamlLf1.Package.getDefaultInstance()) return this; if (modulesBuilder_ == null) { if (!other.modules_.isEmpty()) { if (modules_.isEmpty()) { modules_ = other.modules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureModulesIsMutable(); modules_.addAll(other.modules_); } onChanged(); } } else { if (!other.modules_.isEmpty()) { if (modulesBuilder_.isEmpty()) { modulesBuilder_.dispose(); modulesBuilder_ = null; modules_ = other.modules_; bitField0_ = (bitField0_ & ~0x00000001); modulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModulesFieldBuilder() : null; } else { modulesBuilder_.addAllMessages(other.modules_); } } } if (!other.internedStrings_.isEmpty()) { if (internedStrings_.isEmpty()) { internedStrings_ = other.internedStrings_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInternedStringsIsMutable(); internedStrings_.addAll(other.internedStrings_); } onChanged(); } if (internedDottedNamesBuilder_ == null) { if (!other.internedDottedNames_.isEmpty()) { if (internedDottedNames_.isEmpty()) { internedDottedNames_ = other.internedDottedNames_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInternedDottedNamesIsMutable(); internedDottedNames_.addAll(other.internedDottedNames_); } onChanged(); } } else { if (!other.internedDottedNames_.isEmpty()) { if (internedDottedNamesBuilder_.isEmpty()) { internedDottedNamesBuilder_.dispose(); internedDottedNamesBuilder_ = null; internedDottedNames_ = other.internedDottedNames_; bitField0_ = (bitField0_ & ~0x00000004); internedDottedNamesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInternedDottedNamesFieldBuilder() : null; } else { internedDottedNamesBuilder_.addAllMessages(other.internedDottedNames_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.digitalasset.daml_lf_1_7.DamlLf1.Package parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.digitalasset.daml_lf_1_7.DamlLf1.Package) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List modules_ = java.util.Collections.emptyList(); private void ensureModulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modules_ = new java.util.ArrayList(modules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Module, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder> modulesBuilder_; /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public java.util.List getModulesList() { if (modulesBuilder_ == null) { return java.util.Collections.unmodifiableList(modules_); } else { return modulesBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public int getModulesCount() { if (modulesBuilder_ == null) { return modules_.size(); } else { return modulesBuilder_.getCount(); } } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Module getModules(int index) { if (modulesBuilder_ == null) { return modules_.get(index); } else { return modulesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder setModules( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Module value) { if (modulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModulesIsMutable(); modules_.set(index, value); onChanged(); } else { modulesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder setModules( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder builderForValue) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.set(index, builderForValue.build()); onChanged(); } else { modulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder addModules(com.digitalasset.daml_lf_1_7.DamlLf1.Module value) { if (modulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModulesIsMutable(); modules_.add(value); onChanged(); } else { modulesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder addModules( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Module value) { if (modulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModulesIsMutable(); modules_.add(index, value); onChanged(); } else { modulesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder addModules( com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder builderForValue) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.add(builderForValue.build()); onChanged(); } else { modulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder addModules( int index, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder builderForValue) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.add(index, builderForValue.build()); onChanged(); } else { modulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder addAllModules( java.lang.Iterable values) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modules_); onChanged(); } else { modulesBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder clearModules() { if (modulesBuilder_ == null) { modules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { modulesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public Builder removeModules(int index) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.remove(index); onChanged(); } else { modulesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder getModulesBuilder( int index) { return getModulesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder getModulesOrBuilder( int index) { if (modulesBuilder_ == null) { return modules_.get(index); } else { return modulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public java.util.List getModulesOrBuilderList() { if (modulesBuilder_ != null) { return modulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(modules_); } } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder addModulesBuilder() { return getModulesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.Module.getDefaultInstance()); } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder addModulesBuilder( int index) { return getModulesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.Module.getDefaultInstance()); } /** * repeated .daml_lf_1.Module modules = 1[json_name = "modules"]; */ public java.util.List getModulesBuilderList() { return getModulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Module, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder> getModulesFieldBuilder() { if (modulesBuilder_ == null) { modulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.Module, com.digitalasset.daml_lf_1_7.DamlLf1.Module.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.ModuleOrBuilder>( modules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); modules_ = null; } return modulesBuilder_; } private com.google.protobuf.LazyStringList internedStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInternedStringsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { internedStrings_ = new com.google.protobuf.LazyStringArrayList(internedStrings_); bitField0_ |= 0x00000002; } } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public com.google.protobuf.ProtocolStringList getInternedStringsList() { return internedStrings_.getUnmodifiableView(); } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public int getInternedStringsCount() { return internedStrings_.size(); } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public java.lang.String getInternedStrings(int index) { return internedStrings_.get(index); } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public com.google.protobuf.ByteString getInternedStringsBytes(int index) { return internedStrings_.getByteString(index); } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public Builder setInternedStrings( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInternedStringsIsMutable(); internedStrings_.set(index, value); onChanged(); return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public Builder addInternedStrings( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInternedStringsIsMutable(); internedStrings_.add(value); onChanged(); return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public Builder addAllInternedStrings( java.lang.Iterable values) { ensureInternedStringsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, internedStrings_); onChanged(); return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public Builder clearInternedStrings() { internedStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * *Available in versions >= 1.6*
       * 
* * repeated string interned_strings = 2[json_name = "internedStrings"]; */ public Builder addInternedStringsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInternedStringsIsMutable(); internedStrings_.add(value); onChanged(); return this; } private java.util.List internedDottedNames_ = java.util.Collections.emptyList(); private void ensureInternedDottedNamesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { internedDottedNames_ = new java.util.ArrayList(internedDottedNames_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder> internedDottedNamesBuilder_; /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public java.util.List getInternedDottedNamesList() { if (internedDottedNamesBuilder_ == null) { return java.util.Collections.unmodifiableList(internedDottedNames_); } else { return internedDottedNamesBuilder_.getMessageList(); } } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public int getInternedDottedNamesCount() { if (internedDottedNamesBuilder_ == null) { return internedDottedNames_.size(); } else { return internedDottedNamesBuilder_.getCount(); } } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName getInternedDottedNames(int index) { if (internedDottedNamesBuilder_ == null) { return internedDottedNames_.get(index); } else { return internedDottedNamesBuilder_.getMessage(index); } } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder setInternedDottedNames( int index, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName value) { if (internedDottedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedDottedNamesIsMutable(); internedDottedNames_.set(index, value); onChanged(); } else { internedDottedNamesBuilder_.setMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder setInternedDottedNames( int index, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder builderForValue) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.set(index, builderForValue.build()); onChanged(); } else { internedDottedNamesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder addInternedDottedNames(com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName value) { if (internedDottedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(value); onChanged(); } else { internedDottedNamesBuilder_.addMessage(value); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder addInternedDottedNames( int index, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName value) { if (internedDottedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(index, value); onChanged(); } else { internedDottedNamesBuilder_.addMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder addInternedDottedNames( com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder builderForValue) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(builderForValue.build()); onChanged(); } else { internedDottedNamesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder addInternedDottedNames( int index, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder builderForValue) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(index, builderForValue.build()); onChanged(); } else { internedDottedNamesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder addAllInternedDottedNames( java.lang.Iterable values) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, internedDottedNames_); onChanged(); } else { internedDottedNamesBuilder_.addAllMessages(values); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder clearInternedDottedNames() { if (internedDottedNamesBuilder_ == null) { internedDottedNames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { internedDottedNamesBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public Builder removeInternedDottedNames(int index) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.remove(index); onChanged(); } else { internedDottedNamesBuilder_.remove(index); } return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder getInternedDottedNamesBuilder( int index) { return getInternedDottedNamesFieldBuilder().getBuilder(index); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index) { if (internedDottedNamesBuilder_ == null) { return internedDottedNames_.get(index); } else { return internedDottedNamesBuilder_.getMessageOrBuilder(index); } } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public java.util.List getInternedDottedNamesOrBuilderList() { if (internedDottedNamesBuilder_ != null) { return internedDottedNamesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(internedDottedNames_); } } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder addInternedDottedNamesBuilder() { return getInternedDottedNamesFieldBuilder().addBuilder( com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.getDefaultInstance()); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder addInternedDottedNamesBuilder( int index) { return getInternedDottedNamesFieldBuilder().addBuilder( index, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.getDefaultInstance()); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3[json_name = "internedDottedNames"]; */ public java.util.List getInternedDottedNamesBuilderList() { return getInternedDottedNamesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder> getInternedDottedNamesFieldBuilder() { if (internedDottedNamesBuilder_ == null) { internedDottedNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedName.Builder, com.digitalasset.daml_lf_1_7.DamlLf1.InternedDottedNameOrBuilder>( internedDottedNames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); internedDottedNames_ = null; } return internedDottedNamesBuilder_; } @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:daml_lf_1.Package) } // @@protoc_insertion_point(class_scope:daml_lf_1.Package) private static final com.digitalasset.daml_lf_1_7.DamlLf1.Package DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_7.DamlLf1.Package(); } public static com.digitalasset.daml_lf_1_7.DamlLf1.Package getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Package parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Package(input, extensionRegistry); } }; 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.digitalasset.daml_lf_1_7.DamlLf1.Package getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Unit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Unit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_PackageRef_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_PackageRef_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DottedName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DottedName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_ModuleRef_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_ModuleRef_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_TypeConName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_TypeConName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_ValName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_ValName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_FieldWithType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_FieldWithType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_VarWithType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_VarWithType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_TypeVarWithKind_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_FieldWithExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Binding_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Binding_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Kind_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Kind_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Kind_Arrow_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_Var_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Var_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_Con_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Con_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_Prim_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Prim_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_Fun_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Fun_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_Forall_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Forall_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Type_Tuple_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Tuple_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_PrimLit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_PrimLit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Location_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Location_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Location_Range_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Location_Range_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_RecCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_RecProj_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_RecUpd_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_VariantCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_EnumCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_TupleCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_TupleCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_TupleProj_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_TupleProj_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_TupleUpd_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_TupleUpd_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_App_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_App_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_TyApp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_TyApp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_Abs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_Abs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_TyAbs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_TyAbs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_Nil_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_Nil_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_Cons_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_Cons_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_OptionalNone_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_OptionalNone_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_OptionalSome_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_OptionalSome_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_ToAny_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ToAny_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_FromAny_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_FromAny_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_CaseAlt_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_CaseAlt_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_CaseAlt_Variant_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_CaseAlt_Variant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_CaseAlt_Enum_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_CaseAlt_Enum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_CaseAlt_Cons_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_CaseAlt_Cons_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_CaseAlt_OptionalSome_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Case_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Case_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Block_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Block_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Pure_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Pure_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_Create_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_Create_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_Exercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_Exercise_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_Fetch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_Fetch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_EmbedExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_EmbedExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_RetrieveByKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Scenario_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Scenario_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Scenario_Commit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Scenario_Commit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Scenario_EmbedExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_TemplateChoice_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_TemplateChoice_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_KeyExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_KeyExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_KeyExpr_Projection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_KeyExpr_Projection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_KeyExpr_Projections_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_KeyExpr_Projections_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_KeyExpr_RecordField_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_KeyExpr_Record_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_KeyExpr_Record_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefTemplate_DefKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefDataType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefDataType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefDataType_Fields_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefDataType_Fields_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefDataType_EnumConstructors_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefValue_NameWithType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefValue_NameWithType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_FeatureFlags_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_FeatureFlags_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Module_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Module_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_InternedDottedName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_InternedDottedName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Package_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Package_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/digitalasset/daml_lf_1_7/daml_lf_1" + ".proto\022\tdaml_lf_1\"\006\n\004Unit\"\233\001\n\nPackageRef" + "\022%\n\004self\030\001 \001(\0132\017.daml_lf_1.UnitH\000R\004self\022" + "&\n\016package_id_str\030\002 \001(\tH\000R\014packageIdStr\022" + "7\n\027package_id_interned_str\030\003 \001(\005H\000R\024pack" + "ageIdInternedStrB\005\n\003Sum\"(\n\nDottedName\022\032\n" + "\010segments\030\001 \003(\tR\010segments\"\326\001\n\tModuleRef\022" + "6\n\013package_ref\030\001 \001(\0132\025.daml_lf_1.Package" + "RefR\npackageRef\022C\n\021module_name_dname\030\002 \001" + "(\0132\025.daml_lf_1.DottedNameH\000R\017moduleNameD" + "name\022=\n\032module_name_interned_dname\030\003 \001(\005" + "H\000R\027moduleNameInternedDnameB\r\n\013module_na" + "me\"\255\001\n\013TypeConName\022,\n\006module\030\001 \001(\0132\024.dam" + "l_lf_1.ModuleRefR\006module\0226\n\nname_dname\030\002" + " \001(\0132\025.daml_lf_1.DottedNameH\000R\tnameDname" + "\0220\n\023name_interned_dname\030\003 \001(\005H\000R\021nameInt" + "ernedDnameB\006\n\004name\"\206\001\n\007ValName\022,\n\006module" + "\030\001 \001(\0132\024.daml_lf_1.ModuleRefR\006module\022\035\n\n" + "name_dname\030\002 \003(\tR\tnameDname\022.\n\023name_inte" + "rned_dname\030\003 \001(\005R\021nameInternedDname\"\214\001\n\r" + "FieldWithType\022\035\n\tfield_str\030\001 \001(\tH\000R\010fiel" + "dStr\022.\n\022field_interned_str\030\003 \001(\005H\000R\020fiel" + "dInternedStr\022#\n\004type\030\002 \001(\0132\017.daml_lf_1.T" + "ypeR\004typeB\007\n\005field\"\200\001\n\013VarWithType\022\031\n\007va" + "r_str\030\001 \001(\tH\000R\006varStr\022*\n\020var_interned_st" + "r\030\003 \001(\005H\000R\016varInternedStr\022#\n\004type\030\002 \001(\0132" + "\017.daml_lf_1.TypeR\004typeB\005\n\003var\"\204\001\n\017TypeVa" + "rWithKind\022\031\n\007var_str\030\001 \001(\tH\000R\006varStr\022*\n\020" + "var_interned_str\030\003 \001(\005H\000R\016varInternedStr" + "\022#\n\004kind\030\002 \001(\0132\017.daml_lf_1.KindR\004kindB\005\n" + "\003var\"\214\001\n\rFieldWithExpr\022\035\n\tfield_str\030\001 \001(" + "\tH\000R\010fieldStr\022.\n\022field_interned_str\030\003 \001(" + "\005H\000R\020fieldInternedStr\022#\n\004expr\030\002 \001(\0132\017.da" + "ml_lf_1.ExprR\004exprB\007\n\005field\"`\n\007Binding\022." + "\n\006binder\030\001 \001(\0132\026.daml_lf_1.VarWithTypeR\006" + "binder\022%\n\005bound\030\002 \001(\0132\017.daml_lf_1.ExprR\005" + "bound\"\343\001\n\004Kind\022%\n\004star\030\001 \001(\0132\017.daml_lf_1" + ".UnitH\000R\004star\022-\n\005arrow\030\002 \001(\0132\025.daml_lf_1" + ".Kind.ArrowH\000R\005arrow\022#\n\003nat\030\003 \001(\0132\017.daml" + "_lf_1.UnitH\000R\003nat\032Y\n\005Arrow\022\'\n\006params\030\001 \003" + "(\0132\017.daml_lf_1.KindR\006params\022\'\n\006result\030\002 " + "\001(\0132\017.daml_lf_1.KindR\006resultB\005\n\003Sum\"\336\006\n\004" + "Type\022\'\n\003var\030\001 \001(\0132\023.daml_lf_1.Type.VarH\000" + "R\003var\022\'\n\003con\030\002 \001(\0132\023.daml_lf_1.Type.ConH" + "\000R\003con\022*\n\004prim\030\003 \001(\0132\024.daml_lf_1.Type.Pr" + "imH\000R\004prim\022\'\n\003fun\030\004 \001(\0132\023.daml_lf_1.Type" + ".FunH\000R\003fun\0220\n\006forall\030\005 \001(\0132\026.daml_lf_1." + "Type.ForallH\000R\006forall\022-\n\005tuple\030\007 \001(\0132\025.d" + "aml_lf_1.Type.TupleH\000R\005tuple\022\022\n\003nat\030\013 \001(" + "\022H\000R\003nat\032x\n\003Var\022\031\n\007var_str\030\001 \001(\tH\000R\006varS" + "tr\022*\n\020var_interned_str\030\003 \001(\005H\000R\016varInter" + "nedStr\022#\n\004args\030\002 \003(\0132\017.daml_lf_1.TypeR\004a" + "rgsB\005\n\003var\032X\n\003Con\022,\n\005tycon\030\001 \001(\0132\026.daml_" + "lf_1.TypeConNameR\005tycon\022#\n\004args\030\002 \003(\0132\017." + "daml_lf_1.TypeR\004args\032T\n\004Prim\022\'\n\004prim\030\001 \001" + "(\0162\023.daml_lf_1.PrimTypeR\004prim\022#\n\004args\030\002 " + "\003(\0132\017.daml_lf_1.TypeR\004args\032W\n\003Fun\022\'\n\006par" + "ams\030\001 \003(\0132\017.daml_lf_1.TypeR\006params\022\'\n\006re" + "sult\030\002 \001(\0132\017.daml_lf_1.TypeR\006result\032]\n\006F" + "orall\022.\n\004vars\030\001 \003(\0132\032.daml_lf_1.TypeVarW" + "ithKindR\004vars\022#\n\004body\030\002 \001(\0132\017.daml_lf_1." + "TypeR\004body\0329\n\005Tuple\0220\n\006fields\030\001 \003(\0132\030.da" + "ml_lf_1.FieldWithTypeR\006fieldsB\005\n\003SumJ\004\010\006" + "\020\007J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013\"\333\002\n\007PrimLit\022\026\n\005int6" + "4\030\001 \001(\022H\000R\005int64\022!\n\013decimal_str\030\002 \001(\tH\000R" + "\ndecimalStr\0222\n\024numeric_interned_str\030\n \001(" + "\005H\000R\022numericInternedStr\022\033\n\010text_str\030\004 \001(" + "\tH\000R\007textStr\022,\n\021text_interned_str\030\013 \001(\005H" + "\000R\017textInternedStr\022\036\n\ttimestamp\030\005 \001(\020H\000R" + "\ttimestamp\022\035\n\tparty_str\030\007 \001(\tH\000R\010partySt" + "r\022.\n\022party_interned_str\030\014 \001(\005H\000R\020partyIn" + "ternedStr\022\024\n\004date\030\010 \001(\005H\000R\004dateB\005\n\003SumJ\004" + "\010\003\020\004J\004\010\006\020\007\"\342\001\n\010Location\022,\n\006module\030\001 \001(\0132" + "\024.daml_lf_1.ModuleRefR\006module\022/\n\005range\030\002" + " \001(\0132\031.daml_lf_1.Location.RangeR\005range\032w" + "\n\005Range\022\035\n\nstart_line\030\001 \001(\005R\tstartLine\022\033" + "\n\tstart_col\030\002 \001(\005R\010startCol\022\031\n\010end_line\030" + "\003 \001(\005R\007endLine\022\027\n\007end_col\030\004 \001(\005R\006endCol\"" + "\234\034\n\004Expr\022/\n\010location\030\031 \001(\0132\023.daml_lf_1.L" + "ocationR\010location\022\031\n\007var_str\030\001 \001(\tH\000R\006va" + "rStr\022*\n\020var_interned_str\030\035 \001(\005H\000R\016varInt" + "ernedStr\022&\n\003val\030\002 \001(\0132\022.daml_lf_1.ValNam" + "eH\000R\003val\0226\n\007builtin\030\003 \001(\0162\032.daml_lf_1.Bu" + "iltinFunctionH\000R\007builtin\022/\n\010prim_con\030\004 \001" + "(\0162\022.daml_lf_1.PrimConH\000R\007primCon\022/\n\010pri" + "m_lit\030\005 \001(\0132\022.daml_lf_1.PrimLitH\000R\007primL" + "it\0221\n\007rec_con\030\006 \001(\0132\026.daml_lf_1.Expr.Rec" + "ConH\000R\006recCon\0224\n\010rec_proj\030\007 \001(\0132\027.daml_l" + "f_1.Expr.RecProjH\000R\007recProj\0221\n\007rec_upd\030\026" + " \001(\0132\026.daml_lf_1.Expr.RecUpdH\000R\006recUpd\022=" + "\n\013variant_con\030\010 \001(\0132\032.daml_lf_1.Expr.Var" + "iantConH\000R\nvariantCon\0224\n\010enum_con\030\034 \001(\0132" + "\027.daml_lf_1.Expr.EnumConH\000R\007enumCon\0227\n\tt" + "uple_con\030\t \001(\0132\030.daml_lf_1.Expr.TupleCon" + "H\000R\010tupleCon\022:\n\ntuple_proj\030\n \001(\0132\031.daml_" + "lf_1.Expr.TupleProjH\000R\ttupleProj\0227\n\ttupl" + "e_upd\030\027 \001(\0132\030.daml_lf_1.Expr.TupleUpdH\000R" + "\010tupleUpd\022\'\n\003app\030\013 \001(\0132\023.daml_lf_1.Expr." + "AppH\000R\003app\022.\n\006ty_app\030\014 \001(\0132\025.daml_lf_1.E" + "xpr.TyAppH\000R\005tyApp\022\'\n\003abs\030\r \001(\0132\023.daml_l" + "f_1.Expr.AbsH\000R\003abs\022.\n\006ty_abs\030\016 \001(\0132\025.da" + "ml_lf_1.Expr.TyAbsH\000R\005tyAbs\022%\n\004case\030\017 \001(" + "\0132\017.daml_lf_1.CaseH\000R\004case\022$\n\003let\030\020 \001(\0132" + "\020.daml_lf_1.BlockH\000R\003let\022\'\n\003nil\030\021 \001(\0132\023." + "daml_lf_1.Expr.NilH\000R\003nil\022*\n\004cons\030\022 \001(\0132" + "\024.daml_lf_1.Expr.ConsH\000R\004cons\022+\n\006update\030" + "\024 \001(\0132\021.daml_lf_1.UpdateH\000R\006update\0221\n\010sc" + "enario\030\025 \001(\0132\023.daml_lf_1.ScenarioH\000R\010sce" + "nario\022C\n\roptional_none\030\032 \001(\0132\034.daml_lf_1" + ".Expr.OptionalNoneH\000R\014optionalNone\022C\n\rop" + "tional_some\030\033 \001(\0132\034.daml_lf_1.Expr.Optio" + "nalSomeH\000R\014optionalSome\022.\n\006to_any\030\036 \001(\0132" + "\025.daml_lf_1.Expr.ToAnyH\000R\005toAny\0224\n\010from_" + "any\030\037 \001(\0132\027.daml_lf_1.Expr.FromAnyH\000R\007fr" + "omAny\022,\n\010type_rep\030 \001(\0132\017.daml_lf_1.Type" + "H\000R\007typeRep\032e\n\006RecCon\022)\n\005tycon\030\001 \001(\0132\023.d" + "aml_lf_1.Type.ConR\005tycon\0220\n\006fields\030\002 \003(\013" + "2\030.daml_lf_1.FieldWithExprR\006fields\032\265\001\n\007R" + "ecProj\022)\n\005tycon\030\001 \001(\0132\023.daml_lf_1.Type.C" + "onR\005tycon\022\035\n\tfield_str\030\002 \001(\tH\000R\010fieldStr" + "\022.\n\022field_interned_str\030\004 \001(\005H\000R\020fieldInt" + "ernedStr\022\'\n\006record\030\003 \001(\0132\017.daml_lf_1.Exp" + "rR\006recordB\007\n\005field\032\335\001\n\006RecUpd\022)\n\005tycon\030\001" + " \001(\0132\023.daml_lf_1.Type.ConR\005tycon\022\035\n\tfiel" + "d_str\030\002 \001(\tH\000R\010fieldStr\022.\n\022field_interne" + "d_str\030\005 \001(\005H\000R\020fieldInternedStr\022\'\n\006recor" + "d\030\003 \001(\0132\017.daml_lf_1.ExprR\006record\022\'\n\006upda" + "te\030\004 \001(\0132\017.daml_lf_1.ExprR\006updateB\007\n\005fie" + "ld\032\335\001\n\nVariantCon\022)\n\005tycon\030\001 \001(\0132\023.daml_" + "lf_1.Type.ConR\005tycon\022(\n\017variant_con_str\030" + "\002 \001(\tH\000R\rvariantConStr\0229\n\030variant_con_in" + "terned_str\030\004 \001(\005H\000R\025variantConInternedSt" + "r\0220\n\013variant_arg\030\003 \001(\0132\017.daml_lf_1.ExprR" + "\nvariantArgB\r\n\013variant_con\032\234\001\n\007EnumCon\022," + "\n\005tycon\030\001 \001(\0132\026.daml_lf_1.TypeConNameR\005t" + "ycon\022\"\n\014enum_con_str\030\002 \001(\tH\000R\nenumConStr" + "\0223\n\025enum_con_interned_str\030\003 \001(\005H\000R\022enumC" + "onInternedStrB\n\n\010enum_con\032<\n\010TupleCon\0220\n" + "\006fields\030\001 \003(\0132\030.daml_lf_1.FieldWithExprR" + "\006fields\032\212\001\n\tTupleProj\022\035\n\tfield_str\030\001 \001(\t" + "H\000R\010fieldStr\022.\n\022field_interned_str\030\003 \001(\005" + "H\000R\020fieldInternedStr\022%\n\005tuple\030\002 \001(\0132\017.da" + "ml_lf_1.ExprR\005tupleB\007\n\005field\032\262\001\n\010TupleUp" + "d\022\035\n\tfield_str\030\001 \001(\tH\000R\010fieldStr\022.\n\022fiel" + "d_interned_str\030\004 \001(\005H\000R\020fieldInternedStr" + "\022%\n\005tuple\030\002 \001(\0132\017.daml_lf_1.ExprR\005tuple\022" + "\'\n\006update\030\003 \001(\0132\017.daml_lf_1.ExprR\006update" + "B\007\n\005field\032M\n\003App\022!\n\003fun\030\001 \001(\0132\017.daml_lf_" + "1.ExprR\003fun\022#\n\004args\030\002 \003(\0132\017.daml_lf_1.Ex" + "prR\004args\032S\n\005TyApp\022#\n\004expr\030\001 \001(\0132\017.daml_l" + "f_1.ExprR\004expr\022%\n\005types\030\002 \003(\0132\017.daml_lf_" + "1.TypeR\005types\032X\n\003Abs\022,\n\005param\030\001 \003(\0132\026.da" + "ml_lf_1.VarWithTypeR\005param\022#\n\004body\030\002 \001(\013" + "2\017.daml_lf_1.ExprR\004body\032^\n\005TyAbs\0220\n\005para" + "m\030\001 \003(\0132\032.daml_lf_1.TypeVarWithKindR\005par" + "am\022#\n\004body\030\002 \001(\0132\017.daml_lf_1.ExprR\004body\032" + "*\n\003Nil\022#\n\004type\030\001 \001(\0132\017.daml_lf_1.TypeR\004t" + "ype\032w\n\004Cons\022#\n\004type\030\001 \001(\0132\017.daml_lf_1.Ty" + "peR\004type\022%\n\005front\030\002 \003(\0132\017.daml_lf_1.Expr" + "R\005front\022#\n\004tail\030\003 \001(\0132\017.daml_lf_1.ExprR\004" + "tail\0323\n\014OptionalNone\022#\n\004type\030\001 \001(\0132\017.dam" + "l_lf_1.TypeR\004type\032X\n\014OptionalSome\022#\n\004typ" + "e\030\001 \001(\0132\017.daml_lf_1.TypeR\004type\022#\n\004body\030\002" + " \001(\0132\017.daml_lf_1.ExprR\004body\032Q\n\005ToAny\022#\n\004" + "type\030\001 \001(\0132\017.daml_lf_1.TypeR\004type\022#\n\004exp" + "r\030\002 \001(\0132\017.daml_lf_1.ExprR\004expr\032S\n\007FromAn" + "y\022#\n\004type\030\001 \001(\0132\017.daml_lf_1.TypeR\004type\022#" + "\n\004expr\030\002 \001(\0132\017.daml_lf_1.ExprR\004exprB\005\n\003S" + "umJ\004\010\023\020\024J\004\010\030\020\031\"\264\t\n\007CaseAlt\022+\n\007default\030\001 " + "\001(\0132\017.daml_lf_1.UnitH\000R\007default\0226\n\007varia" + "nt\030\002 \001(\0132\032.daml_lf_1.CaseAlt.VariantH\000R\007" + "variant\022/\n\010prim_con\030\003 \001(\0162\022.daml_lf_1.Pr" + "imConH\000R\007primCon\022#\n\003nil\030\004 \001(\0132\017.daml_lf_" + "1.UnitH\000R\003nil\022-\n\004cons\030\005 \001(\0132\027.daml_lf_1." + "CaseAlt.ConsH\000R\004cons\0226\n\roptional_none\030\007 " + "\001(\0132\017.daml_lf_1.UnitH\000R\014optionalNone\022F\n\r" + "optional_some\030\010 \001(\0132\037.daml_lf_1.CaseAlt." + "OptionalSomeH\000R\014optionalSome\022-\n\004enum\030\t \001" + "(\0132\027.daml_lf_1.CaseAlt.EnumH\000R\004enum\022#\n\004b" + "ody\030\006 \001(\0132\017.daml_lf_1.ExprR\004body\032\362\001\n\007Var" + "iant\022(\n\003con\030\001 \001(\0132\026.daml_lf_1.TypeConNam" + "eR\003con\022!\n\013variant_str\030\002 \001(\tH\000R\nvariantSt" + "r\0222\n\024variant_interned_str\030\004 \001(\005H\000R\022varia" + "ntInternedStr\022\037\n\nbinder_str\030\003 \001(\tH\001R\tbin" + "derStr\0220\n\023binder_interned_str\030\005 \001(\005H\001R\021b" + "inderInternedStrB\t\n\007variantB\010\n\006binder\032\246\001" + "\n\004Enum\022(\n\003con\030\001 \001(\0132\026.daml_lf_1.TypeConN" + "ameR\003con\022)\n\017constructor_str\030\002 \001(\tH\000R\016con" + "structorStr\022:\n\030constructor_interned_str\030" + "\003 \001(\005H\000R\026constructorInternedStrB\r\n\013const" + "ructor\032\320\001\n\004Cons\022\"\n\014var_head_str\030\001 \001(\tH\000R" + "\nvarHeadStr\0223\n\025var_head_interned_str\030\003 \001" + "(\005H\000R\022varHeadInternedStr\022\"\n\014var_tail_str" + "\030\002 \001(\tH\001R\nvarTailStr\0223\n\025var_tail_interne" + "d_str\030\004 \001(\005H\001R\022varTailInternedStrB\n\n\010var" + "_headB\n\n\010var_tail\032s\n\014OptionalSome\022\"\n\014var" + "_body_str\030\001 \001(\tH\000R\nvarBodyStr\0223\n\025var_bod" + "y_interned_str\030\002 \001(\005H\000R\022varBodyInternedS" + "trB\n\n\010var_bodyB\005\n\003Sum\"U\n\004Case\022%\n\005scrut\030\001" + " \001(\0132\017.daml_lf_1.ExprR\005scrut\022&\n\004alts\030\002 \003" + "(\0132\022.daml_lf_1.CaseAltR\004alts\"\\\n\005Block\022.\n" + "\010bindings\030\001 \003(\0132\022.daml_lf_1.BindingR\010bin" + "dings\022#\n\004body\030\002 \001(\0132\017.daml_lf_1.ExprR\004bo" + "dy\"P\n\004Pure\022#\n\004type\030\001 \001(\0132\017.daml_lf_1.Typ" + "eR\004type\022#\n\004expr\030\002 \001(\0132\017.daml_lf_1.ExprR\004" + "expr\"\212\t\n\006Update\022%\n\004pure\030\001 \001(\0132\017.daml_lf_" + "1.PureH\000R\004pure\022(\n\005block\030\002 \001(\0132\020.daml_lf_" + "1.BlockH\000R\005block\0222\n\006create\030\003 \001(\0132\030.daml_" + "lf_1.Update.CreateH\000R\006create\0228\n\010exercise" + "\030\004 \001(\0132\032.daml_lf_1.Update.ExerciseH\000R\010ex" + "ercise\022/\n\005fetch\030\005 \001(\0132\027.daml_lf_1.Update" + ".FetchH\000R\005fetch\022,\n\010get_time\030\006 \001(\0132\017.daml" + "_lf_1.UnitH\000R\007getTime\022E\n\rlookup_by_key\030\010" + " \001(\0132\037.daml_lf_1.Update.RetrieveByKeyH\000R" + "\013lookupByKey\022C\n\014fetch_by_key\030\t \001(\0132\037.dam" + "l_lf_1.Update.RetrieveByKeyH\000R\nfetchByKe" + "y\022<\n\nembed_expr\030\007 \001(\0132\033.daml_lf_1.Update" + ".EmbedExprH\000R\tembedExpr\032a\n\006Create\0222\n\010tem" + "plate\030\001 \001(\0132\026.daml_lf_1.TypeConNameR\010tem" + "plate\022#\n\004expr\030\002 \001(\0132\017.daml_lf_1.ExprR\004ex" + "pr\032\210\002\n\010Exercise\0222\n\010template\030\001 \001(\0132\026.daml" + "_lf_1.TypeConNameR\010template\022\037\n\nchoice_st" + "r\030\002 \001(\tH\000R\tchoiceStr\0220\n\023choice_interned_" + "str\030\006 \001(\005H\000R\021choiceInternedStr\022!\n\003cid\030\003 " + "\001(\0132\017.daml_lf_1.ExprR\003cid\022%\n\005actor\030\004 \001(\013" + "2\017.daml_lf_1.ExprR\005actor\022!\n\003arg\030\005 \001(\0132\017." + "daml_lf_1.ExprR\003argB\010\n\006choice\032d\n\005Fetch\0222" + "\n\010template\030\001 \001(\0132\026.daml_lf_1.TypeConName" + "R\010template\022!\n\003cid\030\002 \001(\0132\017.daml_lf_1.Expr" + "R\003cidJ\004\010\003\020\004\032U\n\tEmbedExpr\022#\n\004type\030\001 \001(\0132\017" + ".daml_lf_1.TypeR\004type\022#\n\004body\030\002 \001(\0132\017.da" + "ml_lf_1.ExprR\004body\032f\n\rRetrieveByKey\0222\n\010t" + "emplate\030\001 \001(\0132\026.daml_lf_1.TypeConNameR\010t" + "emplate\022!\n\003key\030\002 \001(\0132\017.daml_lf_1.ExprR\003k" + "eyB\005\n\003Sum\"\365\004\n\010Scenario\022%\n\004pure\030\001 \001(\0132\017.d" + "aml_lf_1.PureH\000R\004pure\022(\n\005block\030\002 \001(\0132\020.d" + "aml_lf_1.BlockH\000R\005block\0224\n\006commit\030\003 \001(\0132" + "\032.daml_lf_1.Scenario.CommitH\000R\006commit\022<\n" + "\nmustFailAt\030\004 \001(\0132\032.daml_lf_1.Scenario.C" + "ommitH\000R\nmustFailAt\022%\n\004pass\030\005 \001(\0132\017.daml" + "_lf_1.ExprH\000R\004pass\022,\n\010get_time\030\006 \001(\0132\017.d" + "aml_lf_1.UnitH\000R\007getTime\022.\n\tget_party\030\007 " + "\001(\0132\017.daml_lf_1.ExprH\000R\010getParty\022>\n\nembe" + "d_expr\030\010 \001(\0132\035.daml_lf_1.Scenario.EmbedE" + "xprH\000R\tembedExpr\032\200\001\n\006Commit\022%\n\005party\030\001 \001" + "(\0132\017.daml_lf_1.ExprR\005party\022#\n\004expr\030\002 \001(\013" + "2\017.daml_lf_1.ExprR\004expr\022*\n\010ret_type\030\003 \001(" + "\0132\017.daml_lf_1.TypeR\007retType\032U\n\tEmbedExpr" + "\022#\n\004type\030\001 \001(\0132\017.daml_lf_1.TypeR\004type\022#\n" + "\004body\030\002 \001(\0132\017.daml_lf_1.ExprR\004bodyB\005\n\003Su" + "m\"\345\003\n\016TemplateChoice\022\033\n\010name_str\030\001 \001(\tH\000" + "R\007nameStr\022,\n\021name_interned_str\030\t \001(\005H\000R\017" + "nameInternedStr\022\034\n\tconsuming\030\002 \001(\010R\tcons" + "uming\0221\n\013controllers\030\003 \001(\0132\017.daml_lf_1.E" + "xprR\013controllers\0225\n\narg_binder\030\004 \001(\0132\026.d" + "aml_lf_1.VarWithTypeR\targBinder\022*\n\010ret_t" + "ype\030\005 \001(\0132\017.daml_lf_1.TypeR\007retType\022\'\n\006u" + "pdate\030\006 \001(\0132\017.daml_lf_1.ExprR\006update\022(\n\017" + "self_binder_str\030\007 \001(\tH\001R\rselfBinderStr\0229" + "\n\030self_binder_interned_str\030\n \001(\005H\001R\025self" + "BinderInternedStr\022/\n\010location\030\010 \001(\0132\023.da" + "ml_lf_1.LocationR\010locationB\006\n\004nameB\r\n\013se" + "lf_binder\"\350\004\n\007KeyExpr\022B\n\013projections\030\001 \001" + "(\0132\036.daml_lf_1.KeyExpr.ProjectionsH\000R\013pr" + "ojections\0223\n\006record\030\002 \001(\0132\031.daml_lf_1.Ke" + "yExpr.RecordH\000R\006record\032\217\001\n\nProjection\022)\n" + "\005tycon\030\001 \001(\0132\023.daml_lf_1.Type.ConR\005tycon" + "\022\035\n\tfield_str\030\002 \001(\tH\000R\010fieldStr\022.\n\022field" + "_interned_str\030\003 \001(\005H\000R\020fieldInternedStrB" + "\007\n\005field\032N\n\013Projections\022?\n\013projections\030\002" + " \003(\0132\035.daml_lf_1.KeyExpr.ProjectionR\013pro" + "jections\032\215\001\n\013RecordField\022\035\n\tfield_str\030\001 " + "\001(\tH\000R\010fieldStr\022.\n\022field_interned_str\030\003 " + "\001(\005H\000R\020fieldInternedStr\022&\n\004expr\030\002 \001(\0132\022." + "daml_lf_1.KeyExprR\004exprB\007\n\005field\032k\n\006Reco" + "rd\022)\n\005tycon\030\001 \001(\0132\023.daml_lf_1.Type.ConR\005" + "tycon\0226\n\006fields\030\002 \003(\0132\036.daml_lf_1.KeyExp" + "r.RecordFieldR\006fieldsB\005\n\003Sum\"\200\006\n\013DefTemp" + "late\0228\n\013tycon_dname\030\001 \001(\0132\025.daml_lf_1.Do" + "ttedNameH\000R\ntyconDname\0222\n\024tycon_interned" + "_dname\030\014 \001(\005H\000R\022tyconInternedDname\022\035\n\tpa" + "ram_str\030\002 \001(\tH\001R\010paramStr\022.\n\022param_inter" + "ned_str\030\013 \001(\005H\001R\020paramInternedStr\022)\n\007pre" + "cond\030\004 \001(\0132\017.daml_lf_1.ExprR\007precond\0221\n\013" + "signatories\030\005 \001(\0132\017.daml_lf_1.ExprR\013sign" + "atories\022-\n\tagreement\030\006 \001(\0132\017.daml_lf_1.E" + "xprR\tagreement\0223\n\007choices\030\007 \003(\0132\031.daml_l" + "f_1.TemplateChoiceR\007choices\022-\n\tobservers" + "\030\010 \001(\0132\017.daml_lf_1.ExprR\tobservers\022/\n\010lo" + "cation\030\t \001(\0132\023.daml_lf_1.LocationR\010locat" + "ion\022/\n\003key\030\n \001(\0132\035.daml_lf_1.DefTemplate" + ".DefKeyR\003key\032\310\001\n\006DefKey\022#\n\004type\030\001 \001(\0132\017." + "daml_lf_1.TypeR\004type\022&\n\003key\030\002 \001(\0132\022.daml" + "_lf_1.KeyExprH\000R\003key\0222\n\013complex_key\030\004 \001(" + "\0132\017.daml_lf_1.ExprH\000R\ncomplexKey\0221\n\013main" + "tainers\030\003 \001(\0132\017.daml_lf_1.ExprR\013maintain" + "ersB\n\n\010key_exprB\007\n\005tyconB\007\n\005paramJ\004\010\003\020\004\"" + "\376\004\n\013DefDataType\0226\n\nname_dname\030\001 \001(\0132\025.da" + "ml_lf_1.DottedNameH\000R\tnameDname\0220\n\023name_" + "interned_dname\030\010 \001(\005H\000R\021nameInternedDnam" + "e\0222\n\006params\030\002 \003(\0132\032.daml_lf_1.TypeVarWit" + "hKindR\006params\0227\n\006record\030\003 \001(\0132\035.daml_lf_" + "1.DefDataType.FieldsH\001R\006record\0229\n\007varian" + "t\030\004 \001(\0132\035.daml_lf_1.DefDataType.FieldsH\001" + "R\007variant\022=\n\004enum\030\007 \001(\0132\'.daml_lf_1.DefD" + "ataType.EnumConstructorsH\001R\004enum\022\"\n\014seri" + "alizable\030\005 \001(\010R\014serializable\022/\n\010location" + "\030\006 \001(\0132\023.daml_lf_1.LocationR\010location\032:\n" + "\006Fields\0220\n\006fields\030\001 \003(\0132\030.daml_lf_1.Fiel" + "dWithTypeR\006fields\032y\n\020EnumConstructors\022)\n" + "\020constructors_str\030\001 \003(\tR\017constructorsStr" + "\022:\n\031constructors_interned_str\030\002 \003(\005R\027con" + "structorsInternedStrB\006\n\004nameB\n\n\010DataCons" + "\"\362\002\n\010DefValue\022F\n\016name_with_type\030\001 \001(\0132 ." + "daml_lf_1.DefValue.NameWithTypeR\014nameWit" + "hType\022#\n\004expr\030\002 \001(\0132\017.daml_lf_1.ExprR\004ex" + "pr\022*\n\021no_party_literals\030\003 \001(\010R\017noPartyLi" + "terals\022\027\n\007is_test\030\004 \001(\010R\006isTest\022/\n\010locat" + "ion\030\005 \001(\0132\023.daml_lf_1.LocationR\010location" + "\032\202\001\n\014NameWithType\022\035\n\nname_dname\030\001 \003(\tR\tn" + "ameDname\022.\n\023name_interned_dname\030\003 \001(\005R\021n" + "ameInternedDname\022#\n\004type\030\002 \001(\0132\017.daml_lf" + "_1.TypeR\004type\"\372\001\n\014FeatureFlags\0220\n\023forbid" + "PartyLiterals\030\001 \001(\010R\023forbidPartyLiterals" + "\022X\n\'dontDivulgeContractIdsInCreateArgume" + "nts\030\002 \001(\010R\'dontDivulgeContractIdsInCreat" + "eArguments\022^\n*dontDiscloseNonConsumingCh" + "oicesToObservers\030\003 \001(\010R*dontDiscloseNonC" + "onsumingChoicesToObservers\"\317\002\n\006Module\0226\n" + "\nname_dname\030\001 \001(\0132\025.daml_lf_1.DottedName" + "H\000R\tnameDname\0220\n\023name_interned_dname\030\010 \001" + "(\005H\000R\021nameInternedDname\022-\n\005flags\030\004 \001(\0132\027" + ".daml_lf_1.FeatureFlagsR\005flags\0225\n\ndata_t" + "ypes\030\005 \003(\0132\026.daml_lf_1.DefDataTypeR\tdata" + "Types\022+\n\006values\030\006 \003(\0132\023.daml_lf_1.DefVal" + "ueR\006values\0224\n\ttemplates\030\007 \003(\0132\026.daml_lf_" + "1.DefTemplateR\ttemplatesB\006\n\004nameJ\004\010\002\020\003J\004" + "\010\003\020\004\"H\n\022InternedDottedName\0222\n\025segments_i" + "nterned_str\030\001 \003(\005R\023segmentsInternedStr\"\264" + "\001\n\007Package\022+\n\007modules\030\001 \003(\0132\021.daml_lf_1." + "ModuleR\007modules\022)\n\020interned_strings\030\002 \003(" + "\tR\017internedStrings\022Q\n\025interned_dotted_na" + "mes\030\003 \003(\0132\035.daml_lf_1.InternedDottedName" + "R\023internedDottedNames*\337\001\n\010PrimType\022\010\n\004UN" + "IT\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002\022\013\n\007DECIMAL\020\003\022\010" + "\n\004TEXT\020\005\022\r\n\tTIMESTAMP\020\006\022\t\n\005PARTY\020\010\022\010\n\004LI" + "ST\020\t\022\n\n\006UPDATE\020\n\022\014\n\010SCENARIO\020\013\022\010\n\004DATE\020\014" + "\022\017\n\013CONTRACT_ID\020\r\022\014\n\010OPTIONAL\020\016\022\t\n\005ARROW" + "\020\017\022\007\n\003MAP\020\020\022\013\n\007NUMERIC\020\021\022\007\n\003ANY\020\022\022\014\n\010TYP" + "E_REP\020\023*4\n\007PrimCon\022\014\n\010CON_UNIT\020\000\022\r\n\tCON_" + "FALSE\020\001\022\014\n\010CON_TRUE\020\002*\314\r\n\017BuiltinFunctio" + "n\022\017\n\013ADD_DECIMAL\020\000\022\017\n\013SUB_DECIMAL\020\001\022\017\n\013M" + "UL_DECIMAL\020\002\022\017\n\013DIV_DECIMAL\020\003\022\021\n\rROUND_D" + "ECIMAL\020\006\022\017\n\013ADD_NUMERIC\020k\022\017\n\013SUB_NUMERIC" + "\020l\022\017\n\013MUL_NUMERIC\020m\022\017\n\013DIV_NUMERIC\020n\022\021\n\r" + "ROUND_NUMERIC\020o\022\020\n\014CAST_NUMERIC\020y\022\021\n\rSHI" + "FT_NUMERIC\020z\022\r\n\tADD_INT64\020\007\022\r\n\tSUB_INT64" + "\020\010\022\r\n\tMUL_INT64\020\t\022\r\n\tDIV_INT64\020\n\022\r\n\tMOD_" + "INT64\020\013\022\r\n\tEXP_INT64\020\014\022\t\n\005FOLDL\020\024\022\t\n\005FOL" + "DR\020\025\022\r\n\tMAP_EMPTY\020`\022\016\n\nMAP_INSERT\020a\022\016\n\nM" + "AP_LOOKUP\020b\022\016\n\nMAP_DELETE\020c\022\017\n\013MAP_TO_LI" + "ST\020d\022\014\n\010MAP_SIZE\020e\022\020\n\014EXPLODE_TEXT\020\027\022\017\n\013" + "APPEND_TEXT\020\030\022\t\n\005ERROR\020\031\022\r\n\tLEQ_INT64\020!\022" + "\017\n\013LEQ_DECIMAL\020\"\022\017\n\013LEQ_NUMERIC\020p\022\014\n\010LEQ" + "_TEXT\020$\022\021\n\rLEQ_TIMESTAMP\020%\022\014\n\010LEQ_DATE\020C" + "\022\r\n\tLEQ_PARTY\020Y\022\016\n\nLESS_INT64\020\'\022\020\n\014LESS_" + "DECIMAL\020(\022\020\n\014LESS_NUMERIC\020q\022\r\n\tLESS_TEXT" + "\020*\022\022\n\016LESS_TIMESTAMP\020+\022\r\n\tLESS_DATE\020D\022\016\n" + "\nLESS_PARTY\020Z\022\r\n\tGEQ_INT64\020-\022\017\n\013GEQ_DECI" + "MAL\020.\022\017\n\013GEQ_NUMERIC\020r\022\014\n\010GEQ_TEXT\0200\022\021\n\r" + "GEQ_TIMESTAMP\0201\022\014\n\010GEQ_DATE\020E\022\r\n\tGEQ_PAR" + "TY\020[\022\021\n\rGREATER_INT64\0203\022\023\n\017GREATER_DECIM" + "AL\0204\022\023\n\017GREATER_NUMERIC\020s\022\020\n\014GREATER_TEX" + "T\0206\022\025\n\021GREATER_TIMESTAMP\0207\022\020\n\014GREATER_DA" + "TE\020F\022\021\n\rGREATER_PARTY\020\\\022\021\n\rTO_TEXT_INT64" + "\0209\022\023\n\017TO_TEXT_DECIMAL\020:\022\023\n\017TO_TEXT_NUMER" + "IC\020t\022\020\n\014TO_TEXT_TEXT\020<\022\025\n\021TO_TEXT_TIMEST" + "AMP\020=\022\020\n\014TO_TEXT_DATE\020G\022\030\n\024TO_QUOTED_TEX" + "T_PARTY\020?\022\021\n\rTO_TEXT_PARTY\020^\022\023\n\017FROM_TEX" + "T_PARTY\020_\022\023\n\017FROM_TEXT_INT64\020g\022\025\n\021FROM_T" + "EXT_DECIMAL\020h\022\025\n\021FROM_TEXT_NUMERIC\020u\022\017\n\013" + "SHA256_TEXT\020]\022\025\n\021DATE_TO_UNIX_DAYS\020H\022\025\n\021" + "UNIX_DAYS_TO_DATE\020I\022\"\n\036TIMESTAMP_TO_UNIX" + "_MICROSECONDS\020J\022\"\n\036UNIX_MICROSECONDS_TO_" + "TIMESTAMP\020K\022\024\n\020INT64_TO_DECIMAL\020L\022\024\n\020DEC" + "IMAL_TO_INT64\020M\022\024\n\020INT64_TO_NUMERIC\020v\022\024\n" + "\020NUMERIC_TO_INT64\020w\022\020\n\014IMPLODE_TEXT\020N\022\017\n" + "\013EQUAL_INT64\020O\022\021\n\rEQUAL_DECIMAL\020P\022\021\n\rEQU" + "AL_NUMERIC\020x\022\016\n\nEQUAL_TEXT\020Q\022\023\n\017EQUAL_TI" + "MESTAMP\020R\022\016\n\nEQUAL_DATE\020S\022\017\n\013EQUAL_PARTY" + "\020T\022\016\n\nEQUAL_BOOL\020U\022\025\n\021EQUAL_CONTRACT_ID\020" + "V\022\016\n\nEQUAL_LIST\020W\022\022\n\016EQUAL_TYPE_REP\020{\022\t\n" + "\005TRACE\020X\022\026\n\022COERCE_CONTRACT_ID\020f\022\031\n\025TEXT" + "_FROM_CODE_POINTS\020i\022\027\n\023TEXT_TO_CODE_POIN" + "TS\020jBE\n\034com.digitalasset.daml_lf_1_7\252\002$C" + "om.DigitalAsset.Daml_Lf_1_7.DamlLf1b\006pro" + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_daml_lf_1_Unit_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_daml_lf_1_Unit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Unit_descriptor, new java.lang.String[] { }); internal_static_daml_lf_1_PackageRef_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_daml_lf_1_PackageRef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_PackageRef_descriptor, new java.lang.String[] { "Self", "PackageIdStr", "PackageIdInternedStr", "Sum", }); internal_static_daml_lf_1_DottedName_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_daml_lf_1_DottedName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DottedName_descriptor, new java.lang.String[] { "Segments", }); internal_static_daml_lf_1_ModuleRef_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_daml_lf_1_ModuleRef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_ModuleRef_descriptor, new java.lang.String[] { "PackageRef", "ModuleNameDname", "ModuleNameInternedDname", "ModuleName", }); internal_static_daml_lf_1_TypeConName_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_daml_lf_1_TypeConName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_TypeConName_descriptor, new java.lang.String[] { "Module", "NameDname", "NameInternedDname", "Name", }); internal_static_daml_lf_1_ValName_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_daml_lf_1_ValName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_ValName_descriptor, new java.lang.String[] { "Module", "NameDname", "NameInternedDname", }); internal_static_daml_lf_1_FieldWithType_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_daml_lf_1_FieldWithType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_FieldWithType_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Type", "Field", }); internal_static_daml_lf_1_VarWithType_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_daml_lf_1_VarWithType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_VarWithType_descriptor, new java.lang.String[] { "VarStr", "VarInternedStr", "Type", "Var", }); internal_static_daml_lf_1_TypeVarWithKind_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_TypeVarWithKind_descriptor, new java.lang.String[] { "VarStr", "VarInternedStr", "Kind", "Var", }); internal_static_daml_lf_1_FieldWithExpr_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_FieldWithExpr_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Expr", "Field", }); internal_static_daml_lf_1_Binding_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_daml_lf_1_Binding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Binding_descriptor, new java.lang.String[] { "Binder", "Bound", }); internal_static_daml_lf_1_Kind_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_daml_lf_1_Kind_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Kind_descriptor, new java.lang.String[] { "Star", "Arrow", "Nat", "Sum", }); internal_static_daml_lf_1_Kind_Arrow_descriptor = internal_static_daml_lf_1_Kind_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Kind_Arrow_descriptor, new java.lang.String[] { "Params", "Result", }); internal_static_daml_lf_1_Type_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_daml_lf_1_Type_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_descriptor, new java.lang.String[] { "Var", "Con", "Prim", "Fun", "Forall", "Tuple", "Nat", "Sum", }); internal_static_daml_lf_1_Type_Var_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_Type_Var_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Var_descriptor, new java.lang.String[] { "VarStr", "VarInternedStr", "Args", "Var", }); internal_static_daml_lf_1_Type_Con_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_Type_Con_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Con_descriptor, new java.lang.String[] { "Tycon", "Args", }); internal_static_daml_lf_1_Type_Prim_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_Type_Prim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Prim_descriptor, new java.lang.String[] { "Prim", "Args", }); internal_static_daml_lf_1_Type_Fun_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_Type_Fun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Fun_descriptor, new java.lang.String[] { "Params", "Result", }); internal_static_daml_lf_1_Type_Forall_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(4); internal_static_daml_lf_1_Type_Forall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Forall_descriptor, new java.lang.String[] { "Vars", "Body", }); internal_static_daml_lf_1_Type_Tuple_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(5); internal_static_daml_lf_1_Type_Tuple_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Tuple_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_1_PrimLit_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_daml_lf_1_PrimLit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_PrimLit_descriptor, new java.lang.String[] { "Int64", "DecimalStr", "NumericInternedStr", "TextStr", "TextInternedStr", "Timestamp", "PartyStr", "PartyInternedStr", "Date", "Sum", }); internal_static_daml_lf_1_Location_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_daml_lf_1_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Location_descriptor, new java.lang.String[] { "Module", "Range", }); internal_static_daml_lf_1_Location_Range_descriptor = internal_static_daml_lf_1_Location_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_Location_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Location_Range_descriptor, new java.lang.String[] { "StartLine", "StartCol", "EndLine", "EndCol", }); internal_static_daml_lf_1_Expr_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_daml_lf_1_Expr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_descriptor, new java.lang.String[] { "Location", "VarStr", "VarInternedStr", "Val", "Builtin", "PrimCon", "PrimLit", "RecCon", "RecProj", "RecUpd", "VariantCon", "EnumCon", "TupleCon", "TupleProj", "TupleUpd", "App", "TyApp", "Abs", "TyAbs", "Case", "Let", "Nil", "Cons", "Update", "Scenario", "OptionalNone", "OptionalSome", "ToAny", "FromAny", "TypeRep", "Sum", }); internal_static_daml_lf_1_Expr_RecCon_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_RecCon_descriptor, new java.lang.String[] { "Tycon", "Fields", }); internal_static_daml_lf_1_Expr_RecProj_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_RecProj_descriptor, new java.lang.String[] { "Tycon", "FieldStr", "FieldInternedStr", "Record", "Field", }); internal_static_daml_lf_1_Expr_RecUpd_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_RecUpd_descriptor, new java.lang.String[] { "Tycon", "FieldStr", "FieldInternedStr", "Record", "Update", "Field", }); internal_static_daml_lf_1_Expr_VariantCon_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_VariantCon_descriptor, new java.lang.String[] { "Tycon", "VariantConStr", "VariantConInternedStr", "VariantArg", "VariantCon", }); internal_static_daml_lf_1_Expr_EnumCon_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(4); internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_EnumCon_descriptor, new java.lang.String[] { "Tycon", "EnumConStr", "EnumConInternedStr", "EnumCon", }); internal_static_daml_lf_1_Expr_TupleCon_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(5); internal_static_daml_lf_1_Expr_TupleCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_TupleCon_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_1_Expr_TupleProj_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(6); internal_static_daml_lf_1_Expr_TupleProj_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_TupleProj_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Tuple", "Field", }); internal_static_daml_lf_1_Expr_TupleUpd_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(7); internal_static_daml_lf_1_Expr_TupleUpd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_TupleUpd_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Tuple", "Update", "Field", }); internal_static_daml_lf_1_Expr_App_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(8); internal_static_daml_lf_1_Expr_App_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_App_descriptor, new java.lang.String[] { "Fun", "Args", }); internal_static_daml_lf_1_Expr_TyApp_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(9); internal_static_daml_lf_1_Expr_TyApp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_TyApp_descriptor, new java.lang.String[] { "Expr", "Types", }); internal_static_daml_lf_1_Expr_Abs_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(10); internal_static_daml_lf_1_Expr_Abs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_Abs_descriptor, new java.lang.String[] { "Param", "Body", }); internal_static_daml_lf_1_Expr_TyAbs_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(11); internal_static_daml_lf_1_Expr_TyAbs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_TyAbs_descriptor, new java.lang.String[] { "Param", "Body", }); internal_static_daml_lf_1_Expr_Nil_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(12); internal_static_daml_lf_1_Expr_Nil_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_Nil_descriptor, new java.lang.String[] { "Type", }); internal_static_daml_lf_1_Expr_Cons_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(13); internal_static_daml_lf_1_Expr_Cons_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_Cons_descriptor, new java.lang.String[] { "Type", "Front", "Tail", }); internal_static_daml_lf_1_Expr_OptionalNone_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(14); internal_static_daml_lf_1_Expr_OptionalNone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_OptionalNone_descriptor, new java.lang.String[] { "Type", }); internal_static_daml_lf_1_Expr_OptionalSome_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(15); internal_static_daml_lf_1_Expr_OptionalSome_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_OptionalSome_descriptor, new java.lang.String[] { "Type", "Body", }); internal_static_daml_lf_1_Expr_ToAny_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(16); internal_static_daml_lf_1_Expr_ToAny_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ToAny_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_1_Expr_FromAny_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(17); internal_static_daml_lf_1_Expr_FromAny_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_FromAny_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_1_CaseAlt_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_daml_lf_1_CaseAlt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_CaseAlt_descriptor, new java.lang.String[] { "Default", "Variant", "PrimCon", "Nil", "Cons", "OptionalNone", "OptionalSome", "Enum", "Body", "Sum", }); internal_static_daml_lf_1_CaseAlt_Variant_descriptor = internal_static_daml_lf_1_CaseAlt_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_CaseAlt_Variant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_CaseAlt_Variant_descriptor, new java.lang.String[] { "Con", "VariantStr", "VariantInternedStr", "BinderStr", "BinderInternedStr", "Variant", "Binder", }); internal_static_daml_lf_1_CaseAlt_Enum_descriptor = internal_static_daml_lf_1_CaseAlt_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_CaseAlt_Enum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_CaseAlt_Enum_descriptor, new java.lang.String[] { "Con", "ConstructorStr", "ConstructorInternedStr", "Constructor", }); internal_static_daml_lf_1_CaseAlt_Cons_descriptor = internal_static_daml_lf_1_CaseAlt_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_CaseAlt_Cons_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_CaseAlt_Cons_descriptor, new java.lang.String[] { "VarHeadStr", "VarHeadInternedStr", "VarTailStr", "VarTailInternedStr", "VarHead", "VarTail", }); internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor = internal_static_daml_lf_1_CaseAlt_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_CaseAlt_OptionalSome_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor, new java.lang.String[] { "VarBodyStr", "VarBodyInternedStr", "VarBody", }); internal_static_daml_lf_1_Case_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_daml_lf_1_Case_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Case_descriptor, new java.lang.String[] { "Scrut", "Alts", }); internal_static_daml_lf_1_Block_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_daml_lf_1_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Block_descriptor, new java.lang.String[] { "Bindings", "Body", }); internal_static_daml_lf_1_Pure_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_daml_lf_1_Pure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Pure_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_1_Update_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_daml_lf_1_Update_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_descriptor, new java.lang.String[] { "Pure", "Block", "Create", "Exercise", "Fetch", "GetTime", "LookupByKey", "FetchByKey", "EmbedExpr", "Sum", }); internal_static_daml_lf_1_Update_Create_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_Update_Create_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_Create_descriptor, new java.lang.String[] { "Template", "Expr", }); internal_static_daml_lf_1_Update_Exercise_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_Update_Exercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_Exercise_descriptor, new java.lang.String[] { "Template", "ChoiceStr", "ChoiceInternedStr", "Cid", "Actor", "Arg", "Choice", }); internal_static_daml_lf_1_Update_Fetch_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_Update_Fetch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_Fetch_descriptor, new java.lang.String[] { "Template", "Cid", }); internal_static_daml_lf_1_Update_EmbedExpr_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_Update_EmbedExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_EmbedExpr_descriptor, new java.lang.String[] { "Type", "Body", }); internal_static_daml_lf_1_Update_RetrieveByKey_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(4); internal_static_daml_lf_1_Update_RetrieveByKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_RetrieveByKey_descriptor, new java.lang.String[] { "Template", "Key", }); internal_static_daml_lf_1_Scenario_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_daml_lf_1_Scenario_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Scenario_descriptor, new java.lang.String[] { "Pure", "Block", "Commit", "MustFailAt", "Pass", "GetTime", "GetParty", "EmbedExpr", "Sum", }); internal_static_daml_lf_1_Scenario_Commit_descriptor = internal_static_daml_lf_1_Scenario_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_Scenario_Commit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Scenario_Commit_descriptor, new java.lang.String[] { "Party", "Expr", "RetType", }); internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor = internal_static_daml_lf_1_Scenario_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_Scenario_EmbedExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor, new java.lang.String[] { "Type", "Body", }); internal_static_daml_lf_1_TemplateChoice_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_daml_lf_1_TemplateChoice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_TemplateChoice_descriptor, new java.lang.String[] { "NameStr", "NameInternedStr", "Consuming", "Controllers", "ArgBinder", "RetType", "Update", "SelfBinderStr", "SelfBinderInternedStr", "Location", "Name", "SelfBinder", }); internal_static_daml_lf_1_KeyExpr_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_daml_lf_1_KeyExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_KeyExpr_descriptor, new java.lang.String[] { "Projections", "Record", "Sum", }); internal_static_daml_lf_1_KeyExpr_Projection_descriptor = internal_static_daml_lf_1_KeyExpr_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_KeyExpr_Projection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_KeyExpr_Projection_descriptor, new java.lang.String[] { "Tycon", "FieldStr", "FieldInternedStr", "Field", }); internal_static_daml_lf_1_KeyExpr_Projections_descriptor = internal_static_daml_lf_1_KeyExpr_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_KeyExpr_Projections_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_KeyExpr_Projections_descriptor, new java.lang.String[] { "Projections", }); internal_static_daml_lf_1_KeyExpr_RecordField_descriptor = internal_static_daml_lf_1_KeyExpr_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_KeyExpr_RecordField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_KeyExpr_RecordField_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Expr", "Field", }); internal_static_daml_lf_1_KeyExpr_Record_descriptor = internal_static_daml_lf_1_KeyExpr_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_KeyExpr_Record_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_KeyExpr_Record_descriptor, new java.lang.String[] { "Tycon", "Fields", }); internal_static_daml_lf_1_DefTemplate_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_daml_lf_1_DefTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefTemplate_descriptor, new java.lang.String[] { "TyconDname", "TyconInternedDname", "ParamStr", "ParamInternedStr", "Precond", "Signatories", "Agreement", "Choices", "Observers", "Location", "Key", "Tycon", "Param", }); internal_static_daml_lf_1_DefTemplate_DefKey_descriptor = internal_static_daml_lf_1_DefTemplate_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_DefTemplate_DefKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefTemplate_DefKey_descriptor, new java.lang.String[] { "Type", "Key", "ComplexKey", "Maintainers", "KeyExpr", }); internal_static_daml_lf_1_DefDataType_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_daml_lf_1_DefDataType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefDataType_descriptor, new java.lang.String[] { "NameDname", "NameInternedDname", "Params", "Record", "Variant", "Enum", "Serializable", "Location", "Name", "DataCons", }); internal_static_daml_lf_1_DefDataType_Fields_descriptor = internal_static_daml_lf_1_DefDataType_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_DefDataType_Fields_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefDataType_Fields_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor = internal_static_daml_lf_1_DefDataType_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_DefDataType_EnumConstructors_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor, new java.lang.String[] { "ConstructorsStr", "ConstructorsInternedStr", }); internal_static_daml_lf_1_DefValue_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_daml_lf_1_DefValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefValue_descriptor, new java.lang.String[] { "NameWithType", "Expr", "NoPartyLiterals", "IsTest", "Location", }); internal_static_daml_lf_1_DefValue_NameWithType_descriptor = internal_static_daml_lf_1_DefValue_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_DefValue_NameWithType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefValue_NameWithType_descriptor, new java.lang.String[] { "NameDname", "NameInternedDname", "Type", }); internal_static_daml_lf_1_FeatureFlags_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_daml_lf_1_FeatureFlags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_FeatureFlags_descriptor, new java.lang.String[] { "ForbidPartyLiterals", "DontDivulgeContractIdsInCreateArguments", "DontDiscloseNonConsumingChoicesToObservers", }); internal_static_daml_lf_1_Module_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_daml_lf_1_Module_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Module_descriptor, new java.lang.String[] { "NameDname", "NameInternedDname", "Flags", "DataTypes", "Values", "Templates", "Name", }); internal_static_daml_lf_1_InternedDottedName_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_daml_lf_1_InternedDottedName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_InternedDottedName_descriptor, new java.lang.String[] { "SegmentsInternedStr", }); internal_static_daml_lf_1_Package_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_daml_lf_1_Package_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Package_descriptor, new java.lang.String[] { "Modules", "InternedStrings", "InternedDottedNames", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy