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

com.daml.daml_lf_dev.DamlLf1 Maven / Gradle / Ivy

There is a newer version: 3.1.0-adhoc.20240624.13151.0.vbad599d6
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/daml/daml_lf_dev/daml_lf_1.proto

package com.daml.daml_lf_dev;

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'
     * 
* * OPTIONAL = 14; */ OPTIONAL(14), /** *
     * Builtin type `TArrow`
     * 
* * ARROW = 15; */ ARROW(15), /** *
     * Builtin type 'TTextMap`
     * 
* * TEXTMAP = 16; */ TEXTMAP(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), /** *
     * Builtin type 'TGenMap`
     * *Available in versions >= 1.11*
     * 
* * GENMAP = 20; */ GENMAP(20), /** *
     * Builtin type 'TBigNumeric'
     * *Available in versions >= 1.13*
     * 
* * BIGNUMERIC = 21; */ BIGNUMERIC(21), /** *
     * Builtin type 'TRoundingMode'
     * *Available in versions >= 1.13*
     * 
* * ROUNDING_MODE = 22; */ ROUNDING_MODE(22), /** *
     * Builtin type 'TAnyException'
     * *Available in versions >= 1.14*
     * 
* * ANY_EXCEPTION = 23; */ ANY_EXCEPTION(23), 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'
     * 
* * OPTIONAL = 14; */ public static final int OPTIONAL_VALUE = 14; /** *
     * Builtin type `TArrow`
     * 
* * ARROW = 15; */ public static final int ARROW_VALUE = 15; /** *
     * Builtin type 'TTextMap`
     * 
* * TEXTMAP = 16; */ public static final int TEXTMAP_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; /** *
     * Builtin type 'TGenMap`
     * *Available in versions >= 1.11*
     * 
* * GENMAP = 20; */ public static final int GENMAP_VALUE = 20; /** *
     * Builtin type 'TBigNumeric'
     * *Available in versions >= 1.13*
     * 
* * BIGNUMERIC = 21; */ public static final int BIGNUMERIC_VALUE = 21; /** *
     * Builtin type 'TRoundingMode'
     * *Available in versions >= 1.13*
     * 
* * ROUNDING_MODE = 22; */ public static final int ROUNDING_MODE_VALUE = 22; /** *
     * Builtin type 'TAnyException'
     * *Available in versions >= 1.14*
     * 
* * ANY_EXCEPTION = 23; */ public static final int ANY_EXCEPTION_VALUE = 23; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PrimType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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 TEXTMAP; case 17: return NUMERIC; case 18: return ANY; case 19: return TYPE_REP; case 20: return GENMAP; case 21: return BIGNUMERIC; case 22: return ROUNDING_MODE; case 23: return ANY_EXCEPTION; 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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.daml.daml_lf_dev.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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PrimCon valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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.daml.daml_lf_dev.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), /** * TEXTMAP_EMPTY = 96; */ TEXTMAP_EMPTY(96), /** * TEXTMAP_INSERT = 97; */ TEXTMAP_INSERT(97), /** * TEXTMAP_LOOKUP = 98; */ TEXTMAP_LOOKUP(98), /** * TEXTMAP_DELETE = 99; */ TEXTMAP_DELETE(99), /** * TEXTMAP_TO_LIST = 100; */ TEXTMAP_TO_LIST(100), /** * TEXTMAP_SIZE = 101; */ TEXTMAP_SIZE(101), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_EMPTY = 124; */ GENMAP_EMPTY(124), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_INSERT = 125; */ GENMAP_INSERT(125), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_LOOKUP = 126; */ GENMAP_LOOKUP(126), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_DELETE = 127; */ GENMAP_DELETE(127), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_KEYS = 128; */ GENMAP_KEYS(128), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_VALUES = 129; */ GENMAP_VALUES(129), /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_SIZE = 130; */ GENMAP_SIZE(130), /** * EXPLODE_TEXT = 23; */ EXPLODE_TEXT(23), /** * APPEND_TEXT = 24; */ APPEND_TEXT(24), /** * ERROR = 25; */ ERROR(25), /** *
     * *Available in versions >= 1.14*
     * 
* * ANY_EXCEPTION_MESSAGE = 147; */ ANY_EXCEPTION_MESSAGE(147), /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_INT64 = 33; */ LEQ_INT64(33), /** *
     * *Available in versions < 1.7*
     * 
* * LEQ_DECIMAL = 34; */ LEQ_DECIMAL(34), /** *
     * *Available in versions >= 1.7 and < 1.11*
     * 
* * LEQ_NUMERIC = 112; */ LEQ_NUMERIC(112), /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_TEXT = 36; */ LEQ_TEXT(36), /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_TIMESTAMP = 37; */ LEQ_TIMESTAMP(37), /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_DATE = 67; */ LEQ_DATE(67), /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * LEQ_PARTY = 89; */ LEQ_PARTY(89), /** *
     * *Available in versions < 1.11*
     * 
* * LESS_INT64 = 39; */ LESS_INT64(39), /** *
     * *Available in versions < 1.7*
     * 
* * LESS_DECIMAL = 40; */ LESS_DECIMAL(40), /** *
     * *Available in versions >= 1.7 and < 1.11*
     * 
* * LESS_NUMERIC = 113; */ LESS_NUMERIC(113), /** *
     * *Available in versions < 1.11*
     * 
* * LESS_TEXT = 42; */ LESS_TEXT(42), /** *
     * *Available in versions < 1.11*
     * 
* * LESS_TIMESTAMP = 43; */ LESS_TIMESTAMP(43), /** *
     * *Available in versions < 1.11*
     * 
* * LESS_DATE = 68; */ LESS_DATE(68), /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * LESS_PARTY = 90; */ LESS_PARTY(90), /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_INT64 = 45; */ GEQ_INT64(45), /** *
     * *Available in versions < 1.7*
     * 
* * GEQ_DECIMAL = 46; */ GEQ_DECIMAL(46), /** *
     * *Available in versions >= 1.7 and < 1.11*
     * 
* * GEQ_NUMERIC = 114; */ GEQ_NUMERIC(114), /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_TEXT = 48; */ GEQ_TEXT(48), /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_TIMESTAMP = 49; */ GEQ_TIMESTAMP(49), /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_DATE = 69; */ GEQ_DATE(69), /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * GEQ_PARTY = 91; */ GEQ_PARTY(91), /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_INT64 = 51; */ GREATER_INT64(51), /** *
     * *Available in versions < 1.7*
     * 
* * GREATER_DECIMAL = 52; */ GREATER_DECIMAL(52), /** *
     * *Available in versions >= 1.7 and < 1.11*
     * 
* * GREATER_NUMERIC = 115; */ GREATER_NUMERIC(115), /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_TEXT = 54; */ GREATER_TEXT(54), /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_TIMESTAMP = 55; */ GREATER_TIMESTAMP(55), /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_DATE = 70; */ GREATER_DATE(70), /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * GREATER_PARTY = 92; */ GREATER_PARTY(92), /** * INT64_TO_TEXT = 57; */ INT64_TO_TEXT(57), /** *
     * *Available in versions < 1.7*
     * 
* * DECIMAL_TO_TEXT = 58; */ DECIMAL_TO_TEXT(58), /** *
     * *Available in versions >= 1.7*
     * 
* * NUMERIC_TO_TEXT = 116; */ NUMERIC_TO_TEXT(116), /** * TEXT_TO_TEXT = 60; */ TEXT_TO_TEXT(60), /** * TIMESTAMP_TO_TEXT = 61; */ TIMESTAMP_TO_TEXT(61), /** * DATE_TO_TEXT = 71; */ DATE_TO_TEXT(71), /** *
     * *Available in versions <= 1.dev*
     * 
* * PARTY_TO_QUOTED_TEXT = 63; */ PARTY_TO_QUOTED_TEXT(63), /** * PARTY_TO_TEXT = 94; */ PARTY_TO_TEXT(94), /** * TEXT_TO_PARTY = 95; */ TEXT_TO_PARTY(95), /** * TEXT_TO_INT64 = 103; */ TEXT_TO_INT64(103), /** * TEXT_TO_DECIMAL = 104; */ TEXT_TO_DECIMAL(104), /** *
     * *Available in versions >= 1.7*
     * 
* * TEXT_TO_NUMERIC = 117; */ TEXT_TO_NUMERIC(117), /** *
     * *Available in versions >= 1.11*
     * 
* * CONTRACT_ID_TO_TEXT = 136; */ CONTRACT_ID_TO_TEXT(136), /** * 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), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_INT64 = 79; */ EQUAL_INT64(79), /** *
     * *Available in versions < 1.7*
     * 
* * EQUAL_DECIMAL = 80; */ EQUAL_DECIMAL(80), /** *
     * *Available in versions >= 1.7 and < 1.11*
     * 
* * EQUAL_NUMERIC = 120; */ EQUAL_NUMERIC(120), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_TEXT = 81; */ EQUAL_TEXT(81), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_TIMESTAMP = 82; */ EQUAL_TIMESTAMP(82), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_DATE = 83; */ EQUAL_DATE(83), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_PARTY = 84; */ EQUAL_PARTY(84), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_BOOL = 85; */ EQUAL_BOOL(85), /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_CONTRACT_ID = 86; */ EQUAL_CONTRACT_ID(86), /** * EQUAL_LIST = 87; */ EQUAL_LIST(87), /** *
     * *Available in versions = 1.8*
     * 
* * EQUAL_TYPE_REP = 123; */ EQUAL_TYPE_REP(123), /** *
     * *Available in versions >= 1.11*
     * 
* * EQUAL = 131; */ EQUAL(131), /** *
     * *Available in versions >= 1.11*
     * 
* * LESS_EQ = 132; */ LESS_EQ(132), /** *
     * *Available in versions >= 1.11*
     * 
* * LESS = 133; */ LESS(133), /** *
     * *Available in versions >= 1.11*
     * 
* * GREATER_EQ = 134; */ GREATER_EQ(134), /** *
     * *Available in versions >= 1.11*
     * 
* * GREATER = 135; */ GREATER(135), /** * TRACE = 88; */ TRACE(88), /** * COERCE_CONTRACT_ID = 102; */ COERCE_CONTRACT_ID(102), /** * CODE_POINTS_TO_TEXT = 105; */ CODE_POINTS_TO_TEXT(105), /** * TEXT_TO_CODE_POINTS = 106; */ TEXT_TO_CODE_POINTS(106), /** *
     * *Available in versions >= 1.13*
     * 
* * SCALE_BIGNUMERIC = 137; */ SCALE_BIGNUMERIC(137), /** *
     * *Available in versions >= 1.13*
     * 
* * PRECISION_BIGNUMERIC = 138; */ PRECISION_BIGNUMERIC(138), /** *
     * *Available in versions >= 1.13*
     * 
* * ADD_BIGNUMERIC = 139; */ ADD_BIGNUMERIC(139), /** *
     * *Available in versions >= 1.13*
     * 
* * SUB_BIGNUMERIC = 140; */ SUB_BIGNUMERIC(140), /** *
     * *Available in versions >= 1.13*
     * 
* * MUL_BIGNUMERIC = 141; */ MUL_BIGNUMERIC(141), /** *
     * *Available in versions >= 1.13*
     * 
* * DIV_BIGNUMERIC = 142; */ DIV_BIGNUMERIC(142), /** *
     * *Available in versions >= 1.13*
     * 
* * SHIFT_RIGHT_BIGNUMERIC = 143; */ SHIFT_RIGHT_BIGNUMERIC(143), /** *
     * *Available in versions >= 1.13*
     * 
* * BIGNUMERIC_TO_NUMERIC = 144; */ BIGNUMERIC_TO_NUMERIC(144), /** *
     * *Available in versions >= 1.13*
     * 
* * NUMERIC_TO_BIGNUMERIC = 145; */ NUMERIC_TO_BIGNUMERIC(145), /** *
     * *Available in versions >= 1.13*
     * 
* * BIGNUMERIC_TO_TEXT = 146; */ BIGNUMERIC_TO_TEXT(146), /** *
     * *Available in versions >= 1.dev*
     * 
* * TYPEREP_TYCON_NAME = 148; */ TYPEREP_TYCON_NAME(148), /** *
     * EXPERIMENTAL TEXT PRIMITIVES -- these do not yet have stable numbers.
     * 
* * TEXT_TO_UPPER = 9901; */ TEXT_TO_UPPER(9901), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_TO_LOWER = 9902; */ TEXT_TO_LOWER(9902), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_SLICE = 9903; */ TEXT_SLICE(9903), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_SLICE_INDEX = 9904; */ TEXT_SLICE_INDEX(9904), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_CONTAINS_ONLY = 9905; */ TEXT_CONTAINS_ONLY(9905), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_REPLICATE = 9906; */ TEXT_REPLICATE(9906), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_SPLIT_ON = 9907; */ TEXT_SPLIT_ON(9907), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_INTERCALATE = 9908; */ TEXT_INTERCALATE(9908), 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; /** * TEXTMAP_EMPTY = 96; */ public static final int TEXTMAP_EMPTY_VALUE = 96; /** * TEXTMAP_INSERT = 97; */ public static final int TEXTMAP_INSERT_VALUE = 97; /** * TEXTMAP_LOOKUP = 98; */ public static final int TEXTMAP_LOOKUP_VALUE = 98; /** * TEXTMAP_DELETE = 99; */ public static final int TEXTMAP_DELETE_VALUE = 99; /** * TEXTMAP_TO_LIST = 100; */ public static final int TEXTMAP_TO_LIST_VALUE = 100; /** * TEXTMAP_SIZE = 101; */ public static final int TEXTMAP_SIZE_VALUE = 101; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_EMPTY = 124; */ public static final int GENMAP_EMPTY_VALUE = 124; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_INSERT = 125; */ public static final int GENMAP_INSERT_VALUE = 125; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_LOOKUP = 126; */ public static final int GENMAP_LOOKUP_VALUE = 126; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_DELETE = 127; */ public static final int GENMAP_DELETE_VALUE = 127; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_KEYS = 128; */ public static final int GENMAP_KEYS_VALUE = 128; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_VALUES = 129; */ public static final int GENMAP_VALUES_VALUE = 129; /** *
     * *Available in versions >= 1.11*
     * 
* * GENMAP_SIZE = 130; */ public static final int GENMAP_SIZE_VALUE = 130; /** * 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; /** *
     * *Available in versions >= 1.14*
     * 
* * ANY_EXCEPTION_MESSAGE = 147; */ public static final int ANY_EXCEPTION_MESSAGE_VALUE = 147; /** *
     * *Available in versions < 1.11*
     * 
* * 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 and < 1.11*
     * 
* * LEQ_NUMERIC = 112; */ public static final int LEQ_NUMERIC_VALUE = 112; /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_TEXT = 36; */ public static final int LEQ_TEXT_VALUE = 36; /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_TIMESTAMP = 37; */ public static final int LEQ_TIMESTAMP_VALUE = 37; /** *
     * *Available in versions < 1.11*
     * 
* * LEQ_DATE = 67; */ public static final int LEQ_DATE_VALUE = 67; /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * LEQ_PARTY = 89; */ public static final int LEQ_PARTY_VALUE = 89; /** *
     * *Available in versions < 1.11*
     * 
* * 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 and < 1.11*
     * 
* * LESS_NUMERIC = 113; */ public static final int LESS_NUMERIC_VALUE = 113; /** *
     * *Available in versions < 1.11*
     * 
* * LESS_TEXT = 42; */ public static final int LESS_TEXT_VALUE = 42; /** *
     * *Available in versions < 1.11*
     * 
* * LESS_TIMESTAMP = 43; */ public static final int LESS_TIMESTAMP_VALUE = 43; /** *
     * *Available in versions < 1.11*
     * 
* * LESS_DATE = 68; */ public static final int LESS_DATE_VALUE = 68; /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * LESS_PARTY = 90; */ public static final int LESS_PARTY_VALUE = 90; /** *
     * *Available in versions < 1.11*
     * 
* * 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 and < 1.11*
     * 
* * GEQ_NUMERIC = 114; */ public static final int GEQ_NUMERIC_VALUE = 114; /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_TEXT = 48; */ public static final int GEQ_TEXT_VALUE = 48; /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_TIMESTAMP = 49; */ public static final int GEQ_TIMESTAMP_VALUE = 49; /** *
     * *Available in versions < 1.11*
     * 
* * GEQ_DATE = 69; */ public static final int GEQ_DATE_VALUE = 69; /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * GEQ_PARTY = 91; */ public static final int GEQ_PARTY_VALUE = 91; /** *
     * *Available in versions < 1.11*
     * 
* * 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 and < 1.11*
     * 
* * GREATER_NUMERIC = 115; */ public static final int GREATER_NUMERIC_VALUE = 115; /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_TEXT = 54; */ public static final int GREATER_TEXT_VALUE = 54; /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_TIMESTAMP = 55; */ public static final int GREATER_TIMESTAMP_VALUE = 55; /** *
     * *Available in versions < 1.11*
     * 
* * GREATER_DATE = 70; */ public static final int GREATER_DATE_VALUE = 70; /** *
     * *Available in versions >= 1.1 and < 1.11*
     * 
* * GREATER_PARTY = 92; */ public static final int GREATER_PARTY_VALUE = 92; /** * INT64_TO_TEXT = 57; */ public static final int INT64_TO_TEXT_VALUE = 57; /** *
     * *Available in versions < 1.7*
     * 
* * DECIMAL_TO_TEXT = 58; */ public static final int DECIMAL_TO_TEXT_VALUE = 58; /** *
     * *Available in versions >= 1.7*
     * 
* * NUMERIC_TO_TEXT = 116; */ public static final int NUMERIC_TO_TEXT_VALUE = 116; /** * TEXT_TO_TEXT = 60; */ public static final int TEXT_TO_TEXT_VALUE = 60; /** * TIMESTAMP_TO_TEXT = 61; */ public static final int TIMESTAMP_TO_TEXT_VALUE = 61; /** * DATE_TO_TEXT = 71; */ public static final int DATE_TO_TEXT_VALUE = 71; /** *
     * *Available in versions <= 1.dev*
     * 
* * PARTY_TO_QUOTED_TEXT = 63; */ public static final int PARTY_TO_QUOTED_TEXT_VALUE = 63; /** * PARTY_TO_TEXT = 94; */ public static final int PARTY_TO_TEXT_VALUE = 94; /** * TEXT_TO_PARTY = 95; */ public static final int TEXT_TO_PARTY_VALUE = 95; /** * TEXT_TO_INT64 = 103; */ public static final int TEXT_TO_INT64_VALUE = 103; /** * TEXT_TO_DECIMAL = 104; */ public static final int TEXT_TO_DECIMAL_VALUE = 104; /** *
     * *Available in versions >= 1.7*
     * 
* * TEXT_TO_NUMERIC = 117; */ public static final int TEXT_TO_NUMERIC_VALUE = 117; /** *
     * *Available in versions >= 1.11*
     * 
* * CONTRACT_ID_TO_TEXT = 136; */ public static final int CONTRACT_ID_TO_TEXT_VALUE = 136; /** * 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; /** *
     * *Available in versions < 1.11*
     * 
* * 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 and < 1.11*
     * 
* * EQUAL_NUMERIC = 120; */ public static final int EQUAL_NUMERIC_VALUE = 120; /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_TEXT = 81; */ public static final int EQUAL_TEXT_VALUE = 81; /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_TIMESTAMP = 82; */ public static final int EQUAL_TIMESTAMP_VALUE = 82; /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_DATE = 83; */ public static final int EQUAL_DATE_VALUE = 83; /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_PARTY = 84; */ public static final int EQUAL_PARTY_VALUE = 84; /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_BOOL = 85; */ public static final int EQUAL_BOOL_VALUE = 85; /** *
     * *Available in versions < 1.11*
     * 
* * EQUAL_CONTRACT_ID = 86; */ public static final int EQUAL_CONTRACT_ID_VALUE = 86; /** * EQUAL_LIST = 87; */ public static final int EQUAL_LIST_VALUE = 87; /** *
     * *Available in versions = 1.8*
     * 
* * EQUAL_TYPE_REP = 123; */ public static final int EQUAL_TYPE_REP_VALUE = 123; /** *
     * *Available in versions >= 1.11*
     * 
* * EQUAL = 131; */ public static final int EQUAL_VALUE = 131; /** *
     * *Available in versions >= 1.11*
     * 
* * LESS_EQ = 132; */ public static final int LESS_EQ_VALUE = 132; /** *
     * *Available in versions >= 1.11*
     * 
* * LESS = 133; */ public static final int LESS_VALUE = 133; /** *
     * *Available in versions >= 1.11*
     * 
* * GREATER_EQ = 134; */ public static final int GREATER_EQ_VALUE = 134; /** *
     * *Available in versions >= 1.11*
     * 
* * GREATER = 135; */ public static final int GREATER_VALUE = 135; /** * TRACE = 88; */ public static final int TRACE_VALUE = 88; /** * COERCE_CONTRACT_ID = 102; */ public static final int COERCE_CONTRACT_ID_VALUE = 102; /** * CODE_POINTS_TO_TEXT = 105; */ public static final int CODE_POINTS_TO_TEXT_VALUE = 105; /** * TEXT_TO_CODE_POINTS = 106; */ public static final int TEXT_TO_CODE_POINTS_VALUE = 106; /** *
     * *Available in versions >= 1.13*
     * 
* * SCALE_BIGNUMERIC = 137; */ public static final int SCALE_BIGNUMERIC_VALUE = 137; /** *
     * *Available in versions >= 1.13*
     * 
* * PRECISION_BIGNUMERIC = 138; */ public static final int PRECISION_BIGNUMERIC_VALUE = 138; /** *
     * *Available in versions >= 1.13*
     * 
* * ADD_BIGNUMERIC = 139; */ public static final int ADD_BIGNUMERIC_VALUE = 139; /** *
     * *Available in versions >= 1.13*
     * 
* * SUB_BIGNUMERIC = 140; */ public static final int SUB_BIGNUMERIC_VALUE = 140; /** *
     * *Available in versions >= 1.13*
     * 
* * MUL_BIGNUMERIC = 141; */ public static final int MUL_BIGNUMERIC_VALUE = 141; /** *
     * *Available in versions >= 1.13*
     * 
* * DIV_BIGNUMERIC = 142; */ public static final int DIV_BIGNUMERIC_VALUE = 142; /** *
     * *Available in versions >= 1.13*
     * 
* * SHIFT_RIGHT_BIGNUMERIC = 143; */ public static final int SHIFT_RIGHT_BIGNUMERIC_VALUE = 143; /** *
     * *Available in versions >= 1.13*
     * 
* * BIGNUMERIC_TO_NUMERIC = 144; */ public static final int BIGNUMERIC_TO_NUMERIC_VALUE = 144; /** *
     * *Available in versions >= 1.13*
     * 
* * NUMERIC_TO_BIGNUMERIC = 145; */ public static final int NUMERIC_TO_BIGNUMERIC_VALUE = 145; /** *
     * *Available in versions >= 1.13*
     * 
* * BIGNUMERIC_TO_TEXT = 146; */ public static final int BIGNUMERIC_TO_TEXT_VALUE = 146; /** *
     * *Available in versions >= 1.dev*
     * 
* * TYPEREP_TYCON_NAME = 148; */ public static final int TYPEREP_TYCON_NAME_VALUE = 148; /** *
     * EXPERIMENTAL TEXT PRIMITIVES -- these do not yet have stable numbers.
     * 
* * TEXT_TO_UPPER = 9901; */ public static final int TEXT_TO_UPPER_VALUE = 9901; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_TO_LOWER = 9902; */ public static final int TEXT_TO_LOWER_VALUE = 9902; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_SLICE = 9903; */ public static final int TEXT_SLICE_VALUE = 9903; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_SLICE_INDEX = 9904; */ public static final int TEXT_SLICE_INDEX_VALUE = 9904; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_CONTAINS_ONLY = 9905; */ public static final int TEXT_CONTAINS_ONLY_VALUE = 9905; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_REPLICATE = 9906; */ public static final int TEXT_REPLICATE_VALUE = 9906; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_SPLIT_ON = 9907; */ public static final int TEXT_SPLIT_ON_VALUE = 9907; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_INTERCALATE = 9908; */ public static final int TEXT_INTERCALATE_VALUE = 9908; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BuiltinFunction valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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 TEXTMAP_EMPTY; case 97: return TEXTMAP_INSERT; case 98: return TEXTMAP_LOOKUP; case 99: return TEXTMAP_DELETE; case 100: return TEXTMAP_TO_LIST; case 101: return TEXTMAP_SIZE; case 124: return GENMAP_EMPTY; case 125: return GENMAP_INSERT; case 126: return GENMAP_LOOKUP; case 127: return GENMAP_DELETE; case 128: return GENMAP_KEYS; case 129: return GENMAP_VALUES; case 130: return GENMAP_SIZE; case 23: return EXPLODE_TEXT; case 24: return APPEND_TEXT; case 25: return ERROR; case 147: return ANY_EXCEPTION_MESSAGE; 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 INT64_TO_TEXT; case 58: return DECIMAL_TO_TEXT; case 116: return NUMERIC_TO_TEXT; case 60: return TEXT_TO_TEXT; case 61: return TIMESTAMP_TO_TEXT; case 71: return DATE_TO_TEXT; case 63: return PARTY_TO_QUOTED_TEXT; case 94: return PARTY_TO_TEXT; case 95: return TEXT_TO_PARTY; case 103: return TEXT_TO_INT64; case 104: return TEXT_TO_DECIMAL; case 117: return TEXT_TO_NUMERIC; case 136: return CONTRACT_ID_TO_TEXT; 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 131: return EQUAL; case 132: return LESS_EQ; case 133: return LESS; case 134: return GREATER_EQ; case 135: return GREATER; case 88: return TRACE; case 102: return COERCE_CONTRACT_ID; case 105: return CODE_POINTS_TO_TEXT; case 106: return TEXT_TO_CODE_POINTS; case 137: return SCALE_BIGNUMERIC; case 138: return PRECISION_BIGNUMERIC; case 139: return ADD_BIGNUMERIC; case 140: return SUB_BIGNUMERIC; case 141: return MUL_BIGNUMERIC; case 142: return DIV_BIGNUMERIC; case 143: return SHIFT_RIGHT_BIGNUMERIC; case 144: return BIGNUMERIC_TO_NUMERIC; case 145: return NUMERIC_TO_BIGNUMERIC; case 146: return BIGNUMERIC_TO_TEXT; case 148: return TYPEREP_TYCON_NAME; case 9901: return TEXT_TO_UPPER; case 9902: return TEXT_TO_LOWER; case 9903: return TEXT_SLICE; case 9904: return TEXT_SLICE_INDEX; case 9905: return TEXT_CONTAINS_ONLY; case 9906: return TEXT_REPLICATE; case 9907: return TEXT_SPLIT_ON; case 9908: return TEXT_INTERCALATE; 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Unit.class, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Unit other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Unit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Unit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.UnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Unit.class, com.daml.daml_lf_dev.DamlLf1.Unit.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Unit_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit build() { com.daml.daml_lf_dev.DamlLf1.Unit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit buildPartial() { com.daml.daml_lf_dev.DamlLf1.Unit result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Unit other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Unit(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the self field is set. */ boolean hasSelf(); /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1; * @return The self. */ com.daml.daml_lf_dev.DamlLf1.Unit getSelf(); /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getSelfOrBuilder(); /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2; * @return Whether the packageIdStr field is set. */ boolean hasPackageIdStr(); /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the packageIdInternedStr field is set. */ boolean hasPackageIdInternedStr(); /** *
     * 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; * @return The packageIdInternedStr. */ int getPackageIdInternedStr(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 2; sum_ = s; break; } case 24: { sum_ = input.readInt32(); 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.PackageRef.class, com.daml.daml_lf_dev.DamlLf1.PackageRef.Builder.class); } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the self field is set. */ @java.lang.Override public boolean hasSelf() { return sumCase_ == 1; } /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1; * @return The self. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getSelf() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_1.Unit self = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getSelfOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the packageIdStr field is set. */ public boolean hasPackageIdStr() { return sumCase_ == 2; } /** *
     * A `Package identifier` for an imported Package.
     * *Must be a list of valid packageId string*
     * 
* * string package_id_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the packageIdInternedStr field is set. */ @java.lang.Override public boolean hasPackageIdInternedStr() { return sumCase_ == 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; * @return The packageIdInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.PackageRef other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.PackageRef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PackageRef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.PackageRef.class, com.daml.daml_lf_dev.DamlLf1.PackageRef.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageRef getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.PackageRef.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageRef build() { com.daml.daml_lf_dev.DamlLf1.PackageRef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageRef buildPartial() { com.daml.daml_lf_dev.DamlLf1.PackageRef result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.PackageRef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.PackageRef other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> selfBuilder_; /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1; * @return Whether the self field is set. */ @java.lang.Override public boolean hasSelf() { return sumCase_ == 1; } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1; * @return The self. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getSelf() { if (selfBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return selfBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1; */ public Builder setSelf(com.daml.daml_lf_dev.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; */ public Builder setSelf( com.daml.daml_lf_dev.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; */ public Builder mergeSelf(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (selfBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getSelfBuilder() { return getSelfFieldBuilder().getBuilder(); } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getSelfOrBuilder() { if ((sumCase_ == 1) && (selfBuilder_ != null)) { return selfBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_1.Unit self = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getSelfFieldBuilder() { if (selfBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.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; * @return Whether the packageIdStr field is set. */ @java.lang.Override public boolean hasPackageIdStr() { return sumCase_ == 2; } /** *
       * A `Package identifier` for an imported Package.
       * *Must be a list of valid packageId string*
       * 
* * string package_id_str = 2; * @return The packageIdStr. */ @java.lang.Override 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; * @return The bytes for packageIdStr. */ @java.lang.Override 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; * @param value The packageIdStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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; * @param value The bytes for packageIdStr to set. * @return This builder for chaining. */ 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; * @return Whether the packageIdInternedStr field is set. */ public boolean hasPackageIdInternedStr() { return sumCase_ == 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; * @return The 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; * @param value The packageIdInternedStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.PackageRef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.PackageRef(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return A list containing the segments. */ java.util.List getSegmentsList(); /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1; * @return The count of segments. */ int getSegmentsCount(); /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1; * @param index The index of the element to return. * @return The segments at the given index. */ java.lang.String getSegments(int index); /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1; * @param index The index of the value to return. * @return The bytes of the segments at the given index. */ 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DottedName.class, com.daml.daml_lf_dev.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; * @return A list containing the segments. */ public com.google.protobuf.ProtocolStringList getSegmentsList() { return segments_; } /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1; * @return The count of segments. */ public int getSegmentsCount() { return segments_.size(); } /** *
     * *Must be a non-empty list of a valid identifiers*
     * 
* * repeated string segments = 1; * @param index The index of the element to return. * @return The segments at the given index. */ 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; * @param index The index of the value to return. * @return The bytes of the segments at the given index. */ 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.daml.daml_lf_dev.DamlLf1.DottedName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DottedName other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DottedName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DottedName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DottedName.class, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName build() { com.daml.daml_lf_dev.DamlLf1.DottedName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName buildPartial() { com.daml.daml_lf_dev.DamlLf1.DottedName result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DottedName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DottedName other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return A list containing the segments. */ public com.google.protobuf.ProtocolStringList getSegmentsList() { return segments_.getUnmodifiableView(); } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1; * @return The count of segments. */ public int getSegmentsCount() { return segments_.size(); } /** *
       * *Must be a non-empty list of a valid identifiers*
       * 
* * repeated string segments = 1; * @param index The index of the element to return. * @return The segments at the given index. */ 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; * @param index The index of the value to return. * @return The bytes of the segments at the given index. */ 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; * @param index The index to set the value at. * @param value The segments to set. * @return This builder for chaining. */ 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; * @param value The segments to add. * @return This builder for chaining. */ 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; * @param values The segments to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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; * @param value The bytes of the segments to add. * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.DottedName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DottedName(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the packageRef field is set. */ boolean hasPackageRef(); /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1; * @return The packageRef. */ com.daml.daml_lf_dev.DamlLf1.PackageRef getPackageRef(); /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1; */ com.daml.daml_lf_dev.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder(); /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2; * @return Whether the moduleNameDname field is set. */ boolean hasModuleNameDname(); /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2; * @return The moduleNameDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getModuleNameDname(); /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder(); /** *
     * *Available in version >= 1.7*
     * 
* * int32 module_name_interned_dname = 3; * @return Whether the moduleNameInternedDname field is set. */ boolean hasModuleNameInternedDname(); /** *
     * *Available in version >= 1.7*
     * 
* * int32 module_name_interned_dname = 3; * @return The moduleNameInternedDname. */ int getModuleNameInternedDname(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef.Builder subBuilder = null; if (packageRef_ != null) { subBuilder = packageRef_.toBuilder(); } packageRef_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.PackageRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(packageRef_); packageRef_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (moduleNameCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_).toBuilder(); } moduleName_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_); moduleName_ = subBuilder.buildPartial(); } moduleNameCase_ = 2; break; } case 24: { moduleName_ = input.readInt32(); moduleNameCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ModuleRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.ModuleRef.class, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder.class); } private int moduleNameCase_ = 0; private java.lang.Object moduleName_; public enum ModuleNameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MODULE_NAME_DNAME(2), MODULE_NAME_INTERNED_DNAME(3), MODULENAME_NOT_SET(0); private final int value; private ModuleNameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.PackageRef packageRef_; /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1; * @return Whether the packageRef field is set. */ @java.lang.Override public boolean hasPackageRef() { return packageRef_ != null; } /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1; * @return The packageRef. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageRef getPackageRef() { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } /** *
     * package where the module is defined.
     * 
* * .daml_lf_1.PackageRef package_ref = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; * @return Whether the moduleNameDname field is set. */ @java.lang.Override public boolean hasModuleNameDname() { return moduleNameCase_ == 2; } /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2; * @return The moduleNameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getModuleNameDname() { if (moduleNameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** *
     * module name
     * 
* * .daml_lf_1.DottedName module_name_dname = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder() { if (moduleNameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_; } return com.daml.daml_lf_dev.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; * @return Whether the moduleNameInternedDname field is set. */ @java.lang.Override public boolean hasModuleNameInternedDname() { return moduleNameCase_ == 3; } /** *
     * *Available in version >= 1.7*
     * 
* * int32 module_name_interned_dname = 3; * @return The moduleNameInternedDname. */ @java.lang.Override 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.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.ModuleRef other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.ModuleRef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.ModuleRef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ModuleRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.ModuleRef.class, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef build() { com.daml.daml_lf_dev.DamlLf1.ModuleRef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef buildPartial() { com.daml.daml_lf_dev.DamlLf1.ModuleRef result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.ModuleRef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.ModuleRef other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageRef packageRef_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PackageRef, com.daml.daml_lf_dev.DamlLf1.PackageRef.Builder, com.daml.daml_lf_dev.DamlLf1.PackageRefOrBuilder> packageRefBuilder_; /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1; * @return Whether the packageRef field is set. */ public boolean hasPackageRef() { return packageRefBuilder_ != null || packageRef_ != null; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1; * @return The packageRef. */ public com.daml.daml_lf_dev.DamlLf1.PackageRef getPackageRef() { if (packageRefBuilder_ == null) { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } else { return packageRefBuilder_.getMessage(); } } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1; */ public Builder setPackageRef(com.daml.daml_lf_dev.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; */ public Builder setPackageRef( com.daml.daml_lf_dev.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; */ public Builder mergePackageRef(com.daml.daml_lf_dev.DamlLf1.PackageRef value) { if (packageRefBuilder_ == null) { if (packageRef_ != null) { packageRef_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.PackageRef.Builder getPackageRefBuilder() { onChanged(); return getPackageRefFieldBuilder().getBuilder(); } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1; */ public com.daml.daml_lf_dev.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder() { if (packageRefBuilder_ != null) { return packageRefBuilder_.getMessageOrBuilder(); } else { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PackageRef, com.daml.daml_lf_dev.DamlLf1.PackageRef.Builder, com.daml.daml_lf_dev.DamlLf1.PackageRefOrBuilder> getPackageRefFieldBuilder() { if (packageRefBuilder_ == null) { packageRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PackageRef, com.daml.daml_lf_dev.DamlLf1.PackageRef.Builder, com.daml.daml_lf_dev.DamlLf1.PackageRefOrBuilder>( getPackageRef(), getParentForChildren(), isClean()); packageRef_ = null; } return packageRefBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> moduleNameDnameBuilder_; /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2; * @return Whether the moduleNameDname field is set. */ @java.lang.Override public boolean hasModuleNameDname() { return moduleNameCase_ == 2; } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2; * @return The moduleNameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getModuleNameDname() { if (moduleNameDnameBuilder_ == null) { if (moduleNameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (moduleNameCase_ == 2) { return moduleNameDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2; */ public Builder setModuleNameDname(com.daml.daml_lf_dev.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; */ public Builder setModuleNameDname( com.daml.daml_lf_dev.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; */ public Builder mergeModuleNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (moduleNameDnameBuilder_ == null) { if (moduleNameCase_ == 2 && moduleName_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { moduleName_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getModuleNameDnameBuilder() { return getModuleNameDnameFieldBuilder().getBuilder(); } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder() { if ((moduleNameCase_ == 2) && (moduleNameDnameBuilder_ != null)) { return moduleNameDnameBuilder_.getMessageOrBuilder(); } else { if (moduleNameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * module name
       * 
* * .daml_lf_1.DottedName module_name_dname = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getModuleNameDnameFieldBuilder() { if (moduleNameDnameBuilder_ == null) { if (!(moduleNameCase_ == 2)) { moduleName_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } moduleNameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) moduleName_, getParentForChildren(), isClean()); moduleName_ = null; } moduleNameCase_ = 2; onChanged();; return moduleNameDnameBuilder_; } /** *
       * *Available in version >= 1.7*
       * 
* * int32 module_name_interned_dname = 3; * @return Whether the moduleNameInternedDname field is set. */ public boolean hasModuleNameInternedDname() { return moduleNameCase_ == 3; } /** *
       * *Available in version >= 1.7*
       * 
* * int32 module_name_interned_dname = 3; * @return The 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; * @param value The moduleNameInternedDname to set. * @return This builder for chaining. */ public Builder setModuleNameInternedDname(int value) { moduleNameCase_ = 3; moduleName_ = value; onChanged(); return this; } /** *
       * *Available in version >= 1.7*
       * 
* * int32 module_name_interned_dname = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.ModuleRef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.ModuleRef(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return Whether the nameDname field is set. */ boolean hasNameDname(); /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return The nameDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname(); /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return Whether the nameInternedDname field is set. */ boolean hasNameInternedDname(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return The nameInternedDname. */ int getNameInternedDname(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.ModuleRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(module_); module_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DottedName) name_); name_ = subBuilder.buildPartial(); } nameCase_ = 2; break; } case 24: { name_ = input.readInt32(); nameCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeConName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TypeConName.class, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME_DNAME(2), NAME_INTERNED_DNAME(3), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.ModuleRef module_; /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ @java.lang.Override public boolean hasModule() { return module_ != null; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { return getModule(); } public static final int NAME_DNAME_FIELD_NUMBER = 2; /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 2; } /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** *
     * type constructor name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return Whether the nameInternedDname field is set. */ @java.lang.Override public boolean hasNameInternedDname() { return nameCase_ == 3; } /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return The nameInternedDname. */ @java.lang.Override 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.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.TypeConName other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.TypeConName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeConName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeConName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TypeConName.class, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName build() { com.daml.daml_lf_dev.DamlLf1.TypeConName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName buildPartial() { com.daml.daml_lf_dev.DamlLf1.TypeConName result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.TypeConName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.TypeConName other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.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; */ public Builder setModule( com.daml.daml_lf_dev.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; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 2; } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 2) { return nameDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ public Builder setNameDname(com.daml.daml_lf_dev.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; */ public Builder setNameDname( com.daml.daml_lf_dev.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; */ public Builder mergeNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 2 && name_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 2) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * type constructor name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 2)) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 2; onChanged();; return nameDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return Whether the nameInternedDname field is set. */ public boolean hasNameInternedDname() { return nameCase_ == 3; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return The 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; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameCase_ = 3; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.TypeConName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.TypeConName(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeSynNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.TypeSynName) com.google.protobuf.MessageOrBuilder { /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * type synonym name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return Whether the nameDname field is set. */ boolean hasNameDname(); /** *
     * type synonym name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return The nameDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname(); /** *
     * type synonym name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return Whether the nameInternedDname field is set. */ boolean hasNameInternedDname(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return The nameInternedDname. */ int getNameInternedDname(); public com.daml.daml_lf_dev.DamlLf1.TypeSynName.NameCase getNameCase(); } /** *
   * A fully qualified reference to a type synonym name.
   * *Available in versions >= 1.8*
   * 
* * Protobuf type {@code daml_lf_1.TypeSynName} */ public static final class TypeSynName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.TypeSynName) TypeSynNameOrBuilder { private static final long serialVersionUID = 0L; // Use TypeSynName.newBuilder() to construct. private TypeSynName(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TypeSynName() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TypeSynName(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TypeSynName( 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.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.ModuleRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(module_); module_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DottedName) name_); name_ = subBuilder.buildPartial(); } nameCase_ = 2; break; } case 24: { name_ = input.readInt32(); nameCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeSynName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeSynName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TypeSynName.class, com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME_DNAME(2), NAME_INTERNED_DNAME(3), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.ModuleRef module_; /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ @java.lang.Override public boolean hasModule() { return module_ != null; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_1.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { return getModule(); } public static final int NAME_DNAME_FIELD_NUMBER = 2; /** *
     * type synonym name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 2; } /** *
     * type synonym name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** *
     * type synonym name.
     * 
* * .daml_lf_1.DottedName name_dname = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return Whether the nameInternedDname field is set. */ @java.lang.Override public boolean hasNameInternedDname() { return nameCase_ == 3; } /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return The nameInternedDname. */ @java.lang.Override 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.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeSynName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.TypeSynName other = (com.daml.daml_lf_dev.DamlLf1.TypeSynName) 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.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.TypeSynName 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 synonym name.
     * *Available in versions >= 1.8*
     * 
* * Protobuf type {@code daml_lf_1.TypeSynName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.TypeSynName) com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeSynName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeSynName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TypeSynName.class, com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.TypeSynName.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeSynName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeSynName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.TypeSynName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeSynName build() { com.daml.daml_lf_dev.DamlLf1.TypeSynName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeSynName buildPartial() { com.daml.daml_lf_dev.DamlLf1.TypeSynName result = new com.daml.daml_lf_dev.DamlLf1.TypeSynName(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.daml.daml_lf_dev.DamlLf1.TypeSynName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.TypeSynName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.TypeSynName other) { if (other == com.daml.daml_lf_dev.DamlLf1.TypeSynName.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.daml.daml_lf_dev.DamlLf1.TypeSynName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.TypeSynName) 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.daml.daml_lf_dev.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.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; */ public Builder setModule( com.daml.daml_lf_dev.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; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 2; } /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 2) { return nameDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ public Builder setNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameDnameBuilder_.setMessage(value); } nameCase_ = 2; return this; } /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ public Builder setNameDname( com.daml.daml_lf_dev.DamlLf1.DottedName.Builder builderForValue) { if (nameDnameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameDnameBuilder_.setMessage(builderForValue.build()); } nameCase_ = 2; return this; } /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ public Builder mergeNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 2 && name_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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 synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ 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 synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 2) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** *
       * type synonym name.
       * 
* * .daml_lf_1.DottedName name_dname = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 2)) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 2; onChanged();; return nameDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return Whether the nameInternedDname field is set. */ public boolean hasNameInternedDname() { return nameCase_ == 3; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return The 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; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameCase_ = 3; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return This builder for chaining. */ 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.TypeSynName) } // @@protoc_insertion_point(class_scope:daml_lf_1.TypeSynName) private static final com.daml.daml_lf_dev.DamlLf1.TypeSynName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.TypeSynName(); } public static com.daml.daml_lf_dev.DamlLf1.TypeSynName getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TypeSynName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TypeSynName(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.daml.daml_lf_dev.DamlLf1.TypeSynName 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; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule(); /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2; * @return A list containing the nameDname. */ java.util.List getNameDnameList(); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2; * @return The count of nameDname. */ int getNameDnameCount(); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2; * @param index The index of the element to return. * @return The nameDname at the given index. */ java.lang.String getNameDname(int index); /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2; * @param index The index of the value to return. * @return The bytes of the nameDname at the given index. */ com.google.protobuf.ByteString getNameDnameBytes(int index); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 3; * @return The 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.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ValName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ValName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.ValName.class, com.daml.daml_lf_dev.DamlLf1.ValName.Builder.class); } public static final int MODULE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.ModuleRef module_; /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ @java.lang.Override public boolean hasModule() { return module_ != null; } /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the value is defined
     * 
* * .daml_lf_1.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; * @return A list containing the nameDname. */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_; } /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2; * @return The count of nameDname. */ public int getNameDnameCount() { return nameDname_.size(); } /** *
     * *Must be a non-empty list of valid identifier*
     * 
* * repeated string name_dname = 2; * @param index The index of the element to return. * @return The nameDname at the given index. */ 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; * @param index The index of the value to return. * @return The bytes of the nameDname at the given index. */ 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; * @return The nameInternedDname. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.ValName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.ValName other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.ValName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.ValName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ValName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ValName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.ValName.class, com.daml.daml_lf_dev.DamlLf1.ValName.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_ValName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValName build() { com.daml.daml_lf_dev.DamlLf1.ValName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValName buildPartial() { com.daml.daml_lf_dev.DamlLf1.ValName result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.ValName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.ValName other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.ValName) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.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; */ public Builder setModule( com.daml.daml_lf_dev.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; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.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; * @return A list containing the nameDname. */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_.getUnmodifiableView(); } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2; * @return The count of nameDname. */ public int getNameDnameCount() { return nameDname_.size(); } /** *
       * *Must be a non-empty list of valid identifier*
       * 
* * repeated string name_dname = 2; * @param index The index of the element to return. * @return The nameDname at the given index. */ 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; * @param index The index of the value to return. * @return The bytes of the nameDname at the given index. */ 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; * @param index The index to set the value at. * @param value The nameDname to set. * @return This builder for chaining. */ 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; * @param value The nameDname to add. * @return This builder for chaining. */ 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; * @param values The nameDname to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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; * @param value The bytes of the nameDname to add. * @return This builder for chaining. */ 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; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.ValName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.ValName(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 24: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.FieldWithType.class, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
     * Type associated
     * 
* * .daml_lf_1.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.FieldWithType other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.FieldWithType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.FieldWithType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.FieldWithType.class, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.FieldWithType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithType build() { com.daml.daml_lf_dev.DamlLf1.FieldWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithType buildPartial() { com.daml.daml_lf_dev.DamlLf1.FieldWithType result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.FieldWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.FieldWithType other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.FieldWithType(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the varStr field is set. */ boolean hasVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The varStr. */ java.lang.String getVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The bytes for varStr. */ com.google.protobuf.ByteString getVarStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return Whether the varInternedStr field is set. */ boolean hasVarInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ int getVarInternedStr(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 24: { var_ = input.readInt32(); varCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_VarWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.VarWithType.class, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder.class); } private int varCase_ = 0; private java.lang.Object var_; public enum VarCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR_STR(1), VAR_INTERNED_STR(3), VAR_NOT_SET(0); private final int value; private VarCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the varStr field is set. */ public boolean hasVarStr() { return varCase_ == 1; } /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the varInternedStr field is set. */ @java.lang.Override public boolean hasVarInternedStr() { return varCase_ == 3; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } public static final int TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
     * Type of the bound variable
     * 
* * .daml_lf_1.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.VarWithType other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.VarWithType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.VarWithType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_VarWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.VarWithType.class, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithType build() { com.daml.daml_lf_dev.DamlLf1.VarWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithType buildPartial() { com.daml.daml_lf_dev.DamlLf1.VarWithType result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.VarWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.VarWithType other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the varStr field is set. */ @java.lang.Override public boolean hasVarStr() { return varCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return The varStr. */ @java.lang.Override 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; * @return The bytes for varStr. */ @java.lang.Override 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; * @param value The varStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarStr() { if (varCase_ == 1) { varCase_ = 0; var_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @param value The bytes for varStr to set. * @return This builder for chaining. */ 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; * @return Whether the varInternedStr field is set. */ public boolean hasVarInternedStr() { return varCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The 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; * @param value The varInternedStr to set. * @return This builder for chaining. */ public Builder setVarInternedStr(int value) { varCase_ = 3; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarInternedStr() { if (varCase_ == 3) { varCase_ = 0; var_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.VarWithType(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the varStr field is set. */ boolean hasVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The varStr. */ java.lang.String getVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The bytes for varStr. */ com.google.protobuf.ByteString getVarStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return Whether the varInternedStr field is set. */ boolean hasVarInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ int getVarInternedStr(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2; * @return Whether the kind field is set. */ boolean hasKind(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2; * @return The kind. */ com.daml.daml_lf_dev.DamlLf1.Kind getKind(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2; */ com.daml.daml_lf_dev.DamlLf1.KindOrBuilder getKindOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Builder subBuilder = null; if (kind_ != null) { subBuilder = kind_.toBuilder(); } kind_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Kind.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(kind_); kind_ = subBuilder.buildPartial(); } break; } case 24: { var_ = input.readInt32(); varCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.class, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder.class); } private int varCase_ = 0; private java.lang.Object var_; public enum VarCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR_STR(1), VAR_INTERNED_STR(3), VAR_NOT_SET(0); private final int value; private VarCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the varStr field is set. */ public boolean hasVarStr() { return varCase_ == 1; } /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the varInternedStr field is set. */ @java.lang.Override public boolean hasVarInternedStr() { return varCase_ == 3; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { if (varCase_ == 3) { return (java.lang.Integer) var_; } return 0; } public static final int KIND_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Kind kind_; /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2; * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return kind_ != null; } /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2; * @return The kind. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind getKind() { return kind_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : kind_; } /** *
     * Kind of the bound variable
     * 
* * .daml_lf_1.Kind kind = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.class, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind build() { com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind buildPartial() { com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the varStr field is set. */ @java.lang.Override public boolean hasVarStr() { return varCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return The varStr. */ @java.lang.Override 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; * @return The bytes for varStr. */ @java.lang.Override 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; * @param value The varStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarStr() { if (varCase_ == 1) { varCase_ = 0; var_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @param value The bytes for varStr to set. * @return This builder for chaining. */ 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; * @return Whether the varInternedStr field is set. */ public boolean hasVarInternedStr() { return varCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The 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; * @param value The varInternedStr to set. * @return This builder for chaining. */ public Builder setVarInternedStr(int value) { varCase_ = 3; var_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarInternedStr() { if (varCase_ == 3) { varCase_ = 0; var_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Kind kind_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder> kindBuilder_; /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; * @return Whether the kind field is set. */ public boolean hasKind() { return kindBuilder_ != null || kind_ != null; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; * @return The kind. */ public com.daml.daml_lf_dev.DamlLf1.Kind getKind() { if (kindBuilder_ == null) { return kind_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : kind_; } else { return kindBuilder_.getMessage(); } } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; */ public Builder setKind(com.daml.daml_lf_dev.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; */ public Builder setKind( com.daml.daml_lf_dev.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; */ public Builder mergeKind(com.daml.daml_lf_dev.DamlLf1.Kind value) { if (kindBuilder_ == null) { if (kind_ != null) { kind_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Builder getKindBuilder() { onChanged(); return getKindFieldBuilder().getBuilder(); } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; */ public com.daml.daml_lf_dev.DamlLf1.KindOrBuilder getKindOrBuilder() { if (kindBuilder_ != null) { return kindBuilder_.getMessageOrBuilder(); } else { return kind_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : kind_; } } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder> getKindFieldBuilder() { if (kindBuilder_ == null) { kindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 24: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.class, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
     * *Must be a valid identifier*
     * 
* * string field_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
     * Value of the field
     * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.FieldWithExpr other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.class, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr build() { com.daml.daml_lf_dev.DamlLf1.FieldWithExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr buildPartial() { com.daml.daml_lf_dev.DamlLf1.FieldWithExpr result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.FieldWithExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.FieldWithExpr other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The 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; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.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; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.FieldWithExpr(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the binder field is set. */ boolean hasBinder(); /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1; * @return The binder. */ com.daml.daml_lf_dev.DamlLf1.VarWithType getBinder(); /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1; */ com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2; * @return Whether the bound field is set. */ boolean hasBound(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2; * @return The bound. */ com.daml.daml_lf_dev.DamlLf1.Expr getBound(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType.Builder subBuilder = null; if (binder_ != null) { subBuilder = binder_.toBuilder(); } binder_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.VarWithType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(binder_); binder_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (bound_ != null) { subBuilder = bound_.toBuilder(); } bound_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Binding.class, com.daml.daml_lf_dev.DamlLf1.Binding.Builder.class); } public static final int BINDER_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.VarWithType binder_; /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1; * @return Whether the binder field is set. */ @java.lang.Override public boolean hasBinder() { return binder_ != null; } /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1; * @return The binder. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithType getBinder() { return binder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : binder_; } /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_1.VarWithType binder = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder() { return getBinder(); } public static final int BOUND_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr bound_; /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2; * @return Whether the bound field is set. */ @java.lang.Override public boolean hasBound() { return bound_ != null; } /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2; * @return The bound. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBound() { return bound_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : bound_; } /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_1.Expr bound = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Binding other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Binding parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Binding parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.BindingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Binding.class, com.daml.daml_lf_dev.DamlLf1.Binding.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Binding_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Binding getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Binding.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Binding build() { com.daml.daml_lf_dev.DamlLf1.Binding result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Binding buildPartial() { com.daml.daml_lf_dev.DamlLf1.Binding result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Binding)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Binding other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Binding) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.VarWithType binder_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder> binderBuilder_; /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; * @return Whether the binder field is set. */ public boolean hasBinder() { return binderBuilder_ != null || binder_ != null; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; * @return The binder. */ public com.daml.daml_lf_dev.DamlLf1.VarWithType getBinder() { if (binderBuilder_ == null) { return binder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : binder_; } else { return binderBuilder_.getMessage(); } } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; */ public Builder setBinder(com.daml.daml_lf_dev.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; */ public Builder setBinder( com.daml.daml_lf_dev.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; */ public Builder mergeBinder(com.daml.daml_lf_dev.DamlLf1.VarWithType value) { if (binderBuilder_ == null) { if (binder_ != null) { binder_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder getBinderBuilder() { onChanged(); return getBinderFieldBuilder().getBuilder(); } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; */ public com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder() { if (binderBuilder_ != null) { return binderBuilder_.getMessageOrBuilder(); } else { return binder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : binder_; } } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder> getBinderFieldBuilder() { if (binderBuilder_ == null) { binderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder>( getBinder(), getParentForChildren(), isClean()); binder_ = null; } return binderBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr bound_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> boundBuilder_; /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2; * @return Whether the bound field is set. */ public boolean hasBound() { return boundBuilder_ != null || bound_ != null; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2; * @return The bound. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBound() { if (boundBuilder_ == null) { return bound_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : bound_; } else { return boundBuilder_.getMessage(); } } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2; */ public Builder setBound(com.daml.daml_lf_dev.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; */ public Builder setBound( com.daml.daml_lf_dev.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; */ public Builder mergeBound(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (boundBuilder_ == null) { if (bound_ != null) { bound_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBoundBuilder() { onChanged(); return getBoundFieldBuilder().getBuilder(); } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBoundOrBuilder() { if (boundBuilder_ != null) { return boundBuilder_.getMessageOrBuilder(); } else { return bound_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : bound_; } } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBoundFieldBuilder() { if (boundBuilder_ == null) { boundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Binding(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the star field is set. */ boolean hasStar(); /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1; * @return The star. */ com.daml.daml_lf_dev.DamlLf1.Unit getStar(); /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getStarOrBuilder(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2; * @return Whether the arrow field is set. */ boolean hasArrow(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2; * @return The arrow. */ com.daml.daml_lf_dev.DamlLf1.Kind.Arrow getArrow(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2; */ com.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder(); /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3; * @return Whether the nat field is set. */ boolean hasNat(); /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3; * @return The nat. */ com.daml.daml_lf_dev.DamlLf1.Unit getNat(); /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getNatOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Kind.class, com.daml.daml_lf_dev.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; */ java.util.List getParamsList(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ com.daml.daml_lf_dev.DamlLf1.Kind getParams(int index); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ int getParamsCount(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ java.util.List getParamsOrBuilderList(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ com.daml.daml_lf_dev.DamlLf1.KindOrBuilder getParamsOrBuilder( int index); /** * .daml_lf_1.Kind result = 2; * @return Whether the result field is set. */ boolean hasResult(); /** * .daml_lf_1.Kind result = 2; * @return The result. */ com.daml.daml_lf_dev.DamlLf1.Kind getResult(); /** * .daml_lf_1.Kind result = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.parser(), extensionRegistry)); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Kind.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind getParams(int index) { return params_.get(index); } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Kind params = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int RESULT_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Kind result_; /** * .daml_lf_1.Kind result = 2; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * .daml_lf_1.Kind result = 2; * @return The result. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind getResult() { return result_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : result_; } /** * .daml_lf_1.Kind result = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Kind.Arrow other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.class, com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.Arrow getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.Arrow build() { com.daml.daml_lf_dev.DamlLf1.Kind.Arrow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.Arrow buildPartial() { com.daml.daml_lf_dev.DamlLf1.Kind.Arrow result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Kind.Arrow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Kind.Arrow other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder> paramsBuilder_; /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setParams( int index, com.daml.daml_lf_dev.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; */ public Builder setParams( int index, com.daml.daml_lf_dev.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; */ public Builder addParams(com.daml.daml_lf_dev.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; */ public Builder addParams( int index, com.daml.daml_lf_dev.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; */ public Builder addParams( com.daml.daml_lf_dev.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; */ public Builder addParams( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance()); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance()); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Kind params = 1; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Kind result_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder> resultBuilder_; /** * .daml_lf_1.Kind result = 2; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .daml_lf_1.Kind result = 2; * @return The result. */ public com.daml.daml_lf_dev.DamlLf1.Kind getResult() { if (resultBuilder_ == null) { return result_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .daml_lf_1.Kind result = 2; */ public Builder setResult(com.daml.daml_lf_dev.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; */ public Builder setResult( com.daml.daml_lf_dev.DamlLf1.Kind.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Kind result = 2; */ public Builder mergeResult(com.daml.daml_lf_dev.DamlLf1.Kind value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = com.daml.daml_lf_dev.DamlLf1.Kind.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Kind result = 2; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .daml_lf_1.Kind result = 2; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .daml_lf_1.Kind result = 2; */ public com.daml.daml_lf_dev.DamlLf1.KindOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : result_; } } /** * .daml_lf_1.Kind result = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.DamlLf1.KindOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind, com.daml.daml_lf_dev.DamlLf1.Kind.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind.Arrow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Kind.Arrow(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STAR(1), ARROW(2), NAT(3), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the star field is set. */ @java.lang.Override public boolean hasStar() { return sumCase_ == 1; } /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1; * @return The star. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getStar() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_1.Unit star = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getStarOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } public static final int ARROW_FIELD_NUMBER = 2; /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2; * @return Whether the arrow field is set. */ @java.lang.Override public boolean hasArrow() { return sumCase_ == 2; } /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2; * @return The arrow. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.Arrow getArrow() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance(); } /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_1.Kind.Arrow arrow = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the nat field is set. */ @java.lang.Override public boolean hasNat() { return sumCase_ == 3; } /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3; * @return The nat. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getNat() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** *
     * kind of TNat type;
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Unit nat = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getNatOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Kind other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Kind parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Kind parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KindOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Kind.class, com.daml.daml_lf_dev.DamlLf1.Kind.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Kind_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind build() { com.daml.daml_lf_dev.DamlLf1.Kind result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind buildPartial() { com.daml.daml_lf_dev.DamlLf1.Kind result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Kind)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Kind other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> starBuilder_; /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1; * @return Whether the star field is set. */ @java.lang.Override public boolean hasStar() { return sumCase_ == 1; } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1; * @return The star. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getStar() { if (starBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return starBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1; */ public Builder setStar(com.daml.daml_lf_dev.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; */ public Builder setStar( com.daml.daml_lf_dev.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; */ public Builder mergeStar(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (starBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getStarBuilder() { return getStarFieldBuilder().getBuilder(); } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getStarOrBuilder() { if ((sumCase_ == 1) && (starBuilder_ != null)) { return starBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_1.Unit star = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getStarFieldBuilder() { if (starBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } starBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return starBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind.Arrow, com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.Builder, com.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder> arrowBuilder_; /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2; * @return Whether the arrow field is set. */ @java.lang.Override public boolean hasArrow() { return sumCase_ == 2; } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2; * @return The arrow. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.Arrow getArrow() { if (arrowBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance(); } else { if (sumCase_ == 2) { return arrowBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance(); } } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2; */ public Builder setArrow(com.daml.daml_lf_dev.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; */ public Builder setArrow( com.daml.daml_lf_dev.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; */ public Builder mergeArrow(com.daml.daml_lf_dev.DamlLf1.Kind.Arrow value) { if (arrowBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.Builder getArrowBuilder() { return getArrowFieldBuilder().getBuilder(); } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder() { if ((sumCase_ == 2) && (arrowBuilder_ != null)) { return arrowBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance(); } } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_1.Kind.Arrow arrow = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind.Arrow, com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.Builder, com.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder> getArrowFieldBuilder() { if (arrowBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.getDefaultInstance(); } arrowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Kind.Arrow, com.daml.daml_lf_dev.DamlLf1.Kind.Arrow.Builder, com.daml.daml_lf_dev.DamlLf1.Kind.ArrowOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Kind.Arrow) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return arrowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> natBuilder_; /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3; * @return Whether the nat field is set. */ @java.lang.Override public boolean hasNat() { return sumCase_ == 3; } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3; * @return The nat. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getNat() { if (natBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 3) { return natBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3; */ public Builder setNat(com.daml.daml_lf_dev.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; */ public Builder setNat( com.daml.daml_lf_dev.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; */ public Builder mergeNat(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (natBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getNatBuilder() { return getNatFieldBuilder().getBuilder(); } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getNatOrBuilder() { if ((sumCase_ == 3) && (natBuilder_ != null)) { return natBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * kind of TNat type;
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Unit nat = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getNatFieldBuilder() { if (natBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } natBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Kind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Kind(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the var field is set. */ boolean hasVar(); /** * .daml_lf_1.Type.Var var = 1; * @return The var. */ com.daml.daml_lf_dev.DamlLf1.Type.Var getVar(); /** * .daml_lf_1.Type.Var var = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder getVarOrBuilder(); /** * .daml_lf_1.Type.Con con = 2; * @return Whether the con field is set. */ boolean hasCon(); /** * .daml_lf_1.Type.Con con = 2; * @return The con. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getCon(); /** * .daml_lf_1.Type.Con con = 2; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getConOrBuilder(); /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3; * @return Whether the prim field is set. */ boolean hasPrim(); /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3; * @return The prim. */ com.daml.daml_lf_dev.DamlLf1.Type.Prim getPrim(); /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3; */ com.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder(); /** * .daml_lf_1.Type.Forall forall = 5; * @return Whether the forall field is set. */ boolean hasForall(); /** * .daml_lf_1.Type.Forall forall = 5; * @return The forall. */ com.daml.daml_lf_dev.DamlLf1.Type.Forall getForall(); /** * .daml_lf_1.Type.Forall forall = 5; */ com.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder getForallOrBuilder(); /** * .daml_lf_1.Type.Struct struct = 7; * @return Whether the struct field is set. */ boolean hasStruct(); /** * .daml_lf_1.Type.Struct struct = 7; * @return The struct. */ com.daml.daml_lf_dev.DamlLf1.Type.Struct getStruct(); /** * .daml_lf_1.Type.Struct struct = 7; */ com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder getStructOrBuilder(); /** *
     * *Available in versions >= 1.7*
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 11; * @return Whether the nat field is set. */ boolean hasNat(); /** *
     * *Available in versions >= 1.7*
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 11; * @return The nat. */ long getNat(); /** *
     * *Available in versions >= 1.8*
     * 
* * .daml_lf_1.Type.Syn syn = 12; * @return Whether the syn field is set. */ boolean hasSyn(); /** *
     * *Available in versions >= 1.8*
     * 
* * .daml_lf_1.Type.Syn syn = 12; * @return The syn. */ com.daml.daml_lf_dev.DamlLf1.Type.Syn getSyn(); /** *
     * *Available in versions >= 1.8*
     * 
* * .daml_lf_1.Type.Syn syn = 12; */ com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder getSynOrBuilder(); /** *
     * *Available in versions >= 1.11*
     * 
* * int32 interned = 13; * @return Whether the interned field is set. */ boolean hasInterned(); /** *
     * *Available in versions >= 1.11*
     * 
* * int32 interned = 13; * @return The interned. */ int getInterned(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.Var.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.Con.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Type.Prim.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.Prim.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Type.Forall.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.Forall.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 58: { com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 88: { sum_ = input.readSInt64(); sumCase_ = 11; break; } case 98: { com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder subBuilder = null; if (sumCase_ == 12) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.Syn.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 12; break; } case 104: { sum_ = input.readInt32(); sumCase_ = 13; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.class, com.daml.daml_lf_dev.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; * @return Whether the varStr field is set. */ boolean hasVarStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return The varStr. */ java.lang.String getVarStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return The bytes for varStr. */ com.google.protobuf.ByteString getVarStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return Whether the varInternedStr field is set. */ boolean hasVarInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ int getVarInternedStr(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsList(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ int getArgsCount(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry)); break; } case 24: { var_ = input.readInt32(); varCase_ = 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 { 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Var_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Var.class, com.daml.daml_lf_dev.DamlLf1.Type.Var.Builder.class); } private int varCase_ = 0; private java.lang.Object var_; public enum VarCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR_STR(1), VAR_INTERNED_STR(3), VAR_NOT_SET(0); private final int value; private VarCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the varStr field is set. */ public boolean hasVarStr() { return varCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the varInternedStr field is set. */ @java.lang.Override public boolean hasVarInternedStr() { return varCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override 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; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type.Var other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Var parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Var parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Var_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Var.class, com.daml.daml_lf_dev.DamlLf1.Type.Var.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Var getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Var build() { com.daml.daml_lf_dev.DamlLf1.Type.Var result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Var buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type.Var result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Var)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type.Var other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the varStr field is set. */ @java.lang.Override public boolean hasVarStr() { return varCase_ == 1; } /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1; * @return The varStr. */ @java.lang.Override 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; * @return The bytes for varStr. */ @java.lang.Override 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; * @param value The varStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarStr() { if (varCase_ == 1) { varCase_ = 0; var_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_str = 1; * @param value The bytes for varStr to set. * @return This builder for chaining. */ 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; * @return Whether the varInternedStr field is set. */ public boolean hasVarInternedStr() { return varCase_ == 3; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @return The 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; * @param value The varInternedStr to set. * @return This builder for chaining. */ public Builder setVarInternedStr(int value) { varCase_ = 3; var_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs(com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs( com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_1.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type.Var(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsList(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ int getArgsCount(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Con_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Con.class, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder.class); } public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName tycon_; /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type.Con other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Con parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Con parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Con_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Con.class, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con build() { com.daml.daml_lf_dev.DamlLf1.Type.Con result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type.Con result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Con)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type.Con other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Type.Con) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.TypeConName tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> tyconBuilder_; /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs(com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs( com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type.Con(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SynOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Syn) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the type synonym
       * 
* * .daml_lf_1.TypeSynName tysyn = 1; * @return Whether the tysyn field is set. */ boolean hasTysyn(); /** *
       * Name of the type synonym
       * 
* * .daml_lf_1.TypeSynName tysyn = 1; * @return The tysyn. */ com.daml.daml_lf_dev.DamlLf1.TypeSynName getTysyn(); /** *
       * Name of the type synonym
       * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder getTysynOrBuilder(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsList(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ int getArgsCount(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Fully applied type constructor 'TySyn'
     * *Available in versions >= 1.8*
     * 
* * Protobuf type {@code daml_lf_1.Type.Syn} */ public static final class Syn extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Syn) SynOrBuilder { private static final long serialVersionUID = 0L; // Use Syn.newBuilder() to construct. private Syn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Syn() { args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Syn(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Syn( 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.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder subBuilder = null; if (tysyn_ != null) { subBuilder = tysyn_.toBuilder(); } tysyn_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeSynName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tysyn_); tysyn_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } args_.add( input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Syn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Syn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Syn.class, com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder.class); } public static final int TYSYN_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeSynName tysyn_; /** *
       * Name of the type synonym
       * 
* * .daml_lf_1.TypeSynName tysyn = 1; * @return Whether the tysyn field is set. */ @java.lang.Override public boolean hasTysyn() { return tysyn_ != null; } /** *
       * Name of the type synonym
       * 
* * .daml_lf_1.TypeSynName tysyn = 1; * @return The tysyn. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeSynName getTysyn() { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_; } /** *
       * Name of the type synonym
       * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder getTysynOrBuilder() { return getTysyn(); } public static final int ARGS_FIELD_NUMBER = 2; private java.util.List args_; /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (tysyn_ != null) { output.writeMessage(1, getTysyn()); } 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 (tysyn_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTysyn()); } 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.daml.daml_lf_dev.DamlLf1.Type.Syn)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type.Syn other = (com.daml.daml_lf_dev.DamlLf1.Type.Syn) obj; if (hasTysyn() != other.hasTysyn()) return false; if (hasTysyn()) { if (!getTysyn() .equals(other.getTysyn())) 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 (hasTysyn()) { hash = (37 * hash) + TYSYN_FIELD_NUMBER; hash = (53 * hash) + getTysyn().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.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Type.Syn 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; } /** *
       * Fully applied type constructor 'TySyn'
       * *Available in versions >= 1.8*
       * 
* * Protobuf type {@code daml_lf_1.Type.Syn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Syn) com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Syn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Syn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Syn.class, com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Type.Syn.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 (tysynBuilder_ == null) { tysyn_ = null; } else { tysyn_ = null; tysynBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Syn_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Syn getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Syn build() { com.daml.daml_lf_dev.DamlLf1.Type.Syn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Syn buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type.Syn result = new com.daml.daml_lf_dev.DamlLf1.Type.Syn(this); int from_bitField0_ = bitField0_; if (tysynBuilder_ == null) { result.tysyn_ = tysyn_; } else { result.tysyn_ = tysynBuilder_.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.daml.daml_lf_dev.DamlLf1.Type.Syn) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Syn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type.Syn other) { if (other == com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance()) return this; if (other.hasTysyn()) { mergeTysyn(other.getTysyn()); } 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.daml.daml_lf_dev.DamlLf1.Type.Syn parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Type.Syn) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.TypeSynName tysyn_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeSynName, com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder> tysynBuilder_; /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; * @return Whether the tysyn field is set. */ public boolean hasTysyn() { return tysynBuilder_ != null || tysyn_ != null; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; * @return The tysyn. */ public com.daml.daml_lf_dev.DamlLf1.TypeSynName getTysyn() { if (tysynBuilder_ == null) { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_; } else { return tysynBuilder_.getMessage(); } } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public Builder setTysyn(com.daml.daml_lf_dev.DamlLf1.TypeSynName value) { if (tysynBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tysyn_ = value; onChanged(); } else { tysynBuilder_.setMessage(value); } return this; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public Builder setTysyn( com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder builderForValue) { if (tysynBuilder_ == null) { tysyn_ = builderForValue.build(); onChanged(); } else { tysynBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public Builder mergeTysyn(com.daml.daml_lf_dev.DamlLf1.TypeSynName value) { if (tysynBuilder_ == null) { if (tysyn_ != null) { tysyn_ = com.daml.daml_lf_dev.DamlLf1.TypeSynName.newBuilder(tysyn_).mergeFrom(value).buildPartial(); } else { tysyn_ = value; } onChanged(); } else { tysynBuilder_.mergeFrom(value); } return this; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public Builder clearTysyn() { if (tysynBuilder_ == null) { tysyn_ = null; onChanged(); } else { tysyn_ = null; tysynBuilder_ = null; } return this; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder getTysynBuilder() { onChanged(); return getTysynFieldBuilder().getBuilder(); } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder getTysynOrBuilder() { if (tysynBuilder_ != null) { return tysynBuilder_.getMessageOrBuilder(); } else { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_; } } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeSynName, com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder> getTysynFieldBuilder() { if (tysynBuilder_ == null) { tysynBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeSynName, com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeSynNameOrBuilder>( getTysyn(), getParentForChildren(), isClean()); tysyn_ = null; } return tysynBuilder_; } 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.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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 synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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 synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder addArgs(com.daml.daml_lf_dev.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 synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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 synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder addArgs( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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 synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ 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 synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.Syn) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Syn) private static final com.daml.daml_lf_dev.DamlLf1.Type.Syn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type.Syn(); } public static com.daml.daml_lf_dev.DamlLf1.Type.Syn getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Syn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Syn(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.daml.daml_lf_dev.DamlLf1.Type.Syn 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; * @return The enum numeric value on the wire for prim. */ int getPrimValue(); /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_1.PrimType prim = 1; * @return The prim. */ com.daml.daml_lf_dev.DamlLf1.PrimType getPrim(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsList(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ int getArgsCount(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Prim_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Prim.class, com.daml.daml_lf_dev.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; * @return The enum numeric value on the wire for prim. */ @java.lang.Override public int getPrimValue() { return prim_; } /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_1.PrimType prim = 1; * @return The prim. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimType getPrim() { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimType result = com.daml.daml_lf_dev.DamlLf1.PrimType.valueOf(prim_); return result == null ? com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_1.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type.Prim other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Prim parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Prim parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Prim_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Prim.class, com.daml.daml_lf_dev.DamlLf1.Type.Prim.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Prim getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Prim build() { com.daml.daml_lf_dev.DamlLf1.Type.Prim result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Prim buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type.Prim result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Prim)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type.Prim other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return The enum numeric value on the wire for prim. */ @java.lang.Override public int getPrimValue() { return prim_; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1; * @param value The enum numeric value on the wire for prim to set. * @return This builder for chaining. */ public Builder setPrimValue(int value) { prim_ = value; onChanged(); return this; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1; * @return The prim. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimType getPrim() { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimType result = com.daml.daml_lf_dev.DamlLf1.PrimType.valueOf(prim_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimType.UNRECOGNIZED : result; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1; * @param value The prim to set. * @return This builder for chaining. */ public Builder setPrim(com.daml.daml_lf_dev.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; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs(com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs( com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_1.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type.Prim(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Prim 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; */ java.util.List getVarsList(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getVars(int index); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ int getVarsCount(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ java.util.List getVarsOrBuilderList(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder( int index); /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Type getBody(); /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Forall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Forall.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getVarsList() { return vars_; } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ @java.lang.Override public java.util.List getVarsOrBuilderList() { return vars_; } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ @java.lang.Override public int getVarsCount() { return vars_.size(); } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getVars(int index) { return vars_.get(index); } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder( int index) { return vars_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Type body_; /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : body_; } /** *
       * Body of the quantification
       * 
* * .daml_lf_1.Type body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type.Forall other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Forall parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Forall parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Forall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Forall.class, com.daml.daml_lf_dev.DamlLf1.Type.Forall.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Forall getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Forall build() { com.daml.daml_lf_dev.DamlLf1.Type.Forall result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Forall buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type.Forall result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Forall)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type.Forall other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> varsBuilder_; /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setVars( int index, com.daml.daml_lf_dev.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; */ public Builder setVars( int index, com.daml.daml_lf_dev.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; */ public Builder addVars(com.daml.daml_lf_dev.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; */ public Builder addVars( int index, com.daml.daml_lf_dev.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; */ public Builder addVars( com.daml.daml_lf_dev.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; */ public Builder addVars( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addVarsBuilder() { return getVarsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addVarsBuilder( int index) { return getVarsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind vars = 1; */ public java.util.List getVarsBuilderList() { return getVarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> getVarsFieldBuilder() { if (varsBuilder_ == null) { varsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder>( vars_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vars_ = null; } return varsBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Type body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> bodyBuilder_; /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Type getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.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; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Type value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : body_; } } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type.Forall(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Forall getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Struct) com.google.protobuf.MessageOrBuilder { /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ java.util.List getFieldsList(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf1.FieldWithType getFields(int index); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ int getFieldsCount(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ java.util.List getFieldsOrBuilderList(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index); } /** *
     * Struct type
     * 
* * Protobuf type {@code daml_lf_1.Type.Struct} */ public static final class Struct extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Type.Struct) StructOrBuilder { private static final long serialVersionUID = 0L; // Use Struct.newBuilder() to construct. private Struct(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Struct() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Struct(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Struct( 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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Struct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Struct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Struct.class, com.daml.daml_lf_dev.DamlLf1.Type.Struct.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; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithType getFields(int index) { return fields_.get(index); } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Struct)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type.Struct other = (com.daml.daml_lf_dev.DamlLf1.Type.Struct) 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.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Type.Struct 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; } /** *
       * Struct type
       * 
* * Protobuf type {@code daml_lf_1.Type.Struct} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Struct) com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Struct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Struct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.Struct.class, com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Type.Struct.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_Struct_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Struct getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Struct build() { com.daml.daml_lf_dev.DamlLf1.Type.Struct result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Struct buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type.Struct result = new com.daml.daml_lf_dev.DamlLf1.Type.Struct(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.daml.daml_lf_dev.DamlLf1.Type.Struct) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type.Struct)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type.Struct other) { if (other == com.daml.daml_lf_dev.DamlLf1.Type.Struct.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.daml.daml_lf_dev.DamlLf1.Type.Struct parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Type.Struct) 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.daml.daml_lf_dev.DamlLf1.FieldWithType, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder> fieldsBuilder_; /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields(com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields( com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.FieldWithType.getDefaultInstance()); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.FieldWithType.getDefaultInstance()); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_1.FieldWithType fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithType, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithType, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder, com.daml.daml_lf_dev.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.Struct) } // @@protoc_insertion_point(class_scope:daml_lf_1.Type.Struct) private static final com.daml.daml_lf_dev.DamlLf1.Type.Struct DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type.Struct(); } public static com.daml.daml_lf_dev.DamlLf1.Type.Struct getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Struct parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Struct(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.daml.daml_lf_dev.DamlLf1.Type.Struct getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR(1), CON(2), PRIM(3), FORALL(5), STRUCT(7), NAT(11), SYN(12), INTERNED(13), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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 5: return FORALL; case 7: return STRUCT; case 11: return NAT; case 12: return SYN; case 13: return INTERNED; 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; * @return Whether the var field is set. */ @java.lang.Override public boolean hasVar() { return sumCase_ == 1; } /** * .daml_lf_1.Type.Var var = 1; * @return The var. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Var getVar() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } /** * .daml_lf_1.Type.Var var = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder getVarOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } public static final int CON_FIELD_NUMBER = 2; /** * .daml_lf_1.Type.Con con = 2; * @return Whether the con field is set. */ @java.lang.Override public boolean hasCon() { return sumCase_ == 2; } /** * .daml_lf_1.Type.Con con = 2; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getCon() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } /** * .daml_lf_1.Type.Con con = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getConOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } public static final int PRIM_FIELD_NUMBER = 3; /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3; * @return Whether the prim field is set. */ @java.lang.Override public boolean hasPrim() { return sumCase_ == 3; } /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3; * @return The prim. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Prim getPrim() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } /** *
     * FixMe: renamed
     * 
* * .daml_lf_1.Type.Prim prim = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } public static final int FORALL_FIELD_NUMBER = 5; /** * .daml_lf_1.Type.Forall forall = 5; * @return Whether the forall field is set. */ @java.lang.Override public boolean hasForall() { return sumCase_ == 5; } /** * .daml_lf_1.Type.Forall forall = 5; * @return The forall. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Forall getForall() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } /** * .daml_lf_1.Type.Forall forall = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder getForallOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } public static final int STRUCT_FIELD_NUMBER = 7; /** * .daml_lf_1.Type.Struct struct = 7; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return sumCase_ == 7; } /** * .daml_lf_1.Type.Struct struct = 7; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Struct getStruct() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance(); } /** * .daml_lf_1.Type.Struct struct = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder getStructOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Struct.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; * @return Whether the nat field is set. */ @java.lang.Override public boolean hasNat() { return sumCase_ == 11; } /** *
     * *Available in versions >= 1.7*
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 11; * @return The nat. */ @java.lang.Override public long getNat() { if (sumCase_ == 11) { return (java.lang.Long) sum_; } return 0L; } public static final int SYN_FIELD_NUMBER = 12; /** *
     * *Available in versions >= 1.8*
     * 
* * .daml_lf_1.Type.Syn syn = 12; * @return Whether the syn field is set. */ @java.lang.Override public boolean hasSyn() { return sumCase_ == 12; } /** *
     * *Available in versions >= 1.8*
     * 
* * .daml_lf_1.Type.Syn syn = 12; * @return The syn. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Syn getSyn() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } /** *
     * *Available in versions >= 1.8*
     * 
* * .daml_lf_1.Type.Syn syn = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder getSynOrBuilder() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } public static final int INTERNED_FIELD_NUMBER = 13; /** *
     * *Available in versions >= 1.11*
     * 
* * int32 interned = 13; * @return Whether the interned field is set. */ @java.lang.Override public boolean hasInterned() { return sumCase_ == 13; } /** *
     * *Available in versions >= 1.11*
     * 
* * int32 interned = 13; * @return The interned. */ @java.lang.Override public int getInterned() { if (sumCase_ == 13) { 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.daml.daml_lf_dev.DamlLf1.Type.Var) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_); } if (sumCase_ == 11) { output.writeSInt64( 11, (long)((java.lang.Long) sum_)); } if (sumCase_ == 12) { output.writeMessage(12, (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_); } if (sumCase_ == 13) { output.writeInt32( 13, (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.daml.daml_lf_dev.DamlLf1.Type.Var) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size( 11, (long)((java.lang.Long) sum_)); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 13, (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.daml.daml_lf_dev.DamlLf1.Type)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Type other = (com.daml.daml_lf_dev.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 5: if (!getForall() .equals(other.getForall())) return false; break; case 7: if (!getStruct() .equals(other.getStruct())) return false; break; case 11: if (getNat() != other.getNat()) return false; break; case 12: if (!getSyn() .equals(other.getSyn())) return false; break; case 13: if (getInterned() != other.getInterned()) 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 5: hash = (37 * hash) + FORALL_FIELD_NUMBER; hash = (53 * hash) + getForall().hashCode(); break; case 7: hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().hashCode(); break; case 11: hash = (37 * hash) + NAT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNat()); break; case 12: hash = (37 * hash) + SYN_FIELD_NUMBER; hash = (53 * hash) + getSyn().hashCode(); break; case 13: hash = (37 * hash) + INTERNED_FIELD_NUMBER; hash = (53 * hash) + getInterned(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Type parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Type parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Type parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Type.class, com.daml.daml_lf_dev.DamlLf1.Type.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Type_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type build() { com.daml.daml_lf_dev.DamlLf1.Type result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type buildPartial() { com.daml.daml_lf_dev.DamlLf1.Type result = new com.daml.daml_lf_dev.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_ == 5) { if (forallBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = forallBuilder_.build(); } } if (sumCase_ == 7) { if (structBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = structBuilder_.build(); } } if (sumCase_ == 11) { result.sum_ = sum_; } if (sumCase_ == 12) { if (synBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = synBuilder_.build(); } } if (sumCase_ == 13) { 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.daml.daml_lf_dev.DamlLf1.Type) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Type other) { if (other == com.daml.daml_lf_dev.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 FORALL: { mergeForall(other.getForall()); break; } case STRUCT: { mergeStruct(other.getStruct()); break; } case NAT: { setNat(other.getNat()); break; } case SYN: { mergeSyn(other.getSyn()); break; } case INTERNED: { setInterned(other.getInterned()); 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.daml.daml_lf_dev.DamlLf1.Type parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Var, com.daml.daml_lf_dev.DamlLf1.Type.Var.Builder, com.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder> varBuilder_; /** * .daml_lf_1.Type.Var var = 1; * @return Whether the var field is set. */ @java.lang.Override public boolean hasVar() { return sumCase_ == 1; } /** * .daml_lf_1.Type.Var var = 1; * @return The var. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Var getVar() { if (varBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } else { if (sumCase_ == 1) { return varBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } } /** * .daml_lf_1.Type.Var var = 1; */ public Builder setVar(com.daml.daml_lf_dev.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; */ public Builder setVar( com.daml.daml_lf_dev.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; */ public Builder mergeVar(com.daml.daml_lf_dev.DamlLf1.Type.Var value) { if (varBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Var.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Var.Builder getVarBuilder() { return getVarFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Var var = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder getVarOrBuilder() { if ((sumCase_ == 1) && (varBuilder_ != null)) { return varBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } } /** * .daml_lf_1.Type.Var var = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Var, com.daml.daml_lf_dev.DamlLf1.Type.Var.Builder, com.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder> getVarFieldBuilder() { if (varBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Var.getDefaultInstance(); } varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Var, com.daml.daml_lf_dev.DamlLf1.Type.Var.Builder, com.daml.daml_lf_dev.DamlLf1.Type.VarOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type.Var) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return varBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> conBuilder_; /** * .daml_lf_1.Type.Con con = 2; * @return Whether the con field is set. */ @java.lang.Override public boolean hasCon() { return sumCase_ == 2; } /** * .daml_lf_1.Type.Con con = 2; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getCon() { if (conBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } else { if (sumCase_ == 2) { return conBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } } /** * .daml_lf_1.Type.Con con = 2; */ public Builder setCon(com.daml.daml_lf_dev.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; */ public Builder setCon( com.daml.daml_lf_dev.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; */ public Builder mergeCon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (conBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Con.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getConBuilder() { return getConFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Con con = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getConOrBuilder() { if ((sumCase_ == 2) && (conBuilder_ != null)) { return conBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } } /** * .daml_lf_1.Type.Con con = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance(); } conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type.Con) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return conBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Prim, com.daml.daml_lf_dev.DamlLf1.Type.Prim.Builder, com.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder> primBuilder_; /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3; * @return Whether the prim field is set. */ @java.lang.Override public boolean hasPrim() { return sumCase_ == 3; } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3; * @return The prim. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Prim getPrim() { if (primBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } else { if (sumCase_ == 3) { return primBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3; */ public Builder setPrim(com.daml.daml_lf_dev.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; */ public Builder setPrim( com.daml.daml_lf_dev.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; */ public Builder mergePrim(com.daml.daml_lf_dev.DamlLf1.Type.Prim value) { if (primBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Prim.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Prim.Builder getPrimBuilder() { return getPrimFieldBuilder().getBuilder(); } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder() { if ((sumCase_ == 3) && (primBuilder_ != null)) { return primBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } } /** *
       * FixMe: renamed
       * 
* * .daml_lf_1.Type.Prim prim = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Prim, com.daml.daml_lf_dev.DamlLf1.Type.Prim.Builder, com.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder> getPrimFieldBuilder() { if (primBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Prim.getDefaultInstance(); } primBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Prim, com.daml.daml_lf_dev.DamlLf1.Type.Prim.Builder, com.daml.daml_lf_dev.DamlLf1.Type.PrimOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type.Prim) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return primBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Forall, com.daml.daml_lf_dev.DamlLf1.Type.Forall.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder> forallBuilder_; /** * .daml_lf_1.Type.Forall forall = 5; * @return Whether the forall field is set. */ @java.lang.Override public boolean hasForall() { return sumCase_ == 5; } /** * .daml_lf_1.Type.Forall forall = 5; * @return The forall. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Forall getForall() { if (forallBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } else { if (sumCase_ == 5) { return forallBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } } /** * .daml_lf_1.Type.Forall forall = 5; */ public Builder setForall(com.daml.daml_lf_dev.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; */ public Builder setForall( com.daml.daml_lf_dev.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; */ public Builder mergeForall(com.daml.daml_lf_dev.DamlLf1.Type.Forall value) { if (forallBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Forall.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Forall.Builder getForallBuilder() { return getForallFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Forall forall = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder getForallOrBuilder() { if ((sumCase_ == 5) && (forallBuilder_ != null)) { return forallBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } } /** * .daml_lf_1.Type.Forall forall = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Forall, com.daml.daml_lf_dev.DamlLf1.Type.Forall.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder> getForallFieldBuilder() { if (forallBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Forall.getDefaultInstance(); } forallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Forall, com.daml.daml_lf_dev.DamlLf1.Type.Forall.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ForallOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type.Forall) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return forallBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Struct, com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder, com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder> structBuilder_; /** * .daml_lf_1.Type.Struct struct = 7; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return sumCase_ == 7; } /** * .daml_lf_1.Type.Struct struct = 7; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Struct getStruct() { if (structBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance(); } else { if (sumCase_ == 7) { return structBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance(); } } /** * .daml_lf_1.Type.Struct struct = 7; */ public Builder setStruct(com.daml.daml_lf_dev.DamlLf1.Type.Struct value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Type.Struct struct = 7; */ public Builder setStruct( com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder builderForValue) { if (structBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_1.Type.Struct struct = 7; */ public Builder mergeStruct(com.daml.daml_lf_dev.DamlLf1.Type.Struct value) { if (structBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Struct.newBuilder((com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { structBuilder_.mergeFrom(value); } structBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Type.Struct struct = 7; */ public Builder clearStruct() { if (structBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } structBuilder_.clear(); } return this; } /** * .daml_lf_1.Type.Struct struct = 7; */ public com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder getStructBuilder() { return getStructFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type.Struct struct = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder getStructOrBuilder() { if ((sumCase_ == 7) && (structBuilder_ != null)) { return structBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance(); } } /** * .daml_lf_1.Type.Struct struct = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Struct, com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder, com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Struct.getDefaultInstance(); } structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Struct, com.daml.daml_lf_dev.DamlLf1.Type.Struct.Builder, com.daml.daml_lf_dev.DamlLf1.Type.StructOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type.Struct) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return structBuilder_; } /** *
       * *Available in versions >= 1.7*
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 11; * @return Whether the nat field is set. */ public boolean hasNat() { return sumCase_ == 11; } /** *
       * *Available in versions >= 1.7*
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 11; * @return The 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; * @param value The nat to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearNat() { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Syn, com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder, com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder> synBuilder_; /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; * @return Whether the syn field is set. */ @java.lang.Override public boolean hasSyn() { return sumCase_ == 12; } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; * @return The syn. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Syn getSyn() { if (synBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } else { if (sumCase_ == 12) { return synBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ public Builder setSyn(com.daml.daml_lf_dev.DamlLf1.Type.Syn value) { if (synBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { synBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ public Builder setSyn( com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder builderForValue) { if (synBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { synBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ public Builder mergeSyn(com.daml.daml_lf_dev.DamlLf1.Type.Syn value) { if (synBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Syn.newBuilder((com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 12) { synBuilder_.mergeFrom(value); } synBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ public Builder clearSyn() { if (synBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } synBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ public com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder getSynBuilder() { return getSynFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder getSynOrBuilder() { if ((sumCase_ == 12) && (synBuilder_ != null)) { return synBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.8*
       * 
* * .daml_lf_1.Type.Syn syn = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Syn, com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder, com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder> getSynFieldBuilder() { if (synBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.Syn.getDefaultInstance(); } synBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Syn, com.daml.daml_lf_dev.DamlLf1.Type.Syn.Builder, com.daml.daml_lf_dev.DamlLf1.Type.SynOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type.Syn) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged();; return synBuilder_; } /** *
       * *Available in versions >= 1.11*
       * 
* * int32 interned = 13; * @return Whether the interned field is set. */ public boolean hasInterned() { return sumCase_ == 13; } /** *
       * *Available in versions >= 1.11*
       * 
* * int32 interned = 13; * @return The interned. */ public int getInterned() { if (sumCase_ == 13) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Available in versions >= 1.11*
       * 
* * int32 interned = 13; * @param value The interned to set. * @return This builder for chaining. */ public Builder setInterned(int value) { sumCase_ = 13; sum_ = value; onChanged(); return this; } /** *
       * *Available in versions >= 1.11*
       * 
* * int32 interned = 13; * @return This builder for chaining. */ public Builder clearInterned() { if (sumCase_ == 13) { 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.daml.daml_lf_dev.DamlLf1.Type DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Type(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the int64 field is set. */ boolean hasInt64(); /** *
     *  64-bit integer literal ('LitInt64')
     * 
* * sint64 int64 = 1; * @return The int64. */ long getInt64(); /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2; * @return Whether the decimalStr field is set. */ boolean hasDecimalStr(); /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2; * @return The decimalStr. */ java.lang.String getDecimalStr(); /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2; * @return The bytes for decimalStr. */ com.google.protobuf.ByteString getDecimalStrBytes(); /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 10; * @return Whether the numericInternedStr field is set. */ boolean hasNumericInternedStr(); /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 10; * @return The numericInternedStr. */ int getNumericInternedStr(); /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4; * @return Whether the textStr field is set. */ boolean hasTextStr(); /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4; * @return The textStr. */ java.lang.String getTextStr(); /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4; * @return The bytes for textStr. */ com.google.protobuf.ByteString getTextStrBytes(); /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 11; * @return Whether the textInternedStr field is set. */ boolean hasTextInternedStr(); /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 11; * @return The textInternedStr. */ int getTextInternedStr(); /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 5; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 5; * @return The timestamp. */ long getTimestamp(); /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7; * @return Whether the partyStr field is set. */ boolean hasPartyStr(); /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7; * @return The partyStr. */ java.lang.String getPartyStr(); /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7; * @return The bytes for partyStr. */ com.google.protobuf.ByteString getPartyStrBytes(); /** *
     * *Must be a valid interned PartyId string*
     * 
* * int32 party_interned_str = 12; * @return Whether the partyInternedStr field is set. */ boolean hasPartyInternedStr(); /** *
     * *Must be a valid interned PartyId string*
     * 
* * int32 party_interned_str = 12; * @return The partyInternedStr. */ int getPartyInternedStr(); /** *
     * *Must be a valid date*
     * 
* * int32 date = 8; * @return Whether the date field is set. */ boolean hasDate(); /** *
     * *Must be a valid date*
     * 
* * int32 date = 8; * @return The date. */ int getDate(); /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 1.13*
     * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return Whether the roundingMode field is set. */ boolean hasRoundingMode(); /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 1.13*
     * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return The enum numeric value on the wire for roundingMode. */ int getRoundingModeValue(); /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 1.13*
     * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return The roundingMode. */ com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode getRoundingMode(); public com.daml.daml_lf_dev.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: { sum_ = input.readSInt64(); sumCase_ = 1; 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: { sum_ = input.readSFixed64(); sumCase_ = 5; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 7; sum_ = s; break; } case 64: { sum_ = input.readInt32(); sumCase_ = 8; break; } case 80: { sum_ = input.readInt32(); sumCase_ = 10; break; } case 88: { sum_ = input.readInt32(); sumCase_ = 11; break; } case 96: { sum_ = input.readInt32(); sumCase_ = 12; break; } case 104: { int rawValue = input.readEnum(); sumCase_ = 13; sum_ = rawValue; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PrimLit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.PrimLit.class, com.daml.daml_lf_dev.DamlLf1.PrimLit.Builder.class); } /** *
     * match java.math.BigDecimal.ROUND_XXX constants
     * 
* * Protobuf enum {@code daml_lf_1.PrimLit.RoundingMode} */ public enum RoundingMode implements com.google.protobuf.ProtocolMessageEnum { /** * UP = 0; */ UP(0), /** * DOWN = 1; */ DOWN(1), /** * CEILING = 2; */ CEILING(2), /** * FLOOR = 3; */ FLOOR(3), /** * HALF_UP = 4; */ HALF_UP(4), /** * HALF_DOWN = 5; */ HALF_DOWN(5), /** * HALF_EVEN = 6; */ HALF_EVEN(6), /** * UNNECESSARY = 7; */ UNNECESSARY(7), UNRECOGNIZED(-1), ; /** * UP = 0; */ public static final int UP_VALUE = 0; /** * DOWN = 1; */ public static final int DOWN_VALUE = 1; /** * CEILING = 2; */ public static final int CEILING_VALUE = 2; /** * FLOOR = 3; */ public static final int FLOOR_VALUE = 3; /** * HALF_UP = 4; */ public static final int HALF_UP_VALUE = 4; /** * HALF_DOWN = 5; */ public static final int HALF_DOWN_VALUE = 5; /** * HALF_EVEN = 6; */ public static final int HALF_EVEN_VALUE = 6; /** * UNNECESSARY = 7; */ public static final int UNNECESSARY_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RoundingMode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RoundingMode forNumber(int value) { switch (value) { case 0: return UP; case 1: return DOWN; case 2: return CEILING; case 3: return FLOOR; case 4: return HALF_UP; case 5: return HALF_DOWN; case 6: return HALF_EVEN; case 7: return UNNECESSARY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RoundingMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RoundingMode findValueByNumber(int number) { return RoundingMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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.daml.daml_lf_dev.DamlLf1.PrimLit.getDescriptor().getEnumTypes().get(0); } private static final RoundingMode[] VALUES = values(); public static RoundingMode 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 RoundingMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:daml_lf_1.PrimLit.RoundingMode) } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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), ROUNDING_MODE(13), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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 13: return ROUNDING_MODE; 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; * @return Whether the int64 field is set. */ @java.lang.Override public boolean hasInt64() { return sumCase_ == 1; } /** *
     *  64-bit integer literal ('LitInt64')
     * 
* * sint64 int64 = 1; * @return The int64. */ @java.lang.Override 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; * @return Whether the decimalStr field is set. */ public boolean hasDecimalStr() { return sumCase_ == 2; } /** *
     * *Must be a valid representation of decimal*
     * 
* * string decimal_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the numericInternedStr field is set. */ @java.lang.Override public boolean hasNumericInternedStr() { return sumCase_ == 10; } /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 10; * @return The numericInternedStr. */ @java.lang.Override 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; * @return Whether the textStr field is set. */ public boolean hasTextStr() { return sumCase_ == 4; } /** *
     * *Available in version < 1.7*
     * 
* * string text_str = 4; * @return The 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; * @return The bytes for 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; * @return Whether the textInternedStr field is set. */ @java.lang.Override public boolean hasTextInternedStr() { return sumCase_ == 11; } /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 11; * @return The textInternedStr. */ @java.lang.Override 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; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return sumCase_ == 5; } /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 5; * @return The timestamp. */ @java.lang.Override 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; * @return Whether the partyStr field is set. */ public boolean hasPartyStr() { return sumCase_ == 7; } /** *
     * *Must be a valid PartyId string*
     * 
* * string party_str = 7; * @return The 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; * @return The bytes for 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; * @return Whether the partyInternedStr field is set. */ @java.lang.Override public boolean hasPartyInternedStr() { return sumCase_ == 12; } /** *
     * *Must be a valid interned PartyId string*
     * 
* * int32 party_interned_str = 12; * @return The partyInternedStr. */ @java.lang.Override 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; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return sumCase_ == 8; } /** *
     * *Must be a valid date*
     * 
* * int32 date = 8; * @return The date. */ @java.lang.Override public int getDate() { if (sumCase_ == 8) { return (java.lang.Integer) sum_; } return 0; } public static final int ROUNDING_MODE_FIELD_NUMBER = 13; /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 1.13*
     * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return Whether the roundingMode field is set. */ public boolean hasRoundingMode() { return sumCase_ == 13; } /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 1.13*
     * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return The enum numeric value on the wire for roundingMode. */ public int getRoundingModeValue() { if (sumCase_ == 13) { return (java.lang.Integer) sum_; } return 0; } /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 1.13*
     * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return The roundingMode. */ public com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode getRoundingMode() { if (sumCase_ == 13) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode result = com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.UP; } 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_)); } if (sumCase_ == 13) { output.writeEnum(13, ((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_)); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, ((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.daml.daml_lf_dev.DamlLf1.PrimLit)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.PrimLit other = (com.daml.daml_lf_dev.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 13: if (getRoundingModeValue() != other.getRoundingModeValue()) 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 13: hash = (37 * hash) + ROUNDING_MODE_FIELD_NUMBER; hash = (53 * hash) + getRoundingModeValue(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.PrimLit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.PrimLit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PrimLit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PrimLit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.PrimLit.class, com.daml.daml_lf_dev.DamlLf1.PrimLit.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLit getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLit build() { com.daml.daml_lf_dev.DamlLf1.PrimLit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLit buildPartial() { com.daml.daml_lf_dev.DamlLf1.PrimLit result = new com.daml.daml_lf_dev.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_; } if (sumCase_ == 13) { 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.daml.daml_lf_dev.DamlLf1.PrimLit) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.PrimLit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.PrimLit other) { if (other == com.daml.daml_lf_dev.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 ROUNDING_MODE: { setRoundingModeValue(other.getRoundingModeValue()); 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.daml.daml_lf_dev.DamlLf1.PrimLit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the int64 field is set. */ public boolean hasInt64() { return sumCase_ == 1; } /** *
       *  64-bit integer literal ('LitInt64')
       * 
* * sint64 int64 = 1; * @return The int64. */ public long getInt64() { if (sumCase_ == 1) { return (java.lang.Long) sum_; } return 0L; } /** *
       *  64-bit integer literal ('LitInt64')
       * 
* * sint64 int64 = 1; * @param value The int64 to set. * @return This builder for chaining. */ public Builder setInt64(long value) { sumCase_ = 1; sum_ = value; onChanged(); return this; } /** *
       *  64-bit integer literal ('LitInt64')
       * 
* * sint64 int64 = 1; * @return This builder for chaining. */ public Builder clearInt64() { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2; * @return Whether the decimalStr field is set. */ @java.lang.Override public boolean hasDecimalStr() { return sumCase_ == 2; } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2; * @return The decimalStr. */ @java.lang.Override 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; * @return The bytes for decimalStr. */ @java.lang.Override 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; * @param value The decimalStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearDecimalStr() { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid representation of decimal*
       * 
* * string decimal_str = 2; * @param value The bytes for decimalStr to set. * @return This builder for chaining. */ 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; * @return Whether the numericInternedStr field is set. */ public boolean hasNumericInternedStr() { return sumCase_ == 10; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 10; * @return The 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; * @param value The numericInternedStr to set. * @return This builder for chaining. */ public Builder setNumericInternedStr(int value) { sumCase_ = 10; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 10; * @return This builder for chaining. */ public Builder clearNumericInternedStr() { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4; * @return Whether the textStr field is set. */ @java.lang.Override public boolean hasTextStr() { return sumCase_ == 4; } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4; * @return The textStr. */ @java.lang.Override 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; * @return The bytes for textStr. */ @java.lang.Override 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; * @param value The textStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearTextStr() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Available in version < 1.7*
       * 
* * string text_str = 4; * @param value The bytes for textStr to set. * @return This builder for chaining. */ 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; * @return Whether the textInternedStr field is set. */ public boolean hasTextInternedStr() { return sumCase_ == 11; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 11; * @return The 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; * @param value The textInternedStr to set. * @return This builder for chaining. */ public Builder setTextInternedStr(int value) { sumCase_ = 11; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 11; * @return This builder for chaining. */ public Builder clearTextInternedStr() { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return sumCase_ == 5; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5; * @return The timestamp. */ public long getTimestamp() { if (sumCase_ == 5) { return (java.lang.Long) sum_; } return 0L; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { sumCase_ = 5; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 5; * @return This builder for chaining. */ public Builder clearTimestamp() { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7; * @return Whether the partyStr field is set. */ @java.lang.Override public boolean hasPartyStr() { return sumCase_ == 7; } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7; * @return The partyStr. */ @java.lang.Override 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; * @return The bytes for partyStr. */ @java.lang.Override 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; * @param value The partyStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearPartyStr() { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid PartyId string*
       * 
* * string party_str = 7; * @param value The bytes for partyStr to set. * @return This builder for chaining. */ 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; * @return Whether the partyInternedStr field is set. */ public boolean hasPartyInternedStr() { return sumCase_ == 12; } /** *
       * *Must be a valid interned PartyId string*
       * 
* * int32 party_interned_str = 12; * @return The 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; * @param value The partyInternedStr to set. * @return This builder for chaining. */ public Builder setPartyInternedStr(int value) { sumCase_ = 12; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned PartyId string*
       * 
* * int32 party_interned_str = 12; * @return This builder for chaining. */ public Builder clearPartyInternedStr() { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8; * @return Whether the date field is set. */ public boolean hasDate() { return sumCase_ == 8; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8; * @return The date. */ public int getDate() { if (sumCase_ == 8) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8; * @param value The date to set. * @return This builder for chaining. */ public Builder setDate(int value) { sumCase_ = 8; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 8; * @return This builder for chaining. */ public Builder clearDate() { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 1.13*
       * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return Whether the roundingMode field is set. */ @java.lang.Override public boolean hasRoundingMode() { return sumCase_ == 13; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 1.13*
       * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return The enum numeric value on the wire for roundingMode. */ @java.lang.Override public int getRoundingModeValue() { if (sumCase_ == 13) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 1.13*
       * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @param value The enum numeric value on the wire for roundingMode to set. * @return This builder for chaining. */ public Builder setRoundingModeValue(int value) { sumCase_ = 13; sum_ = value; onChanged(); return this; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 1.13*
       * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return The roundingMode. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode getRoundingMode() { if (sumCase_ == 13) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode result = com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.UP; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 1.13*
       * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @param value The roundingMode to set. * @return This builder for chaining. */ public Builder setRoundingMode(com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 13; sum_ = value.getNumber(); onChanged(); return this; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 1.13*
       * 
* * .daml_lf_1.PrimLit.RoundingMode rounding_mode = 13; * @return This builder for chaining. */ public Builder clearRoundingMode() { if (sumCase_ == 13) { 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.daml.daml_lf_dev.DamlLf1.PrimLit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.PrimLit(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule(); /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder(); /** * .daml_lf_1.Location.Range range = 2; * @return Whether the range field is set. */ boolean hasRange(); /** * .daml_lf_1.Location.Range range = 2; * @return The range. */ com.daml.daml_lf_dev.DamlLf1.Location.Range getRange(); /** * .daml_lf_1.Location.Range range = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder subBuilder = null; if (module_ != null) { subBuilder = module_.toBuilder(); } module_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.ModuleRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(module_); module_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder subBuilder = null; if (range_ != null) { subBuilder = range_.toBuilder(); } range_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Location.class, com.daml.daml_lf_dev.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; * @return The startLine. */ int getStartLine(); /** * int32 start_col = 2; * @return The startCol. */ int getStartCol(); /** * int32 end_line = 3; * @return The endLine. */ int getEndLine(); /** * int32 end_col = 4; * @return The 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Location.Range.class, com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder.class); } public static final int START_LINE_FIELD_NUMBER = 1; private int startLine_; /** * int32 start_line = 1; * @return The startLine. */ @java.lang.Override public int getStartLine() { return startLine_; } public static final int START_COL_FIELD_NUMBER = 2; private int startCol_; /** * int32 start_col = 2; * @return The startCol. */ @java.lang.Override public int getStartCol() { return startCol_; } public static final int END_LINE_FIELD_NUMBER = 3; private int endLine_; /** * int32 end_line = 3; * @return The endLine. */ @java.lang.Override public int getEndLine() { return endLine_; } public static final int END_COL_FIELD_NUMBER = 4; private int endCol_; /** * int32 end_col = 4; * @return The endCol. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.Location.Range)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Location.Range other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Location.Range parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Location.Range parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Location.Range.class, com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location.Range getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Location.Range.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location.Range build() { com.daml.daml_lf_dev.DamlLf1.Location.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location.Range buildPartial() { com.daml.daml_lf_dev.DamlLf1.Location.Range result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Location.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Location.Range other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Location.Range) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int startLine_ ; /** * int32 start_line = 1; * @return The startLine. */ @java.lang.Override public int getStartLine() { return startLine_; } /** * int32 start_line = 1; * @param value The startLine to set. * @return This builder for chaining. */ public Builder setStartLine(int value) { startLine_ = value; onChanged(); return this; } /** * int32 start_line = 1; * @return This builder for chaining. */ public Builder clearStartLine() { startLine_ = 0; onChanged(); return this; } private int startCol_ ; /** * int32 start_col = 2; * @return The startCol. */ @java.lang.Override public int getStartCol() { return startCol_; } /** * int32 start_col = 2; * @param value The startCol to set. * @return This builder for chaining. */ public Builder setStartCol(int value) { startCol_ = value; onChanged(); return this; } /** * int32 start_col = 2; * @return This builder for chaining. */ public Builder clearStartCol() { startCol_ = 0; onChanged(); return this; } private int endLine_ ; /** * int32 end_line = 3; * @return The endLine. */ @java.lang.Override public int getEndLine() { return endLine_; } /** * int32 end_line = 3; * @param value The endLine to set. * @return This builder for chaining. */ public Builder setEndLine(int value) { endLine_ = value; onChanged(); return this; } /** * int32 end_line = 3; * @return This builder for chaining. */ public Builder clearEndLine() { endLine_ = 0; onChanged(); return this; } private int endCol_ ; /** * int32 end_col = 4; * @return The endCol. */ @java.lang.Override public int getEndCol() { return endCol_; } /** * int32 end_col = 4; * @param value The endCol to set. * @return This builder for chaining. */ public Builder setEndCol(int value) { endCol_ = value; onChanged(); return this; } /** * int32 end_col = 4; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.Location.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Location.Range(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MODULE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.ModuleRef module_; /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ @java.lang.Override public boolean hasModule() { return module_ != null; } /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_1.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { return getModule(); } public static final int RANGE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Location.Range range_; /** * .daml_lf_1.Location.Range range = 2; * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return range_ != null; } /** * .daml_lf_1.Location.Range range = 2; * @return The range. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location.Range getRange() { return range_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.Range.getDefaultInstance() : range_; } /** * .daml_lf_1.Location.Range range = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Location other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Location.class, com.daml.daml_lf_dev.DamlLf1.Location.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Location_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location build() { com.daml.daml_lf_dev.DamlLf1.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location buildPartial() { com.daml.daml_lf_dev.DamlLf1.Location result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Location other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Location) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> moduleBuilder_; /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return Whether the module field is set. */ public boolean hasModule() { return moduleBuilder_ != null || module_ != null; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.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; */ public Builder setModule( com.daml.daml_lf_dev.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; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf1.ModuleRef value) { if (moduleBuilder_ == null) { if (module_ != null) { module_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ModuleRef, com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Location.Range range_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location.Range, com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder, com.daml.daml_lf_dev.DamlLf1.Location.RangeOrBuilder> rangeBuilder_; /** * .daml_lf_1.Location.Range range = 2; * @return Whether the range field is set. */ public boolean hasRange() { return rangeBuilder_ != null || range_ != null; } /** * .daml_lf_1.Location.Range range = 2; * @return The range. */ public com.daml.daml_lf_dev.DamlLf1.Location.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * .daml_lf_1.Location.Range range = 2; */ public Builder setRange(com.daml.daml_lf_dev.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; */ public Builder setRange( com.daml.daml_lf_dev.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; */ public Builder mergeRange(com.daml.daml_lf_dev.DamlLf1.Location.Range value) { if (rangeBuilder_ == null) { if (range_ != null) { range_ = com.daml.daml_lf_dev.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; */ public Builder clearRange() { if (rangeBuilder_ == null) { range_ = null; onChanged(); } else { range_ = null; rangeBuilder_ = null; } return this; } /** * .daml_lf_1.Location.Range range = 2; */ public com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder getRangeBuilder() { onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location.Range range = 2; */ public com.daml.daml_lf_dev.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.Range.getDefaultInstance() : range_; } } /** * .daml_lf_1.Location.Range range = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location.Range, com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder, com.daml.daml_lf_dev.DamlLf1.Location.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location.Range, com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Location(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the location field is set. */ boolean hasLocation(); /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return Whether the varStr field is set. */ boolean hasVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The varStr. */ java.lang.String getVarStr(); /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The bytes for varStr. */ com.google.protobuf.ByteString getVarStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 29; * @return Whether the varInternedStr field is set. */ boolean hasVarInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 29; * @return The varInternedStr. */ int getVarInternedStr(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2; * @return Whether the val field is set. */ boolean hasVal(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2; * @return The val. */ com.daml.daml_lf_dev.DamlLf1.ValName getVal(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2; */ com.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder getValOrBuilder(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return Whether the builtin field is set. */ boolean hasBuiltin(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return The enum numeric value on the wire for builtin. */ int getBuiltinValue(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return The builtin. */ com.daml.daml_lf_dev.DamlLf1.BuiltinFunction getBuiltin(); /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4; * @return Whether the primCon field is set. */ boolean hasPrimCon(); /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4; * @return The enum numeric value on the wire for primCon. */ int getPrimConValue(); /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4; * @return The primCon. */ com.daml.daml_lf_dev.DamlLf1.PrimCon getPrimCon(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5; * @return Whether the primLit field is set. */ boolean hasPrimLit(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5; * @return The primLit. */ com.daml.daml_lf_dev.DamlLf1.PrimLit getPrimLit(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5; */ com.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; * @return Whether the recCon field is set. */ boolean hasRecCon(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; * @return The recCon. */ com.daml.daml_lf_dev.DamlLf1.Expr.RecCon getRecCon(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; */ com.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; * @return Whether the recProj field is set. */ boolean hasRecProj(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; * @return The recProj. */ com.daml.daml_lf_dev.DamlLf1.Expr.RecProj getRecProj(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; */ com.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; * @return Whether the recUpd field is set. */ boolean hasRecUpd(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; * @return The recUpd. */ com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd getRecUpd(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; */ com.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; * @return Whether the variantCon field is set. */ boolean hasVariantCon(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; * @return The variantCon. */ com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon getVariantCon(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; */ com.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; * @return Whether the enumCon field is set. */ boolean hasEnumCon(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; * @return The enumCon. */ com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon getEnumCon(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; */ com.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder(); /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; * @return Whether the structCon field is set. */ boolean hasStructCon(); /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; * @return The structCon. */ com.daml.daml_lf_dev.DamlLf1.Expr.StructCon getStructCon(); /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder getStructConOrBuilder(); /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; * @return Whether the structProj field is set. */ boolean hasStructProj(); /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; * @return The structProj. */ com.daml.daml_lf_dev.DamlLf1.Expr.StructProj getStructProj(); /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder getStructProjOrBuilder(); /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; * @return Whether the structUpd field is set. */ boolean hasStructUpd(); /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; * @return The structUpd. */ com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd getStructUpd(); /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder getStructUpdOrBuilder(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11; * @return Whether the app field is set. */ boolean hasApp(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11; * @return The app. */ com.daml.daml_lf_dev.DamlLf1.Expr.App getApp(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11; */ com.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder getAppOrBuilder(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; * @return Whether the tyApp field is set. */ boolean hasTyApp(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; * @return The tyApp. */ com.daml.daml_lf_dev.DamlLf1.Expr.TyApp getTyApp(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; */ com.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13; * @return Whether the abs field is set. */ boolean hasAbs(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13; * @return The abs. */ com.daml.daml_lf_dev.DamlLf1.Expr.Abs getAbs(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13; */ com.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; * @return Whether the tyAbs field is set. */ boolean hasTyAbs(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; * @return The tyAbs. */ com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs getTyAbs(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; */ com.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15; * @return Whether the case field is set. */ boolean hasCase(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15; * @return The case. */ com.daml.daml_lf_dev.DamlLf1.Case getCase(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15; */ com.daml.daml_lf_dev.DamlLf1.CaseOrBuilder getCaseOrBuilder(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16; * @return Whether the let field is set. */ boolean hasLet(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16; * @return The let. */ com.daml.daml_lf_dev.DamlLf1.Block getLet(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16; */ com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getLetOrBuilder(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17; * @return Whether the nil field is set. */ boolean hasNil(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17; * @return The nil. */ com.daml.daml_lf_dev.DamlLf1.Expr.Nil getNil(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17; */ com.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder getNilOrBuilder(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18; * @return Whether the cons field is set. */ boolean hasCons(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18; * @return The cons. */ com.daml.daml_lf_dev.DamlLf1.Expr.Cons getCons(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18; */ com.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20; * @return Whether the update field is set. */ boolean hasUpdate(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20; * @return The update. */ com.daml.daml_lf_dev.DamlLf1.Update getUpdate(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20; */ com.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder getUpdateOrBuilder(); /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21; * @return Whether the scenario field is set. */ boolean hasScenario(); /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21; * @return The scenario. */ com.daml.daml_lf_dev.DamlLf1.Scenario getScenario(); /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21; */ com.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder(); /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; * @return Whether the optionalNone field is set. */ boolean hasOptionalNone(); /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; * @return The optionalNone. */ com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone getOptionalNone(); /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder(); /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; * @return Whether the optionalSome field is set. */ boolean hasOptionalSome(); /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; * @return The optionalSome. */ com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome getOptionalSome(); /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30; * @return Whether the toAny field is set. */ boolean hasToAny(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30; * @return The toAny. */ com.daml.daml_lf_dev.DamlLf1.Expr.ToAny getToAny(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30; */ com.daml.daml_lf_dev.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; * @return Whether the fromAny field is set. */ 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; * @return The fromAny. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder(); /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32; * @return Whether the typeRep field is set. */ boolean hasTypeRep(); /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32; * @return The typeRep. */ com.daml.daml_lf_dev.DamlLf1.Type getTypeRep(); /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeRepOrBuilder(); /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; * @return Whether the toAnyException field is set. */ boolean hasToAnyException(); /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; * @return The toAnyException. */ com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException getToAnyException(); /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder getToAnyExceptionOrBuilder(); /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; * @return Whether the fromAnyException field is set. */ boolean hasFromAnyException(); /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; * @return The fromAnyException. */ com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException getFromAnyException(); /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder getFromAnyExceptionOrBuilder(); /** *
     * Throw an exception ('ExpThrow').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.Throw throw = 35; * @return Whether the throw field is set. */ boolean hasThrow(); /** *
     * Throw an exception ('ExpThrow').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.Throw throw = 35; * @return The throw. */ com.daml.daml_lf_dev.DamlLf1.Expr.Throw getThrow(); /** *
     * Throw an exception ('ExpThrow').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.Throw throw = 35; */ com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder getThrowOrBuilder(); /** *
     * Convert to/from interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; * @return Whether the toInterface field is set. */ boolean hasToInterface(); /** *
     * Convert to/from interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; * @return The toInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface getToInterface(); /** *
     * Convert to/from interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder getToInterfaceOrBuilder(); /** * .daml_lf_1.Expr.FromInterface from_interface = 37; * @return Whether the fromInterface field is set. */ boolean hasFromInterface(); /** * .daml_lf_1.Expr.FromInterface from_interface = 37; * @return The fromInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface getFromInterface(); /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder getFromInterfaceOrBuilder(); /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; * @return Whether the callInterface field is set. */ boolean hasCallInterface(); /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; * @return The callInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface getCallInterface(); /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder(); /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; * @return Whether the toRequiredInterface field is set. */ boolean hasToRequiredInterface(); /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; * @return The toRequiredInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getToRequiredInterface(); /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder(); /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; * @return Whether the fromRequiredInterface field is set. */ boolean hasFromRequiredInterface(); /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; * @return The fromRequiredInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getFromRequiredInterface(); /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; * @return Whether the interfaceTemplateTypeRep field is set. */ boolean hasInterfaceTemplateTypeRep(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; * @return The interfaceTemplateTypeRep. */ com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; * @return Whether the signatoryInterface field is set. */ boolean hasSignatoryInterface(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; * @return The signatoryInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getSignatoryInterface(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder(); /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; * @return Whether the observerInterface field is set. */ boolean hasObserverInterface(); /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; * @return The observerInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getObserverInterface(); /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder(); /** *
     * Unsafe conversion to/from interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; * @return Whether the unsafeFromInterface field is set. */ boolean hasUnsafeFromInterface(); /** *
     * Unsafe conversion to/from interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; * @return The unsafeFromInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getUnsafeFromInterface(); /** *
     * Unsafe conversion to/from interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder(); /** *
     * Unsafe downcast interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; * @return Whether the unsafeFromRequiredInterface field is set. */ boolean hasUnsafeFromRequiredInterface(); /** *
     * Unsafe downcast interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; * @return The unsafeFromRequiredInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface(); /** *
     * Unsafe downcast interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder(); /** *
     * *Available only in 1.dev*
     * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; * @return Whether the experimental field is set. */ boolean hasExperimental(); /** *
     * *Available only in 1.dev*
     * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; * @return The experimental. */ com.daml.daml_lf_dev.DamlLf1.Expr.Experimental getExperimental(); /** *
     * *Available only in 1.dev*
     * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder getExperimentalOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ValName.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.ValName) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.ValName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.PrimLit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder subBuilder = null; if (sumCase_ == 6) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 6; break; } case 58: { com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } case 74: { com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder subBuilder = null; if (sumCase_ == 9) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 9; break; } case 82: { com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder subBuilder = null; if (sumCase_ == 10) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 10; break; } case 90: { com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder subBuilder = null; if (sumCase_ == 11) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.App.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 11; break; } case 98: { com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder subBuilder = null; if (sumCase_ == 12) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 12; break; } case 106: { com.daml.daml_lf_dev.DamlLf1.Expr.Abs.Builder subBuilder = null; if (sumCase_ == 13) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.Abs.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 13; break; } case 114: { com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.Builder subBuilder = null; if (sumCase_ == 14) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 14; break; } case 122: { com.daml.daml_lf_dev.DamlLf1.Case.Builder subBuilder = null; if (sumCase_ == 15) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Case) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Case.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Case) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 15; break; } case 130: { com.daml.daml_lf_dev.DamlLf1.Block.Builder subBuilder = null; if (sumCase_ == 16) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Block) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Block) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 16; break; } case 138: { com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder subBuilder = null; if (sumCase_ == 17) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.Nil.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 17; break; } case 146: { com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder subBuilder = null; if (sumCase_ == 18) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.Cons.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 18; break; } case 162: { com.daml.daml_lf_dev.DamlLf1.Update.Builder subBuilder = null; if (sumCase_ == 20) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 20; break; } case 170: { com.daml.daml_lf_dev.DamlLf1.Scenario.Builder subBuilder = null; if (sumCase_ == 21) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Scenario) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Scenario.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Scenario) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 21; break; } case 178: { com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder subBuilder = null; if (sumCase_ == 22) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 22; break; } case 186: { com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder subBuilder = null; if (sumCase_ == 23) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 23; break; } case 202: { com.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 210: { com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder subBuilder = null; if (sumCase_ == 26) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 26; break; } case 218: { com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder subBuilder = null; if (sumCase_ == 27) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 27; break; } case 226: { com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder subBuilder = null; if (sumCase_ == 28) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 28; break; } case 232: { sum_ = input.readInt32(); sumCase_ = 29; break; } case 242: { com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.Builder subBuilder = null; if (sumCase_ == 30) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 30; break; } case 250: { com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.Builder subBuilder = null; if (sumCase_ == 31) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 31; break; } case 258: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (sumCase_ == 32) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Type) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Type) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 32; break; } case 266: { com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder subBuilder = null; if (sumCase_ == 33) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 33; break; } case 274: { com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder subBuilder = null; if (sumCase_ == 34) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 34; break; } case 282: { com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder subBuilder = null; if (sumCase_ == 35) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.Throw.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 35; break; } case 290: { com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder subBuilder = null; if (sumCase_ == 36) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 36; break; } case 298: { com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder subBuilder = null; if (sumCase_ == 37) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 37; break; } case 306: { com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder subBuilder = null; if (sumCase_ == 38) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 38; break; } case 314: { com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder subBuilder = null; if (sumCase_ == 39) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 39; break; } case 322: { com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder subBuilder = null; if (sumCase_ == 40) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 40; break; } case 330: { com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder subBuilder = null; if (sumCase_ == 41) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 41; break; } case 338: { com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder subBuilder = null; if (sumCase_ == 42) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 42; break; } case 346: { com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder subBuilder = null; if (sumCase_ == 43) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 43; break; } case 354: { com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder subBuilder = null; if (sumCase_ == 44) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 44; break; } case 362: { com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder subBuilder = null; if (sumCase_ == 45) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 45; break; } case 79994: { com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder subBuilder = null; if (sumCase_ == 9999) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 9999; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.class, com.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon(); /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ java.util.List getFieldsList(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ com.daml.daml_lf_dev.DamlLf1.FieldWithExpr getFields(int index); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ int getFieldsCount(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ java.util.List getFieldsOrBuilderList(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder.class); } public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr getFields(int index) { return fields_.get(index); } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.RecCon other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecCon build() { com.daml.daml_lf_dev.DamlLf1.Expr.RecCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecCon buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.RecCon result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.RecCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.RecCon other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithExpr, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithExprOrBuilder> fieldsBuilder_; /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields(com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields( com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 2; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithExpr, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithExprOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithExpr, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.RecCon(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon(); /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3; * @return Whether the record field is set. */ boolean hasRecord(); /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3; * @return The record. */ com.daml.daml_lf_dev.DamlLf1.Expr getRecord(); /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getRecordOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (record_ != null) { subBuilder = record_.toBuilder(); } record_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(record_); record_ = subBuilder.buildPartial(); } break; } case 32: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.class, com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(2), FIELD_INTERNED_STR(4), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being projected.
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELD_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 4; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 4) { return (java.lang.Integer) field_; } return 0; } public static final int RECORD_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr record_; /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return record_ != null; } /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getRecord() { return record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } /** *
       * projected expression
       * 
* * .daml_lf_1.Expr record = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.RecProj other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.class, com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProj getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProj build() { com.daml.daml_lf_dev.DamlLf1.Expr.RecProj result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProj buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.RecProj result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.RecProj)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.RecProj other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 2) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 4; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4; * @return The 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; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 4; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 4) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr record_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> recordBuilder_; /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; * @return Whether the record field is set. */ public boolean hasRecord() { return recordBuilder_ != null || record_ != null; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; * @return The record. */ public com.daml.daml_lf_dev.DamlLf1.Expr getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; */ public Builder setRecord(com.daml.daml_lf_dev.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; */ public Builder setRecord( com.daml.daml_lf_dev.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; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (recordBuilder_ == null) { if (record_ != null) { record_ = com.daml.daml_lf_dev.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; */ public Builder clearRecord() { if (recordBuilder_ == null) { record_ = null; onChanged(); } else { record_ = null; recordBuilder_ = null; } return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getRecordBuilder() { onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecProj DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.RecProj(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon(); /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 5; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 5; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3; * @return Whether the record field is set. */ boolean hasRecord(); /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3; * @return The record. */ com.daml.daml_lf_dev.DamlLf1.Expr getRecord(); /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getRecordOrBuilder(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4; * @return Whether the update field is set. */ boolean hasUpdate(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4; * @return The update. */ com.daml.daml_lf_dev.DamlLf1.Expr getUpdate(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getUpdateOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (record_ != null) { subBuilder = record_.toBuilder(); } record_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(record_); record_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(update_); update_ = subBuilder.buildPartial(); } break; } case 40: { field_ = input.readInt32(); fieldCase_ = 5; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.class, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(2), FIELD_INTERNED_STR(5), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being updated
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELD_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 5; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 5; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 5) { return (java.lang.Integer) field_; } return 0; } public static final int RECORD_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr record_; /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return record_ != null; } /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getRecord() { return record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } /** *
       * Actual record being updated
       * 
* * .daml_lf_1.Expr record = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getRecordOrBuilder() { return getRecord(); } public static final int UPDATE_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr update_; /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return update_ != null; } /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getUpdate() { return update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_1.Expr update = 4; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.class, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd build() { com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 2) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 5; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 5; * @return The 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; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 5; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 5; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 5) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr record_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> recordBuilder_; /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; * @return Whether the record field is set. */ public boolean hasRecord() { return recordBuilder_ != null || record_ != null; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; * @return The record. */ public com.daml.daml_lf_dev.DamlLf1.Expr getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; */ public Builder setRecord(com.daml.daml_lf_dev.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; */ public Builder setRecord( com.daml.daml_lf_dev.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; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (recordBuilder_ == null) { if (record_ != null) { record_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getRecordBuilder() { onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getRecord(), getParentForChildren(), isClean()); record_ = null; } return recordBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> updateBuilder_; /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4; * @return Whether the update field is set. */ public boolean hasUpdate() { return updateBuilder_ != null || update_ != null; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4; * @return The update. */ public com.daml.daml_lf_dev.DamlLf1.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4; */ public Builder setUpdate(com.daml.daml_lf_dev.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; */ public Builder setUpdate( com.daml.daml_lf_dev.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; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getUpdateBuilder() { onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.RecUpd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon(); /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2; * @return Whether the variantConStr field is set. */ boolean hasVariantConStr(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2; * @return The variantConStr. */ java.lang.String getVariantConStr(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2; * @return The bytes for variantConStr. */ com.google.protobuf.ByteString getVariantConStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 4; * @return Whether the variantConInternedStr field is set. */ boolean hasVariantConInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 4; * @return The variantConInternedStr. */ int getVariantConInternedStr(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3; * @return Whether the variantArg field is set. */ boolean hasVariantArg(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3; * @return The variantArg. */ com.daml.daml_lf_dev.DamlLf1.Expr getVariantArg(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getVariantArgOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (variantArg_ != null) { subBuilder = variantArg_.toBuilder(); } variantArg_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(variantArg_); variantArg_ = subBuilder.buildPartial(); } break; } case 32: { variantCon_ = input.readInt32(); variantConCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder.class); } private int variantConCase_ = 0; private java.lang.Object variantCon_; public enum VariantConCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VARIANT_CON_STR(2), VARIANT_CON_INTERNED_STR(4), VARIANTCON_NOT_SET(0); private final int value; private VariantConCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the variant being constructed
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; * @return Whether the variantConStr field is set. */ public boolean hasVariantConStr() { return variantConCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string variant_con_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the variantConInternedStr field is set. */ @java.lang.Override public boolean hasVariantConInternedStr() { return variantConCase_ == 4; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 4; * @return The variantConInternedStr. */ @java.lang.Override public int getVariantConInternedStr() { if (variantConCase_ == 4) { return (java.lang.Integer) variantCon_; } return 0; } public static final int VARIANT_ARG_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr variantArg_; /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3; * @return Whether the variantArg field is set. */ @java.lang.Override public boolean hasVariantArg() { return variantArg_ != null; } /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3; * @return The variantArg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getVariantArg() { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : variantArg_; } /** *
       * Argument of the variant.
       * 
* * .daml_lf_1.Expr variant_arg = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon build() { com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2; * @return Whether the variantConStr field is set. */ @java.lang.Override public boolean hasVariantConStr() { return variantConCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2; * @return The variantConStr. */ @java.lang.Override 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; * @return The bytes for variantConStr. */ @java.lang.Override 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; * @param value The variantConStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVariantConStr() { if (variantConCase_ == 2) { variantConCase_ = 0; variantCon_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_con_str = 2; * @param value The bytes for variantConStr to set. * @return This builder for chaining. */ 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; * @return Whether the variantConInternedStr field is set. */ public boolean hasVariantConInternedStr() { return variantConCase_ == 4; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 4; * @return The 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; * @param value The variantConInternedStr to set. * @return This builder for chaining. */ public Builder setVariantConInternedStr(int value) { variantConCase_ = 4; variantCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 4; * @return This builder for chaining. */ public Builder clearVariantConInternedStr() { if (variantConCase_ == 4) { variantConCase_ = 0; variantCon_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr variantArg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> variantArgBuilder_; /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; * @return Whether the variantArg field is set. */ public boolean hasVariantArg() { return variantArgBuilder_ != null || variantArg_ != null; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; * @return The variantArg. */ public com.daml.daml_lf_dev.DamlLf1.Expr getVariantArg() { if (variantArgBuilder_ == null) { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : variantArg_; } else { return variantArgBuilder_.getMessage(); } } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; */ public Builder setVariantArg(com.daml.daml_lf_dev.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; */ public Builder setVariantArg( com.daml.daml_lf_dev.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; */ public Builder mergeVariantArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (variantArgBuilder_ == null) { if (variantArg_ != null) { variantArg_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getVariantArgBuilder() { onChanged(); return getVariantArgFieldBuilder().getBuilder(); } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getVariantArgOrBuilder() { if (variantArgBuilder_ != null) { return variantArgBuilder_.getMessageOrBuilder(); } else { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : variantArg_; } } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getVariantArgFieldBuilder() { if (variantArgBuilder_ == null) { variantArgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.VariantCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2; * @return Whether the enumConStr field is set. */ boolean hasEnumConStr(); /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2; * @return The enumConStr. */ java.lang.String getEnumConStr(); /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2; * @return The bytes for enumConStr. */ com.google.protobuf.ByteString getEnumConStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 3; * @return Whether the enumConInternedStr field is set. */ boolean hasEnumConInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 3; * @return The enumConInternedStr. */ int getEnumConInternedStr(); public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.EnumConCase getEnumConCase(); } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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: { enumCon_ = input.readInt32(); enumConCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder.class); } private int enumConCase_ = 0; private java.lang.Object enumCon_; public enum EnumConCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENUM_CON_STR(2), ENUM_CON_INTERNED_STR(3), ENUMCON_NOT_SET(0); private final int value; private EnumConCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.TypeConName tycon_; /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_1.TypeConName tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; * @return Whether the enumConStr field is set. */ public boolean hasEnumConStr() { return enumConCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string enum_con_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the enumConInternedStr field is set. */ @java.lang.Override public boolean hasEnumConInternedStr() { return enumConCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 3; * @return The enumConInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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')
       * 
* * 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.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon build() { com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> tyconBuilder_; /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2; * @return Whether the enumConStr field is set. */ @java.lang.Override public boolean hasEnumConStr() { return enumConCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2; * @return The enumConStr. */ @java.lang.Override 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; * @return The bytes for enumConStr. */ @java.lang.Override 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; * @param value The enumConStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearEnumConStr() { if (enumConCase_ == 2) { enumConCase_ = 0; enumCon_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string enum_con_str = 2; * @param value The bytes for enumConStr to set. * @return This builder for chaining. */ 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; * @return Whether the enumConInternedStr field is set. */ public boolean hasEnumConInternedStr() { return enumConCase_ == 3; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 3; * @return The 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; * @param value The enumConInternedStr to set. * @return This builder for chaining. */ public Builder setEnumConInternedStr(int value) { enumConCase_ = 3; enumCon_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.EnumCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.StructCon) com.google.protobuf.MessageOrBuilder { /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ java.util.List getFieldsList(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ com.daml.daml_lf_dev.DamlLf1.FieldWithExpr getFields(int index); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ int getFieldsCount(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ java.util.List getFieldsOrBuilderList(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ com.daml.daml_lf_dev.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder( int index); } /** *
     * Struct Construction ('ExpStructCon')
     * 
* * Protobuf type {@code daml_lf_1.Expr.StructCon} */ public static final class StructCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.StructCon) StructConOrBuilder { private static final long serialVersionUID = 0L; // Use StructCon.newBuilder() to construct. private StructCon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructCon() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructCon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StructCon( 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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.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; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr getFields(int index) { return fields_.get(index); } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.StructCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.StructCon other = (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) 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.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon 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; } /** *
       * Struct Construction ('ExpStructCon')
       * 
* * Protobuf type {@code daml_lf_1.Expr.StructCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.StructCon) com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.class, com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructCon build() { com.daml.daml_lf_dev.DamlLf1.Expr.StructCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructCon buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.StructCon result = new com.daml.daml_lf_dev.DamlLf1.Expr.StructCon(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.daml.daml_lf_dev.DamlLf1.Expr.StructCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.StructCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.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.daml.daml_lf_dev.DamlLf1.Expr.StructCon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) 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.daml.daml_lf_dev.DamlLf1.FieldWithExpr, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithExprOrBuilder> fieldsBuilder_; /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields(com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields( com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_1.FieldWithExpr fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithExpr, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithExprOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithExpr, com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.Builder, com.daml.daml_lf_dev.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.StructCon) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.StructCon) private static final com.daml.daml_lf_dev.DamlLf1.Expr.StructCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.StructCon(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructCon getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructCon parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StructCon(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.daml.daml_lf_dev.DamlLf1.Expr.StructCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructProjOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.StructProj) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * struct to be projected.
       * 
* * .daml_lf_1.Expr struct = 2; * @return Whether the struct field is set. */ boolean hasStruct(); /** *
       * struct to be projected.
       * 
* * .daml_lf_1.Expr struct = 2; * @return The struct. */ com.daml.daml_lf_dev.DamlLf1.Expr getStruct(); /** *
       * struct to be projected.
       * 
* * .daml_lf_1.Expr struct = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getStructOrBuilder(); public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.FieldCase getFieldCase(); } /** *
     * Struct Projection ('ExpStructProj')
     * 
* * Protobuf type {@code daml_lf_1.Expr.StructProj} */ public static final class StructProj extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.StructProj) StructProjOrBuilder { private static final long serialVersionUID = 0L; // Use StructProj.newBuilder() to construct. private StructProj(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructProj() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructProj(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StructProj( 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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (struct_ != null) { subBuilder = struct_.toBuilder(); } struct_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(struct_); struct_ = subBuilder.buildPartial(); } break; } case 24: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.class, com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
       * *Must be a valid Identifier*
       * 
* * string field_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int STRUCT_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr struct_; /** *
       * struct to be projected.
       * 
* * .daml_lf_1.Expr struct = 2; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return struct_ != null; } /** *
       * struct to be projected.
       * 
* * .daml_lf_1.Expr struct = 2; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getStruct() { return struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } /** *
       * struct to be projected.
       * 
* * .daml_lf_1.Expr struct = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getStructOrBuilder() { return getStruct(); } 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 (struct_ != null) { output.writeMessage(2, getStruct()); } 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 (struct_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStruct()); } 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.daml.daml_lf_dev.DamlLf1.Expr.StructProj)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.StructProj other = (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) obj; if (hasStruct() != other.hasStruct()) return false; if (hasStruct()) { if (!getStruct() .equals(other.getStruct())) 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 (hasStruct()) { hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().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.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj 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; } /** *
       * Struct Projection ('ExpStructProj')
       * 
* * Protobuf type {@code daml_lf_1.Expr.StructProj} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.StructProj) com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.class, com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.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 (structBuilder_ == null) { struct_ = null; } else { struct_ = null; structBuilder_ = null; } fieldCase_ = 0; field_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj build() { com.daml.daml_lf_dev.DamlLf1.Expr.StructProj result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.StructProj result = new com.daml.daml_lf_dev.DamlLf1.Expr.StructProj(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 3) { result.field_ = field_; } if (structBuilder_ == null) { result.struct_ = struct_; } else { result.struct_ = structBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.StructProj) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.StructProj)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance()) return this; if (other.hasStruct()) { mergeStruct(other.getStruct()); } 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.daml.daml_lf_dev.DamlLf1.Expr.StructProj parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) 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; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid Identifier*
         * 
* * string field_str = 1; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3; * @return The 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; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr struct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> structBuilder_; /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; * @return Whether the struct field is set. */ public boolean hasStruct() { return structBuilder_ != null || struct_ != null; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; * @return The struct. */ public com.daml.daml_lf_dev.DamlLf1.Expr getStruct() { if (structBuilder_ == null) { return struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } else { return structBuilder_.getMessage(); } } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder setStruct(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } struct_ = value; onChanged(); } else { structBuilder_.setMessage(value); } return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder setStruct( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (structBuilder_ == null) { struct_ = builderForValue.build(); onChanged(); } else { structBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder mergeStruct(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (structBuilder_ == null) { if (struct_ != null) { struct_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(struct_).mergeFrom(value).buildPartial(); } else { struct_ = value; } onChanged(); } else { structBuilder_.mergeFrom(value); } return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder clearStruct() { if (structBuilder_ == null) { struct_ = null; onChanged(); } else { struct_ = null; structBuilder_ = null; } return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getStructBuilder() { onChanged(); return getStructFieldBuilder().getBuilder(); } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getStructOrBuilder() { if (structBuilder_ != null) { return structBuilder_.getMessageOrBuilder(); } else { return struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getStruct(), getParentForChildren(), isClean()); struct_ = null; } return structBuilder_; } @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.StructProj) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.StructProj) private static final com.daml.daml_lf_dev.DamlLf1.Expr.StructProj DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.StructProj(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructProj getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructProj parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StructProj(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.daml.daml_lf_dev.DamlLf1.Expr.StructProj getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructUpdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.StructUpd) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * Actual struct being updated.
       * 
* * .daml_lf_1.Expr struct = 2; * @return Whether the struct field is set. */ boolean hasStruct(); /** *
       * Actual struct being updated.
       * 
* * .daml_lf_1.Expr struct = 2; * @return The struct. */ com.daml.daml_lf_dev.DamlLf1.Expr getStruct(); /** *
       * Actual struct being updated.
       * 
* * .daml_lf_1.Expr struct = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getStructOrBuilder(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3; * @return Whether the update field is set. */ boolean hasUpdate(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3; * @return The update. */ com.daml.daml_lf_dev.DamlLf1.Expr getUpdate(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getUpdateOrBuilder(); public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.FieldCase getFieldCase(); } /** *
     * Struct update ('ExpTuplUpdate')
     * 
* * Protobuf type {@code daml_lf_1.Expr.StructUpd} */ public static final class StructUpd extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.StructUpd) StructUpdOrBuilder { private static final long serialVersionUID = 0L; // Use StructUpd.newBuilder() to construct. private StructUpd(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructUpd() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructUpd(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StructUpd( 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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (struct_ != null) { subBuilder = struct_.toBuilder(); } struct_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(struct_); struct_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(update_); update_ = subBuilder.buildPartial(); } break; } case 32: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.class, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(1), FIELD_INTERNED_STR(4), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
       * *Must be a valid identifier*.
       * 
* * string field_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 4; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 4) { return (java.lang.Integer) field_; } return 0; } public static final int STRUCT_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr struct_; /** *
       * Actual struct being updated.
       * 
* * .daml_lf_1.Expr struct = 2; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return struct_ != null; } /** *
       * Actual struct being updated.
       * 
* * .daml_lf_1.Expr struct = 2; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getStruct() { return struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } /** *
       * Actual struct being updated.
       * 
* * .daml_lf_1.Expr struct = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getStructOrBuilder() { return getStruct(); } public static final int UPDATE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr update_; /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return update_ != null; } /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getUpdate() { return update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_1.Expr update = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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 (struct_ != null) { output.writeMessage(2, getStruct()); } 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 (struct_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStruct()); } 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.daml.daml_lf_dev.DamlLf1.Expr.StructUpd)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd other = (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) obj; if (hasStruct() != other.hasStruct()) return false; if (hasStruct()) { if (!getStruct() .equals(other.getStruct())) 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 (hasStruct()) { hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().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.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd 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; } /** *
       * Struct update ('ExpTuplUpdate')
       * 
* * Protobuf type {@code daml_lf_1.Expr.StructUpd} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.StructUpd) com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.class, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.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 (structBuilder_ == null) { struct_ = null; } else { struct_ = null; structBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd build() { com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd result = new com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd(this); if (fieldCase_ == 1) { result.field_ = field_; } if (fieldCase_ == 4) { result.field_ = field_; } if (structBuilder_ == null) { result.struct_ = struct_; } else { result.struct_ = structBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance()) return this; if (other.hasStruct()) { mergeStruct(other.getStruct()); } 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.daml.daml_lf_dev.DamlLf1.Expr.StructUpd parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) 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; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*.
         * 
* * string field_str = 1; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 4; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4; * @return The 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; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 4; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 4) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr struct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> structBuilder_; /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; * @return Whether the struct field is set. */ public boolean hasStruct() { return structBuilder_ != null || struct_ != null; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; * @return The struct. */ public com.daml.daml_lf_dev.DamlLf1.Expr getStruct() { if (structBuilder_ == null) { return struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } else { return structBuilder_.getMessage(); } } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder setStruct(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } struct_ = value; onChanged(); } else { structBuilder_.setMessage(value); } return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder setStruct( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (structBuilder_ == null) { struct_ = builderForValue.build(); onChanged(); } else { structBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder mergeStruct(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (structBuilder_ == null) { if (struct_ != null) { struct_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(struct_).mergeFrom(value).buildPartial(); } else { struct_ = value; } onChanged(); } else { structBuilder_.mergeFrom(value); } return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder clearStruct() { if (structBuilder_ == null) { struct_ = null; onChanged(); } else { struct_ = null; structBuilder_ = null; } return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getStructBuilder() { onChanged(); return getStructFieldBuilder().getBuilder(); } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getStructOrBuilder() { if (structBuilder_ != null) { return structBuilder_.getMessageOrBuilder(); } else { return struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getStruct(), getParentForChildren(), isClean()); struct_ = null; } return structBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> updateBuilder_; /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3; * @return Whether the update field is set. */ public boolean hasUpdate() { return updateBuilder_ != null || update_ != null; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3; * @return The update. */ public com.daml.daml_lf_dev.DamlLf1.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3; */ public Builder setUpdate(com.daml.daml_lf_dev.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; */ public Builder setUpdate( com.daml.daml_lf_dev.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; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getUpdateBuilder() { onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.StructUpd) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.StructUpd) private static final com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructUpd parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StructUpd(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.daml.daml_lf_dev.DamlLf1.Expr.StructUpd 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; * @return Whether the fun field is set. */ boolean hasFun(); /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1; * @return The fun. */ com.daml.daml_lf_dev.DamlLf1.Expr getFun(); /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getFunOrBuilder(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ java.util.List getArgsList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ com.daml.daml_lf_dev.DamlLf1.Expr getArgs(int index); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ int getArgsCount(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (fun_ != null) { subBuilder = fun_.toBuilder(); } fun_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_App_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_App_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.App.class, com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder.class); } public static final int FUN_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Expr fun_; /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1; * @return Whether the fun field is set. */ @java.lang.Override public boolean hasFun() { return fun_ != null; } /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1; * @return The fun. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getFun() { return fun_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : fun_; } /** *
       * Function
       * 
* * .daml_lf_1.Expr fun = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getArgs(int index) { return args_.get(index); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.App other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.App parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.App parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_App_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_App_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.App.class, com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_App_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.App getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.App build() { com.daml.daml_lf_dev.DamlLf1.Expr.App result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.App buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.App result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.App)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.App other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.App) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Expr fun_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> funBuilder_; /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; * @return Whether the fun field is set. */ public boolean hasFun() { return funBuilder_ != null || fun_ != null; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; * @return The fun. */ public com.daml.daml_lf_dev.DamlLf1.Expr getFun() { if (funBuilder_ == null) { return fun_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : fun_; } else { return funBuilder_.getMessage(); } } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public Builder setFun(com.daml.daml_lf_dev.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; */ public Builder setFun( com.daml.daml_lf_dev.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; */ public Builder mergeFun(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (funBuilder_ == null) { if (fun_ != null) { fun_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(fun_).mergeFrom(value).buildPartial(); } else { fun_ = value; } onChanged(); } else { funBuilder_.mergeFrom(value); } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public Builder clearFun() { if (funBuilder_ == null) { fun_ = null; onChanged(); } else { fun_ = null; funBuilder_ = null; } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getFunBuilder() { onChanged(); return getFunFieldBuilder().getBuilder(); } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getFunOrBuilder() { if (funBuilder_ != null) { return funBuilder_.getMessageOrBuilder(); } else { return fun_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : fun_; } } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getFunFieldBuilder() { if (funBuilder_ == null) { funBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> argsBuilder_; /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder setArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs(com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ public Builder addArgs( com.daml.daml_lf_dev.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; */ public Builder addArgs( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.App DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.App(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ java.util.List getTypesList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ com.daml.daml_lf_dev.DamlLf1.Type getTypes(int index); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ int getTypesCount(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ java.util.List getTypesOrBuilderList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.class, com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder.class); } public static final int EXPR_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Polymorphic expression
       * 
* * .daml_lf_1.Expr expr = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getTypesList() { return types_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ @java.lang.Override public java.util.List getTypesOrBuilderList() { return types_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ @java.lang.Override public int getTypesCount() { return types_.size(); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getTypes(int index) { return types_.get(index); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Type types = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.TyApp other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.class, com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyApp_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyApp getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyApp build() { com.daml.daml_lf_dev.DamlLf1.Expr.TyApp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyApp buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.TyApp result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.TyApp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.TyApp other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.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; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.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; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typesBuilder_; /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setTypes( int index, com.daml.daml_lf_dev.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; */ public Builder setTypes( int index, com.daml.daml_lf_dev.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; */ public Builder addTypes(com.daml.daml_lf_dev.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; */ public Builder addTypes( int index, com.daml.daml_lf_dev.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; */ public Builder addTypes( com.daml.daml_lf_dev.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; */ public Builder addTypes( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addTypesBuilder() { return getTypesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addTypesBuilder( int index) { return getTypesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Type types = 2; */ public java.util.List getTypesBuilderList() { return getTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypesFieldBuilder() { if (typesBuilder_ == null) { typesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyApp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.TyApp(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; */ java.util.List getParamList(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ com.daml.daml_lf_dev.DamlLf1.VarWithType getParam(int index); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ int getParamCount(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ java.util.List getParamOrBuilderList(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getParamOrBuilder( int index); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType.parser(), extensionRegistry)); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Abs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Abs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Abs.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getParamList() { return param_; } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ @java.lang.Override public java.util.List getParamOrBuilderList() { return param_; } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ @java.lang.Override public int getParamCount() { return param_.size(); } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.VarWithType param = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getParamOrBuilder( int index) { return param_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.Abs other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Abs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Abs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Abs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Abs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Abs.class, com.daml.daml_lf_dev.DamlLf1.Expr.Abs.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Abs_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Abs getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Abs build() { com.daml.daml_lf_dev.DamlLf1.Expr.Abs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Abs buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.Abs result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Abs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.Abs other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder> paramBuilder_; /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setParam( int index, com.daml.daml_lf_dev.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; */ public Builder setParam( int index, com.daml.daml_lf_dev.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; */ public Builder addParam(com.daml.daml_lf_dev.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; */ public Builder addParam( int index, com.daml.daml_lf_dev.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; */ public Builder addParam( com.daml.daml_lf_dev.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; */ public Builder addParam( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder addParamBuilder() { return getParamFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance()); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1; */ public com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder addParamBuilder( int index) { return getParamFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance()); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.VarWithType param = 1; */ public java.util.List getParamBuilderList() { return getParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder>( param_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.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; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.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; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Abs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.Abs(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; */ java.util.List getParamList(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getParam(int index); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ int getParamCount(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ java.util.List getParamOrBuilderList(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getParamOrBuilder( int index); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getParamList() { return param_; } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ @java.lang.Override public java.util.List getParamOrBuilderList() { return param_; } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ @java.lang.Override public int getParamCount() { return param_.size(); } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getParamOrBuilder( int index) { return param_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * Abstracted value
       * 
* * .daml_lf_1.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.class, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_TyAbs_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs build() { com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> paramBuilder_; /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setParam( int index, com.daml.daml_lf_dev.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; */ public Builder setParam( int index, com.daml.daml_lf_dev.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; */ public Builder addParam(com.daml.daml_lf_dev.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; */ public Builder addParam( int index, com.daml.daml_lf_dev.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; */ public Builder addParam( com.daml.daml_lf_dev.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; */ public Builder addParam( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addParamBuilder() { return getParamFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addParamBuilder( int index) { return getParamFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.TypeVarWithKind param = 1; */ public java.util.List getParamBuilderList() { return getParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder>( param_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.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; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.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; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.TyAbs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Nil_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Nil_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Nil.class, com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.Nil other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Nil parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Nil parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Nil_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Nil_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Nil.class, com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Nil_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Nil getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Nil build() { com.daml.daml_lf_dev.DamlLf1.Expr.Nil result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Nil buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.Nil result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Nil)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.Nil other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Nil DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.Nil(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ java.util.List getFrontList(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ com.daml.daml_lf_dev.DamlLf1.Expr getFront(int index); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ int getFrontCount(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ java.util.List getFrontOrBuilderList(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getFrontOrBuilder( int index); /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3; * @return Whether the tail field is set. */ boolean hasTail(); /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3; * @return The tail. */ com.daml.daml_lf_dev.DamlLf1.Expr getTail(); /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry)); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (tail_ != null) { subBuilder = tail_.toBuilder(); } tail_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Cons.class, com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the list elements.
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getFrontList() { return front_; } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ @java.lang.Override public java.util.List getFrontOrBuilderList() { return front_; } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ @java.lang.Override public int getFrontCount() { return front_.size(); } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_1.Expr front = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getFrontOrBuilder( int index) { return front_.get(index); } public static final int TAIL_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr tail_; /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3; * @return Whether the tail field is set. */ @java.lang.Override public boolean hasTail() { return tail_ != null; } /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3; * @return The tail. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getTail() { return tail_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tail_; } /** *
       * tail of the list
       * 
* * .daml_lf_1.Expr tail = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.Cons other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Cons parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Cons parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Cons.class, com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Cons_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Cons getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Cons build() { com.daml.daml_lf_dev.DamlLf1.Expr.Cons result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Cons buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.Cons result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Cons)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.Cons other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> frontBuilder_; /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setFront( int index, com.daml.daml_lf_dev.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; */ public Builder setFront( int index, com.daml.daml_lf_dev.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; */ public Builder addFront(com.daml.daml_lf_dev.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; */ public Builder addFront( int index, com.daml.daml_lf_dev.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; */ public Builder addFront( com.daml.daml_lf_dev.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; */ public Builder addFront( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder addFrontBuilder() { return getFrontFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder addFrontBuilder( int index) { return getFrontFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_1.Expr front = 2; */ public java.util.List getFrontBuilderList() { return getFrontFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getFrontFieldBuilder() { if (frontBuilder_ == null) { frontBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( front_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); front_ = null; } return frontBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr tail_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> tailBuilder_; /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; * @return Whether the tail field is set. */ public boolean hasTail() { return tailBuilder_ != null || tail_ != null; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; * @return The tail. */ public com.daml.daml_lf_dev.DamlLf1.Expr getTail() { if (tailBuilder_ == null) { return tail_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tail_; } else { return tailBuilder_.getMessage(); } } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; */ public Builder setTail(com.daml.daml_lf_dev.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; */ public Builder setTail( com.daml.daml_lf_dev.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; */ public Builder mergeTail(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (tailBuilder_ == null) { if (tail_ != null) { tail_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getTailBuilder() { onChanged(); return getTailFieldBuilder().getBuilder(); } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTailOrBuilder() { if (tailBuilder_ != null) { return tailBuilder_.getMessageOrBuilder(); } else { return tail_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tail_; } } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getTailFieldBuilder() { if (tailBuilder_ == null) { tailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Cons DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.Cons(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.class, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.class, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalNone_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone build() { com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.class, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of the element
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * contained value
       * FixMe: renamed to 'value'
       * 
* * .daml_lf_1.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.class, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_OptionalSome_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome build() { com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.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; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ToAny other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAnyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAny_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAny getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAny build() { com.daml.daml_lf_dev.DamlLf1.Expr.ToAny result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAny buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ToAny result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToAny)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ToAny other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.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; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ToAny(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Value of type Any
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.FromAny other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAnyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAny_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAny getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAny build() { com.daml.daml_lf_dev.DamlLf1.Expr.FromAny result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAny buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.FromAny result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromAny)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.FromAny other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ 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; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.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; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.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; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.FromAny(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAny getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToAnyExceptionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ToAnyException) com.google.protobuf.MessageOrBuilder { /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Wrap an exception value in AnyException
     * *Available in versions >= 1.14*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ToAnyException} */ public static final class ToAnyException extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ToAnyException) ToAnyExceptionOrBuilder { private static final long serialVersionUID = 0L; // Use ToAnyException.newBuilder() to construct. private ToAnyException(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ToAnyException() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ToAnyException(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ToAnyException( 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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException other = (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) 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.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException 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 an exception value in AnyException
       * *Available in versions >= 1.14*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ToAnyException} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ToAnyException) com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToAnyException_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException build() { com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException result = new com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException(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.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.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.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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 an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.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; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.ToAnyException) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ToAnyException) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ToAnyException parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ToAnyException(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.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromAnyExceptionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.FromAnyException) com.google.protobuf.MessageOrBuilder { /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Value of type AnyException
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Value of type AnyException
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Value of type AnyException
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Extract the given exception type from AnyException or return None on type-mismatch
     * *Available in versions >= 1.14*
     * 
* * Protobuf type {@code daml_lf_1.Expr.FromAnyException} */ public static final class FromAnyException extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.FromAnyException) FromAnyExceptionOrBuilder { private static final long serialVersionUID = 0L; // Use FromAnyException.newBuilder() to construct. private FromAnyException(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromAnyException() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromAnyException(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FromAnyException( 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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Value of type AnyException
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Value of type AnyException
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Value of type AnyException
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException other = (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) 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.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException 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 exception type from AnyException or return None on type-mismatch
       * *Available in versions >= 1.14*
       * 
* * Protobuf type {@code daml_lf_1.Expr.FromAnyException} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.FromAnyException) com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromAnyException_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException build() { com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException result = new com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException(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.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.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.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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 an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.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 an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.FromAnyException) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.FromAnyException) private static final com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromAnyException parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FromAnyException(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.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ThrowOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.Throw) com.google.protobuf.MessageOrBuilder { /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_1.Type return_type = 1; * @return Whether the returnType field is set. */ boolean hasReturnType(); /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_1.Type return_type = 1; * @return The returnType. */ com.daml.daml_lf_dev.DamlLf1.Type getReturnType(); /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_1.Type return_type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getReturnTypeOrBuilder(); /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_1.Type exception_type = 2; * @return Whether the exceptionType field is set. */ boolean hasExceptionType(); /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_1.Type exception_type = 2; * @return The exceptionType. */ com.daml.daml_lf_dev.DamlLf1.Type getExceptionType(); /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_1.Type exception_type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getExceptionTypeOrBuilder(); /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_1.Expr exception_expr = 3; * @return Whether the exceptionExpr field is set. */ boolean hasExceptionExpr(); /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_1.Expr exception_expr = 3; * @return The exceptionExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExceptionExpr(); /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_1.Expr exception_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExceptionExprOrBuilder(); } /** *
     * Throw an exception.
     * *Available in versions >= 1.14*
     * 
* * Protobuf type {@code daml_lf_1.Expr.Throw} */ public static final class Throw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.Throw) ThrowOrBuilder { private static final long serialVersionUID = 0L; // Use Throw.newBuilder() to construct. private Throw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Throw() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Throw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Throw( 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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (returnType_ != null) { subBuilder = returnType_.toBuilder(); } returnType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(returnType_); returnType_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (exceptionType_ != null) { subBuilder = exceptionType_.toBuilder(); } exceptionType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(exceptionType_); exceptionType_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (exceptionExpr_ != null) { subBuilder = exceptionExpr_.toBuilder(); } exceptionExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(exceptionExpr_); exceptionExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Throw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Throw_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Throw.class, com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder.class); } public static final int RETURN_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type returnType_; /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_1.Type return_type = 1; * @return Whether the returnType field is set. */ @java.lang.Override public boolean hasReturnType() { return returnType_ != null; } /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_1.Type return_type = 1; * @return The returnType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getReturnType() { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_1.Type return_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getReturnTypeOrBuilder() { return getReturnType(); } public static final int EXCEPTION_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Type exceptionType_; /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_1.Type exception_type = 2; * @return Whether the exceptionType field is set. */ @java.lang.Override public boolean hasExceptionType() { return exceptionType_ != null; } /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_1.Type exception_type = 2; * @return The exceptionType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getExceptionType() { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : exceptionType_; } /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_1.Type exception_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getExceptionTypeOrBuilder() { return getExceptionType(); } public static final int EXCEPTION_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr exceptionExpr_; /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_1.Expr exception_expr = 3; * @return Whether the exceptionExpr field is set. */ @java.lang.Override public boolean hasExceptionExpr() { return exceptionExpr_ != null; } /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_1.Expr exception_expr = 3; * @return The exceptionExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExceptionExpr() { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : exceptionExpr_; } /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_1.Expr exception_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExceptionExprOrBuilder() { return getExceptionExpr(); } 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 (returnType_ != null) { output.writeMessage(1, getReturnType()); } if (exceptionType_ != null) { output.writeMessage(2, getExceptionType()); } if (exceptionExpr_ != null) { output.writeMessage(3, getExceptionExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (returnType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReturnType()); } if (exceptionType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExceptionType()); } if (exceptionExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExceptionExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.Throw)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.Throw other = (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) obj; if (hasReturnType() != other.hasReturnType()) return false; if (hasReturnType()) { if (!getReturnType() .equals(other.getReturnType())) return false; } if (hasExceptionType() != other.hasExceptionType()) return false; if (hasExceptionType()) { if (!getExceptionType() .equals(other.getExceptionType())) return false; } if (hasExceptionExpr() != other.hasExceptionExpr()) return false; if (hasExceptionExpr()) { if (!getExceptionExpr() .equals(other.getExceptionExpr())) 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 (hasReturnType()) { hash = (37 * hash) + RETURN_TYPE_FIELD_NUMBER; hash = (53 * hash) + getReturnType().hashCode(); } if (hasExceptionType()) { hash = (37 * hash) + EXCEPTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + getExceptionType().hashCode(); } if (hasExceptionExpr()) { hash = (37 * hash) + EXCEPTION_EXPR_FIELD_NUMBER; hash = (53 * hash) + getExceptionExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.Throw 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; } /** *
       * Throw an exception.
       * *Available in versions >= 1.14*
       * 
* * Protobuf type {@code daml_lf_1.Expr.Throw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.Throw) com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Throw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Throw_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Throw.class, com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.Throw.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 (returnTypeBuilder_ == null) { returnType_ = null; } else { returnType_ = null; returnTypeBuilder_ = null; } if (exceptionTypeBuilder_ == null) { exceptionType_ = null; } else { exceptionType_ = null; exceptionTypeBuilder_ = null; } if (exceptionExprBuilder_ == null) { exceptionExpr_ = null; } else { exceptionExpr_ = null; exceptionExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Throw_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Throw getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Throw build() { com.daml.daml_lf_dev.DamlLf1.Expr.Throw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Throw buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.Throw result = new com.daml.daml_lf_dev.DamlLf1.Expr.Throw(this); if (returnTypeBuilder_ == null) { result.returnType_ = returnType_; } else { result.returnType_ = returnTypeBuilder_.build(); } if (exceptionTypeBuilder_ == null) { result.exceptionType_ = exceptionType_; } else { result.exceptionType_ = exceptionTypeBuilder_.build(); } if (exceptionExprBuilder_ == null) { result.exceptionExpr_ = exceptionExpr_; } else { result.exceptionExpr_ = exceptionExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.Throw) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Throw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.Throw other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance()) return this; if (other.hasReturnType()) { mergeReturnType(other.getReturnType()); } if (other.hasExceptionType()) { mergeExceptionType(other.getExceptionType()); } if (other.hasExceptionExpr()) { mergeExceptionExpr(other.getExceptionExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.Throw parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type returnType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> returnTypeBuilder_; /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; * @return Whether the returnType field is set. */ public boolean hasReturnType() { return returnTypeBuilder_ != null || returnType_ != null; } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; * @return The returnType. */ public com.daml.daml_lf_dev.DamlLf1.Type getReturnType() { if (returnTypeBuilder_ == null) { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } else { return returnTypeBuilder_.getMessage(); } } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public Builder setReturnType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (returnTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } returnType_ = value; onChanged(); } else { returnTypeBuilder_.setMessage(value); } return this; } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public Builder setReturnType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (returnTypeBuilder_ == null) { returnType_ = builderForValue.build(); onChanged(); } else { returnTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public Builder mergeReturnType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (returnTypeBuilder_ == null) { if (returnType_ != null) { returnType_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); } else { returnType_ = value; } onChanged(); } else { returnTypeBuilder_.mergeFrom(value); } return this; } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public Builder clearReturnType() { if (returnTypeBuilder_ == null) { returnType_ = null; onChanged(); } else { returnType_ = null; returnTypeBuilder_ = null; } return this; } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getReturnTypeBuilder() { onChanged(); return getReturnTypeFieldBuilder().getBuilder(); } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getReturnTypeOrBuilder() { if (returnTypeBuilder_ != null) { return returnTypeBuilder_.getMessageOrBuilder(); } else { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getReturnTypeFieldBuilder() { if (returnTypeBuilder_ == null) { returnTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getReturnType(), getParentForChildren(), isClean()); returnType_ = null; } return returnTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Type exceptionType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> exceptionTypeBuilder_; /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; * @return Whether the exceptionType field is set. */ public boolean hasExceptionType() { return exceptionTypeBuilder_ != null || exceptionType_ != null; } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; * @return The exceptionType. */ public com.daml.daml_lf_dev.DamlLf1.Type getExceptionType() { if (exceptionTypeBuilder_ == null) { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : exceptionType_; } else { return exceptionTypeBuilder_.getMessage(); } } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public Builder setExceptionType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (exceptionTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exceptionType_ = value; onChanged(); } else { exceptionTypeBuilder_.setMessage(value); } return this; } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public Builder setExceptionType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (exceptionTypeBuilder_ == null) { exceptionType_ = builderForValue.build(); onChanged(); } else { exceptionTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public Builder mergeExceptionType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (exceptionTypeBuilder_ == null) { if (exceptionType_ != null) { exceptionType_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(exceptionType_).mergeFrom(value).buildPartial(); } else { exceptionType_ = value; } onChanged(); } else { exceptionTypeBuilder_.mergeFrom(value); } return this; } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public Builder clearExceptionType() { if (exceptionTypeBuilder_ == null) { exceptionType_ = null; onChanged(); } else { exceptionType_ = null; exceptionTypeBuilder_ = null; } return this; } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getExceptionTypeBuilder() { onChanged(); return getExceptionTypeFieldBuilder().getBuilder(); } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getExceptionTypeOrBuilder() { if (exceptionTypeBuilder_ != null) { return exceptionTypeBuilder_.getMessageOrBuilder(); } else { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : exceptionType_; } } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getExceptionTypeFieldBuilder() { if (exceptionTypeBuilder_ == null) { exceptionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getExceptionType(), getParentForChildren(), isClean()); exceptionType_ = null; } return exceptionTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr exceptionExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exceptionExprBuilder_; /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; * @return Whether the exceptionExpr field is set. */ public boolean hasExceptionExpr() { return exceptionExprBuilder_ != null || exceptionExpr_ != null; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; * @return The exceptionExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExceptionExpr() { if (exceptionExprBuilder_ == null) { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : exceptionExpr_; } else { return exceptionExprBuilder_.getMessage(); } } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public Builder setExceptionExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exceptionExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exceptionExpr_ = value; onChanged(); } else { exceptionExprBuilder_.setMessage(value); } return this; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public Builder setExceptionExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exceptionExprBuilder_ == null) { exceptionExpr_ = builderForValue.build(); onChanged(); } else { exceptionExprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public Builder mergeExceptionExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exceptionExprBuilder_ == null) { if (exceptionExpr_ != null) { exceptionExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(exceptionExpr_).mergeFrom(value).buildPartial(); } else { exceptionExpr_ = value; } onChanged(); } else { exceptionExprBuilder_.mergeFrom(value); } return this; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public Builder clearExceptionExpr() { if (exceptionExprBuilder_ == null) { exceptionExpr_ = null; onChanged(); } else { exceptionExpr_ = null; exceptionExprBuilder_ = null; } return this; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExceptionExprBuilder() { onChanged(); return getExceptionExprFieldBuilder().getBuilder(); } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExceptionExprOrBuilder() { if (exceptionExprBuilder_ != null) { return exceptionExprBuilder_.getMessageOrBuilder(); } else { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : exceptionExpr_; } } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExceptionExprFieldBuilder() { if (exceptionExprBuilder_ == null) { exceptionExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getExceptionExpr(), getParentForChildren(), isClean()); exceptionExpr_ = null; } return exceptionExprBuilder_; } @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.Throw) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.Throw) private static final com.daml.daml_lf_dev.DamlLf1.Expr.Throw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.Throw(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Throw getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Throw parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Throw(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.daml.daml_lf_dev.DamlLf1.Expr.Throw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ToInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ boolean hasTemplateType(); /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType(); /** * .daml_lf_1.TypeConName template_type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder(); /** * .daml_lf_1.Expr template_expr = 3; * @return Whether the templateExpr field is set. */ boolean hasTemplateExpr(); /** * .daml_lf_1.Expr template_expr = 3; * @return The templateExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getTemplateExpr(); /** * .daml_lf_1.Expr template_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTemplateExprOrBuilder(); } /** *
     * Convert a template payload to an interface.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ToInterface} */ public static final class ToInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ToInterface) ToInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use ToInterface.newBuilder() to construct. private ToInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ToInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ToInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ToInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interfaceType_ != null) { subBuilder = interfaceType_.toBuilder(); } interfaceType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceType_); interfaceType_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (templateType_ != null) { subBuilder = templateType_.toBuilder(); } templateType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(templateType_); templateType_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (templateExpr_ != null) { subBuilder = templateExpr_.toBuilder(); } templateExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(templateExpr_); templateExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder.class); } public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_1.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return getInterfaceType(); } public static final int TEMPLATE_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.TypeConName templateType_; /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ @java.lang.Override public boolean hasTemplateType() { return templateType_ != null; } /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } /** * .daml_lf_1.TypeConName template_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder() { return getTemplateType(); } public static final int TEMPLATE_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr templateExpr_; /** * .daml_lf_1.Expr template_expr = 3; * @return Whether the templateExpr field is set. */ @java.lang.Override public boolean hasTemplateExpr() { return templateExpr_ != null; } /** * .daml_lf_1.Expr template_expr = 3; * @return The templateExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getTemplateExpr() { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : templateExpr_; } /** * .daml_lf_1.Expr template_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTemplateExprOrBuilder() { return getTemplateExpr(); } 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 (interfaceType_ != null) { output.writeMessage(1, getInterfaceType()); } if (templateType_ != null) { output.writeMessage(2, getTemplateType()); } if (templateExpr_ != null) { output.writeMessage(3, getTemplateExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interfaceType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (templateType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateType()); } if (templateExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTemplateExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.ToInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) obj; if (hasInterfaceType() != other.hasInterfaceType()) return false; if (hasInterfaceType()) { if (!getInterfaceType() .equals(other.getInterfaceType())) return false; } if (hasTemplateType() != other.hasTemplateType()) return false; if (hasTemplateType()) { if (!getTemplateType() .equals(other.getTemplateType())) return false; } if (hasTemplateExpr() != other.hasTemplateExpr()) return false; if (hasTemplateExpr()) { if (!getTemplateExpr() .equals(other.getTemplateExpr())) 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 (hasInterfaceType()) { hash = (37 * hash) + INTERFACE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInterfaceType().hashCode(); } if (hasTemplateType()) { hash = (37 * hash) + TEMPLATE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getTemplateType().hashCode(); } if (hasTemplateExpr()) { hash = (37 * hash) + TEMPLATE_EXPR_FIELD_NUMBER; hash = (53 * hash) + getTemplateExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface 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; } /** *
       * Convert a template payload to an interface.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ToInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ToInterface) com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.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 (interfaceTypeBuilder_ == null) { interfaceType_ = null; } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } if (templateTypeBuilder_ == null) { templateType_ = null; } else { templateType_ = null; templateTypeBuilder_ = null; } if (templateExprBuilder_ == null) { templateExpr_ = null; } else { templateExpr_ = null; templateExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface(this); if (interfaceTypeBuilder_ == null) { result.interfaceType_ = interfaceType_; } else { result.interfaceType_ = interfaceTypeBuilder_.build(); } if (templateTypeBuilder_ == null) { result.templateType_ = templateType_; } else { result.templateType_ = templateTypeBuilder_.build(); } if (templateExprBuilder_ == null) { result.templateExpr_ = templateExpr_; } else { result.templateExpr_ = templateExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance()) return this; if (other.hasInterfaceType()) { mergeInterfaceType(other.getInterfaceType()); } if (other.hasTemplateType()) { mergeTemplateType(other.getTemplateType()); } if (other.hasTemplateExpr()) { mergeTemplateExpr(other.getTemplateExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.ToInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return interfaceTypeBuilder_ != null || interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; onChanged(); } else { interfaceTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); onChanged(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (interfaceType_ != null) { interfaceType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interfaceType_).mergeFrom(value).buildPartial(); } else { interfaceType_ = value; } onChanged(); } else { interfaceTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { if (interfaceTypeBuilder_ == null) { interfaceType_ = null; onChanged(); } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_1.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.TypeConName templateType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateTypeBuilder_; /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ public boolean hasTemplateType() { return templateTypeBuilder_ != null || templateType_ != null; } /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType() { if (templateTypeBuilder_ == null) { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } else { return templateTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder setTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateType_ = value; onChanged(); } else { templateTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder setTemplateType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (templateTypeBuilder_ == null) { templateType_ = builderForValue.build(); onChanged(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (templateType_ != null) { templateType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(templateType_).mergeFrom(value).buildPartial(); } else { templateType_ = value; } onChanged(); } else { templateTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder clearTemplateType() { if (templateTypeBuilder_ == null) { templateType_ = null; onChanged(); } else { templateType_ = null; templateTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateTypeBuilder() { onChanged(); return getTemplateTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder() { if (templateTypeBuilder_ != null) { return templateTypeBuilder_.getMessageOrBuilder(); } else { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } } /** * .daml_lf_1.TypeConName template_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateTypeFieldBuilder() { if (templateTypeBuilder_ == null) { templateTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplateType(), getParentForChildren(), isClean()); templateType_ = null; } return templateTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr templateExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> templateExprBuilder_; /** * .daml_lf_1.Expr template_expr = 3; * @return Whether the templateExpr field is set. */ public boolean hasTemplateExpr() { return templateExprBuilder_ != null || templateExpr_ != null; } /** * .daml_lf_1.Expr template_expr = 3; * @return The templateExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getTemplateExpr() { if (templateExprBuilder_ == null) { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : templateExpr_; } else { return templateExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr template_expr = 3; */ public Builder setTemplateExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (templateExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateExpr_ = value; onChanged(); } else { templateExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public Builder setTemplateExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (templateExprBuilder_ == null) { templateExpr_ = builderForValue.build(); onChanged(); } else { templateExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public Builder mergeTemplateExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (templateExprBuilder_ == null) { if (templateExpr_ != null) { templateExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(templateExpr_).mergeFrom(value).buildPartial(); } else { templateExpr_ = value; } onChanged(); } else { templateExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public Builder clearTemplateExpr() { if (templateExprBuilder_ == null) { templateExpr_ = null; onChanged(); } else { templateExpr_ = null; templateExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getTemplateExprBuilder() { onChanged(); return getTemplateExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr template_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTemplateExprOrBuilder() { if (templateExprBuilder_ != null) { return templateExprBuilder_.getMessageOrBuilder(); } else { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : templateExpr_; } } /** * .daml_lf_1.Expr template_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getTemplateExprFieldBuilder() { if (templateExprBuilder_ == null) { templateExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getTemplateExpr(), getParentForChildren(), isClean()); templateExpr_ = null; } return templateExprBuilder_; } @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.ToInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ToInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ToInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ToInterface(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.daml.daml_lf_dev.DamlLf1.Expr.ToInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.FromInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ boolean hasTemplateType(); /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType(); /** * .daml_lf_1.TypeConName template_type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder(); /** * .daml_lf_1.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 3; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Convert an interface back to a template payload if possible.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.FromInterface} */ public static final class FromInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.FromInterface) FromInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use FromInterface.newBuilder() to construct. private FromInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FromInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interfaceType_ != null) { subBuilder = interfaceType_.toBuilder(); } interfaceType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceType_); interfaceType_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (templateType_ != null) { subBuilder = templateType_.toBuilder(); } templateType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(templateType_); templateType_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (interfaceExpr_ != null) { subBuilder = interfaceExpr_.toBuilder(); } interfaceExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceExpr_); interfaceExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder.class); } public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_1.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return getInterfaceType(); } public static final int TEMPLATE_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.TypeConName templateType_; /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ @java.lang.Override public boolean hasTemplateType() { return templateType_ != null; } /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } /** * .daml_lf_1.TypeConName template_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder() { return getTemplateType(); } public static final int INTERFACE_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; /** * .daml_lf_1.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 3; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_1.Expr interface_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { return getInterfaceExpr(); } 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 (interfaceType_ != null) { output.writeMessage(1, getInterfaceType()); } if (templateType_ != null) { output.writeMessage(2, getTemplateType()); } if (interfaceExpr_ != null) { output.writeMessage(3, getInterfaceExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interfaceType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (templateType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateType()); } if (interfaceExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.FromInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) obj; if (hasInterfaceType() != other.hasInterfaceType()) return false; if (hasInterfaceType()) { if (!getInterfaceType() .equals(other.getInterfaceType())) return false; } if (hasTemplateType() != other.hasTemplateType()) return false; if (hasTemplateType()) { if (!getTemplateType() .equals(other.getTemplateType())) return false; } if (hasInterfaceExpr() != other.hasInterfaceExpr()) return false; if (hasInterfaceExpr()) { if (!getInterfaceExpr() .equals(other.getInterfaceExpr())) 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 (hasInterfaceType()) { hash = (37 * hash) + INTERFACE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInterfaceType().hashCode(); } if (hasTemplateType()) { hash = (37 * hash) + TEMPLATE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getTemplateType().hashCode(); } if (hasInterfaceExpr()) { hash = (37 * hash) + INTERFACE_EXPR_FIELD_NUMBER; hash = (53 * hash) + getInterfaceExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface 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; } /** *
       * Convert an interface back to a template payload if possible.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.FromInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.FromInterface) com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.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 (interfaceTypeBuilder_ == null) { interfaceType_ = null; } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } if (templateTypeBuilder_ == null) { templateType_ = null; } else { templateType_ = null; templateTypeBuilder_ = null; } if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface(this); if (interfaceTypeBuilder_ == null) { result.interfaceType_ = interfaceType_; } else { result.interfaceType_ = interfaceTypeBuilder_.build(); } if (templateTypeBuilder_ == null) { result.templateType_ = templateType_; } else { result.templateType_ = templateTypeBuilder_.build(); } if (interfaceExprBuilder_ == null) { result.interfaceExpr_ = interfaceExpr_; } else { result.interfaceExpr_ = interfaceExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance()) return this; if (other.hasInterfaceType()) { mergeInterfaceType(other.getInterfaceType()); } if (other.hasTemplateType()) { mergeTemplateType(other.getTemplateType()); } if (other.hasInterfaceExpr()) { mergeInterfaceExpr(other.getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.FromInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return interfaceTypeBuilder_ != null || interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; onChanged(); } else { interfaceTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); onChanged(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (interfaceType_ != null) { interfaceType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interfaceType_).mergeFrom(value).buildPartial(); } else { interfaceType_ = value; } onChanged(); } else { interfaceTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { if (interfaceTypeBuilder_ == null) { interfaceType_ = null; onChanged(); } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_1.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.TypeConName templateType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateTypeBuilder_; /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ public boolean hasTemplateType() { return templateTypeBuilder_ != null || templateType_ != null; } /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType() { if (templateTypeBuilder_ == null) { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } else { return templateTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder setTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateType_ = value; onChanged(); } else { templateTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder setTemplateType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (templateTypeBuilder_ == null) { templateType_ = builderForValue.build(); onChanged(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (templateType_ != null) { templateType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(templateType_).mergeFrom(value).buildPartial(); } else { templateType_ = value; } onChanged(); } else { templateTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder clearTemplateType() { if (templateTypeBuilder_ == null) { templateType_ = null; onChanged(); } else { templateType_ = null; templateTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateTypeBuilder() { onChanged(); return getTemplateTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder() { if (templateTypeBuilder_ != null) { return templateTypeBuilder_.getMessageOrBuilder(); } else { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } } /** * .daml_lf_1.TypeConName template_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateTypeFieldBuilder() { if (templateTypeBuilder_ == null) { templateTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplateType(), getParentForChildren(), isClean()); templateType_ = null; } return templateTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_1.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return interfaceExprBuilder_ != null || interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 3; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; onChanged(); } else { interfaceExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); onChanged(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (interfaceExpr_ != null) { interfaceExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(interfaceExpr_).mergeFrom(value).buildPartial(); } else { interfaceExpr_ = value; } onChanged(); } else { interfaceExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder clearInterfaceExpr() { if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; onChanged(); } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_1.Expr interface_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getInterfaceExpr(), getParentForChildren(), isClean()); interfaceExpr_ = null; } return interfaceExprBuilder_; } @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.FromInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.FromInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FromInterface(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.daml.daml_lf_dev.DamlLf1.Expr.FromInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnsafeFromInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.UnsafeFromInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ boolean hasTemplateType(); /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType(); /** * .daml_lf_1.TypeConName template_type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder(); /** * .daml_lf_1.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ boolean hasContractIdExpr(); /** * .daml_lf_1.Expr contract_id_expr = 3; * @return The contractIdExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getContractIdExpr(); /** * .daml_lf_1.Expr contract_id_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractIdExprOrBuilder(); /** * .daml_lf_1.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 4; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Convert an interface back to a template payload, or raises WronglyTypedContract if not possible.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.UnsafeFromInterface} */ public static final class UnsafeFromInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.UnsafeFromInterface) UnsafeFromInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use UnsafeFromInterface.newBuilder() to construct. private UnsafeFromInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnsafeFromInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnsafeFromInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UnsafeFromInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interfaceType_ != null) { subBuilder = interfaceType_.toBuilder(); } interfaceType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceType_); interfaceType_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (templateType_ != null) { subBuilder = templateType_.toBuilder(); } templateType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(templateType_); templateType_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (contractIdExpr_ != null) { subBuilder = contractIdExpr_.toBuilder(); } contractIdExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contractIdExpr_); contractIdExpr_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (interfaceExpr_ != null) { subBuilder = interfaceExpr_.toBuilder(); } interfaceExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceExpr_); interfaceExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder.class); } public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_1.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return getInterfaceType(); } public static final int TEMPLATE_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.TypeConName templateType_; /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ @java.lang.Override public boolean hasTemplateType() { return templateType_ != null; } /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } /** * .daml_lf_1.TypeConName template_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder() { return getTemplateType(); } public static final int CONTRACT_ID_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr contractIdExpr_; /** * .daml_lf_1.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ @java.lang.Override public boolean hasContractIdExpr() { return contractIdExpr_ != null; } /** * .daml_lf_1.Expr contract_id_expr = 3; * @return The contractIdExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getContractIdExpr() { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractIdExprOrBuilder() { return getContractIdExpr(); } public static final int INTERFACE_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; /** * .daml_lf_1.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 4; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_1.Expr interface_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { return getInterfaceExpr(); } 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 (interfaceType_ != null) { output.writeMessage(1, getInterfaceType()); } if (templateType_ != null) { output.writeMessage(2, getTemplateType()); } if (contractIdExpr_ != null) { output.writeMessage(3, getContractIdExpr()); } if (interfaceExpr_ != null) { output.writeMessage(4, getInterfaceExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interfaceType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (templateType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateType()); } if (contractIdExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getContractIdExpr()); } if (interfaceExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) obj; if (hasInterfaceType() != other.hasInterfaceType()) return false; if (hasInterfaceType()) { if (!getInterfaceType() .equals(other.getInterfaceType())) return false; } if (hasTemplateType() != other.hasTemplateType()) return false; if (hasTemplateType()) { if (!getTemplateType() .equals(other.getTemplateType())) return false; } if (hasContractIdExpr() != other.hasContractIdExpr()) return false; if (hasContractIdExpr()) { if (!getContractIdExpr() .equals(other.getContractIdExpr())) return false; } if (hasInterfaceExpr() != other.hasInterfaceExpr()) return false; if (hasInterfaceExpr()) { if (!getInterfaceExpr() .equals(other.getInterfaceExpr())) 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 (hasInterfaceType()) { hash = (37 * hash) + INTERFACE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInterfaceType().hashCode(); } if (hasTemplateType()) { hash = (37 * hash) + TEMPLATE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getTemplateType().hashCode(); } if (hasContractIdExpr()) { hash = (37 * hash) + CONTRACT_ID_EXPR_FIELD_NUMBER; hash = (53 * hash) + getContractIdExpr().hashCode(); } if (hasInterfaceExpr()) { hash = (37 * hash) + INTERFACE_EXPR_FIELD_NUMBER; hash = (53 * hash) + getInterfaceExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface 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; } /** *
       * Convert an interface back to a template payload, or raises WronglyTypedContract if not possible.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.UnsafeFromInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.UnsafeFromInterface) com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.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 (interfaceTypeBuilder_ == null) { interfaceType_ = null; } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } if (templateTypeBuilder_ == null) { templateType_ = null; } else { templateType_ = null; templateTypeBuilder_ = null; } if (contractIdExprBuilder_ == null) { contractIdExpr_ = null; } else { contractIdExpr_ = null; contractIdExprBuilder_ = null; } if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface(this); if (interfaceTypeBuilder_ == null) { result.interfaceType_ = interfaceType_; } else { result.interfaceType_ = interfaceTypeBuilder_.build(); } if (templateTypeBuilder_ == null) { result.templateType_ = templateType_; } else { result.templateType_ = templateTypeBuilder_.build(); } if (contractIdExprBuilder_ == null) { result.contractIdExpr_ = contractIdExpr_; } else { result.contractIdExpr_ = contractIdExprBuilder_.build(); } if (interfaceExprBuilder_ == null) { result.interfaceExpr_ = interfaceExpr_; } else { result.interfaceExpr_ = interfaceExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance()) return this; if (other.hasInterfaceType()) { mergeInterfaceType(other.getInterfaceType()); } if (other.hasTemplateType()) { mergeTemplateType(other.getTemplateType()); } if (other.hasContractIdExpr()) { mergeContractIdExpr(other.getContractIdExpr()); } if (other.hasInterfaceExpr()) { mergeInterfaceExpr(other.getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return interfaceTypeBuilder_ != null || interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; onChanged(); } else { interfaceTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); onChanged(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (interfaceType_ != null) { interfaceType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interfaceType_).mergeFrom(value).buildPartial(); } else { interfaceType_ = value; } onChanged(); } else { interfaceTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { if (interfaceTypeBuilder_ == null) { interfaceType_ = null; onChanged(); } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_1.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.TypeConName templateType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateTypeBuilder_; /** * .daml_lf_1.TypeConName template_type = 2; * @return Whether the templateType field is set. */ public boolean hasTemplateType() { return templateTypeBuilder_ != null || templateType_ != null; } /** * .daml_lf_1.TypeConName template_type = 2; * @return The templateType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplateType() { if (templateTypeBuilder_ == null) { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } else { return templateTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder setTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateType_ = value; onChanged(); } else { templateTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder setTemplateType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (templateTypeBuilder_ == null) { templateType_ = builderForValue.build(); onChanged(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (templateType_ != null) { templateType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(templateType_).mergeFrom(value).buildPartial(); } else { templateType_ = value; } onChanged(); } else { templateTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder clearTemplateType() { if (templateTypeBuilder_ == null) { templateType_ = null; onChanged(); } else { templateType_ = null; templateTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateTypeBuilder() { onChanged(); return getTemplateTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateTypeOrBuilder() { if (templateTypeBuilder_ != null) { return templateTypeBuilder_.getMessageOrBuilder(); } else { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } } /** * .daml_lf_1.TypeConName template_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateTypeFieldBuilder() { if (templateTypeBuilder_ == null) { templateTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplateType(), getParentForChildren(), isClean()); templateType_ = null; } return templateTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr contractIdExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> contractIdExprBuilder_; /** * .daml_lf_1.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ public boolean hasContractIdExpr() { return contractIdExprBuilder_ != null || contractIdExpr_ != null; } /** * .daml_lf_1.Expr contract_id_expr = 3; * @return The contractIdExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getContractIdExpr() { if (contractIdExprBuilder_ == null) { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } else { return contractIdExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder setContractIdExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractIdExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdExpr_ = value; onChanged(); } else { contractIdExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder setContractIdExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (contractIdExprBuilder_ == null) { contractIdExpr_ = builderForValue.build(); onChanged(); } else { contractIdExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder mergeContractIdExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractIdExprBuilder_ == null) { if (contractIdExpr_ != null) { contractIdExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(contractIdExpr_).mergeFrom(value).buildPartial(); } else { contractIdExpr_ = value; } onChanged(); } else { contractIdExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder clearContractIdExpr() { if (contractIdExprBuilder_ == null) { contractIdExpr_ = null; onChanged(); } else { contractIdExpr_ = null; contractIdExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getContractIdExprBuilder() { onChanged(); return getContractIdExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractIdExprOrBuilder() { if (contractIdExprBuilder_ != null) { return contractIdExprBuilder_.getMessageOrBuilder(); } else { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } } /** * .daml_lf_1.Expr contract_id_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getContractIdExprFieldBuilder() { if (contractIdExprBuilder_ == null) { contractIdExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getContractIdExpr(), getParentForChildren(), isClean()); contractIdExpr_ = null; } return contractIdExprBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_1.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return interfaceExprBuilder_ != null || interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 4; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; onChanged(); } else { interfaceExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); onChanged(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (interfaceExpr_ != null) { interfaceExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(interfaceExpr_).mergeFrom(value).buildPartial(); } else { interfaceExpr_ = value; } onChanged(); } else { interfaceExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder clearInterfaceExpr() { if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; onChanged(); } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_1.Expr interface_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getInterfaceExpr(), getParentForChildren(), isClean()); interfaceExpr_ = null; } return interfaceExprBuilder_; } @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.UnsafeFromInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.UnsafeFromInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnsafeFromInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UnsafeFromInterface(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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToRequiredInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ToRequiredInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ boolean hasRequiredInterface(); /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface(); /** * .daml_lf_1.TypeConName required_interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder(); /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ boolean hasRequiringInterface(); /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface(); /** * .daml_lf_1.TypeConName requiring_interface = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder(); /** * .daml_lf_1.Expr expr = 3; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_1.Expr expr = 3; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** * .daml_lf_1.Expr expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Upcast from an interface payload to an interface it requires.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ToRequiredInterface} */ public static final class ToRequiredInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ToRequiredInterface) ToRequiredInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use ToRequiredInterface.newBuilder() to construct. private ToRequiredInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ToRequiredInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ToRequiredInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ToRequiredInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (requiredInterface_ != null) { subBuilder = requiredInterface_.toBuilder(); } requiredInterface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiredInterface_); requiredInterface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (requiringInterface_ != null) { subBuilder = requiringInterface_.toBuilder(); } requiringInterface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiringInterface_); requiringInterface_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder.class); } public static final int REQUIRED_INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName requiredInterface_; /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ @java.lang.Override public boolean hasRequiredInterface() { return requiredInterface_ != null; } /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } /** * .daml_lf_1.TypeConName required_interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { return getRequiredInterface(); } public static final int REQUIRING_INTERFACE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.TypeConName requiringInterface_; /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ @java.lang.Override public boolean hasRequiringInterface() { return requiringInterface_ != null; } /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { return getRequiringInterface(); } public static final int EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** * .daml_lf_1.Expr expr = 3; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.Expr expr = 3; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_1.Expr expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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 (requiredInterface_ != null) { output.writeMessage(1, getRequiredInterface()); } if (requiringInterface_ != null) { output.writeMessage(2, getRequiringInterface()); } if (expr_ != null) { output.writeMessage(3, getExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requiredInterface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredInterface()); } if (requiringInterface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequiringInterface()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, 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.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) obj; if (hasRequiredInterface() != other.hasRequiredInterface()) return false; if (hasRequiredInterface()) { if (!getRequiredInterface() .equals(other.getRequiredInterface())) return false; } if (hasRequiringInterface() != other.hasRequiringInterface()) return false; if (hasRequiringInterface()) { if (!getRequiringInterface() .equals(other.getRequiringInterface())) 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 (hasRequiredInterface()) { hash = (37 * hash) + REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getRequiredInterface().hashCode(); } if (hasRequiringInterface()) { hash = (37 * hash) + REQUIRING_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getRequiringInterface().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.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface 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; } /** *
       * Upcast from an interface payload to an interface it requires.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ToRequiredInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ToRequiredInterface) com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.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 (requiredInterfaceBuilder_ == null) { requiredInterface_ = null; } else { requiredInterface_ = null; requiredInterfaceBuilder_ = null; } if (requiringInterfaceBuilder_ == null) { requiringInterface_ = null; } else { requiringInterface_ = null; requiringInterfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ToRequiredInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface(this); if (requiredInterfaceBuilder_ == null) { result.requiredInterface_ = requiredInterface_; } else { result.requiredInterface_ = requiredInterfaceBuilder_.build(); } if (requiringInterfaceBuilder_ == null) { result.requiringInterface_ = requiringInterface_; } else { result.requiringInterface_ = requiringInterfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance()) return this; if (other.hasRequiredInterface()) { mergeRequiredInterface(other.getRequiredInterface()); } if (other.hasRequiringInterface()) { mergeRequiringInterface(other.getRequiringInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName requiredInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiredInterfaceBuilder_; /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ public boolean hasRequiredInterface() { return requiredInterfaceBuilder_ != null || requiredInterface_ != null; } /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface() { if (requiredInterfaceBuilder_ == null) { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } else { return requiredInterfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder setRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredInterface_ = value; onChanged(); } else { requiredInterfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder setRequiredInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = builderForValue.build(); onChanged(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (requiredInterface_ != null) { requiredInterface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(requiredInterface_).mergeFrom(value).buildPartial(); } else { requiredInterface_ = value; } onChanged(); } else { requiredInterfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = null; onChanged(); } else { requiredInterface_ = null; requiredInterfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiredInterfaceBuilder() { onChanged(); return getRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { if (requiredInterfaceBuilder_ != null) { return requiredInterfaceBuilder_.getMessageOrBuilder(); } else { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } } /** * .daml_lf_1.TypeConName required_interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiredInterfaceFieldBuilder() { if (requiredInterfaceBuilder_ == null) { requiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getRequiredInterface(), getParentForChildren(), isClean()); requiredInterface_ = null; } return requiredInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.TypeConName requiringInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiringInterfaceBuilder_; /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ public boolean hasRequiringInterface() { return requiringInterfaceBuilder_ != null || requiringInterface_ != null; } /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface() { if (requiringInterfaceBuilder_ == null) { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } else { return requiringInterfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiringInterface_ = value; onChanged(); } else { requiringInterfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = builderForValue.build(); onChanged(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (requiringInterface_ != null) { requiringInterface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(requiringInterface_).mergeFrom(value).buildPartial(); } else { requiringInterface_ = value; } onChanged(); } else { requiringInterfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = null; onChanged(); } else { requiringInterface_ = null; requiringInterfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiringInterfaceBuilder() { onChanged(); return getRequiringInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { if (requiringInterfaceBuilder_ != null) { return requiringInterfaceBuilder_.getMessageOrBuilder(); } else { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiringInterfaceFieldBuilder() { if (requiringInterfaceBuilder_ == null) { requiringInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getRequiringInterface(), getParentForChildren(), isClean()); requiringInterface_ = null; } return requiringInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** * .daml_lf_1.Expr expr = 3; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.Expr expr = 3; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr expr = 3; */ public Builder setExpr(com.daml.daml_lf_dev.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 = 3; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.Expr expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.ToRequiredInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ToRequiredInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ToRequiredInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ToRequiredInterface(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.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromRequiredInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.FromRequiredInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ boolean hasRequiredInterface(); /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface(); /** * .daml_lf_1.TypeConName required_interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder(); /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ boolean hasRequiringInterface(); /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface(); /** * .daml_lf_1.TypeConName requiring_interface = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder(); /** * .daml_lf_1.Expr expr = 3; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_1.Expr expr = 3; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** * .daml_lf_1.Expr expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Downcast from an interface payload to an interface that requires it, if possible.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.FromRequiredInterface} */ public static final class FromRequiredInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.FromRequiredInterface) FromRequiredInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use FromRequiredInterface.newBuilder() to construct. private FromRequiredInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromRequiredInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromRequiredInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FromRequiredInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (requiredInterface_ != null) { subBuilder = requiredInterface_.toBuilder(); } requiredInterface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiredInterface_); requiredInterface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (requiringInterface_ != null) { subBuilder = requiringInterface_.toBuilder(); } requiringInterface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiringInterface_); requiringInterface_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder.class); } public static final int REQUIRED_INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName requiredInterface_; /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ @java.lang.Override public boolean hasRequiredInterface() { return requiredInterface_ != null; } /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } /** * .daml_lf_1.TypeConName required_interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { return getRequiredInterface(); } public static final int REQUIRING_INTERFACE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.TypeConName requiringInterface_; /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ @java.lang.Override public boolean hasRequiringInterface() { return requiringInterface_ != null; } /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { return getRequiringInterface(); } public static final int EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** * .daml_lf_1.Expr expr = 3; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.Expr expr = 3; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_1.Expr expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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 (requiredInterface_ != null) { output.writeMessage(1, getRequiredInterface()); } if (requiringInterface_ != null) { output.writeMessage(2, getRequiringInterface()); } if (expr_ != null) { output.writeMessage(3, getExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requiredInterface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredInterface()); } if (requiringInterface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequiringInterface()); } if (expr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, 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.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) obj; if (hasRequiredInterface() != other.hasRequiredInterface()) return false; if (hasRequiredInterface()) { if (!getRequiredInterface() .equals(other.getRequiredInterface())) return false; } if (hasRequiringInterface() != other.hasRequiringInterface()) return false; if (hasRequiringInterface()) { if (!getRequiringInterface() .equals(other.getRequiringInterface())) 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 (hasRequiredInterface()) { hash = (37 * hash) + REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getRequiredInterface().hashCode(); } if (hasRequiringInterface()) { hash = (37 * hash) + REQUIRING_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getRequiringInterface().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.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface 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; } /** *
       * Downcast from an interface payload to an interface that requires it, if possible.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.FromRequiredInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.FromRequiredInterface) com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.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 (requiredInterfaceBuilder_ == null) { requiredInterface_ = null; } else { requiredInterface_ = null; requiredInterfaceBuilder_ = null; } if (requiringInterfaceBuilder_ == null) { requiringInterface_ = null; } else { requiringInterface_ = null; requiringInterfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_FromRequiredInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface(this); if (requiredInterfaceBuilder_ == null) { result.requiredInterface_ = requiredInterface_; } else { result.requiredInterface_ = requiredInterfaceBuilder_.build(); } if (requiringInterfaceBuilder_ == null) { result.requiringInterface_ = requiringInterface_; } else { result.requiringInterface_ = requiringInterfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance()) return this; if (other.hasRequiredInterface()) { mergeRequiredInterface(other.getRequiredInterface()); } if (other.hasRequiringInterface()) { mergeRequiringInterface(other.getRequiringInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName requiredInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiredInterfaceBuilder_; /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ public boolean hasRequiredInterface() { return requiredInterfaceBuilder_ != null || requiredInterface_ != null; } /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface() { if (requiredInterfaceBuilder_ == null) { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } else { return requiredInterfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder setRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredInterface_ = value; onChanged(); } else { requiredInterfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder setRequiredInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = builderForValue.build(); onChanged(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (requiredInterface_ != null) { requiredInterface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(requiredInterface_).mergeFrom(value).buildPartial(); } else { requiredInterface_ = value; } onChanged(); } else { requiredInterfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = null; onChanged(); } else { requiredInterface_ = null; requiredInterfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiredInterfaceBuilder() { onChanged(); return getRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { if (requiredInterfaceBuilder_ != null) { return requiredInterfaceBuilder_.getMessageOrBuilder(); } else { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } } /** * .daml_lf_1.TypeConName required_interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiredInterfaceFieldBuilder() { if (requiredInterfaceBuilder_ == null) { requiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getRequiredInterface(), getParentForChildren(), isClean()); requiredInterface_ = null; } return requiredInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.TypeConName requiringInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiringInterfaceBuilder_; /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ public boolean hasRequiringInterface() { return requiringInterfaceBuilder_ != null || requiringInterface_ != null; } /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface() { if (requiringInterfaceBuilder_ == null) { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } else { return requiringInterfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiringInterface_ = value; onChanged(); } else { requiringInterfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = builderForValue.build(); onChanged(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (requiringInterface_ != null) { requiringInterface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(requiringInterface_).mergeFrom(value).buildPartial(); } else { requiringInterface_ = value; } onChanged(); } else { requiringInterfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = null; onChanged(); } else { requiringInterface_ = null; requiringInterfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiringInterfaceBuilder() { onChanged(); return getRequiringInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { if (requiringInterfaceBuilder_ != null) { return requiringInterfaceBuilder_.getMessageOrBuilder(); } else { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiringInterfaceFieldBuilder() { if (requiringInterfaceBuilder_ == null) { requiringInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getRequiringInterface(), getParentForChildren(), isClean()); requiringInterface_ = null; } return requiringInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** * .daml_lf_1.Expr expr = 3; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.Expr expr = 3; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr expr = 3; */ public Builder setExpr(com.daml.daml_lf_dev.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 = 3; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.Expr expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.FromRequiredInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.FromRequiredInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromRequiredInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FromRequiredInterface(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.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnsafeFromRequiredInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.UnsafeFromRequiredInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ boolean hasRequiredInterface(); /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface(); /** * .daml_lf_1.TypeConName required_interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder(); /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ boolean hasRequiringInterface(); /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface(); /** * .daml_lf_1.TypeConName requiring_interface = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder(); /** * .daml_lf_1.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ boolean hasContractIdExpr(); /** * .daml_lf_1.Expr contract_id_expr = 3; * @return The contractIdExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getContractIdExpr(); /** * .daml_lf_1.Expr contract_id_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractIdExprOrBuilder(); /** * .daml_lf_1.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 4; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Downcast from an interface payload to an interface that requires it, or raises WronglyTypedContract if not possible.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.UnsafeFromRequiredInterface} */ public static final class UnsafeFromRequiredInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.UnsafeFromRequiredInterface) UnsafeFromRequiredInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use UnsafeFromRequiredInterface.newBuilder() to construct. private UnsafeFromRequiredInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnsafeFromRequiredInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnsafeFromRequiredInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UnsafeFromRequiredInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (requiredInterface_ != null) { subBuilder = requiredInterface_.toBuilder(); } requiredInterface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiredInterface_); requiredInterface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (requiringInterface_ != null) { subBuilder = requiringInterface_.toBuilder(); } requiringInterface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiringInterface_); requiringInterface_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (contractIdExpr_ != null) { subBuilder = contractIdExpr_.toBuilder(); } contractIdExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contractIdExpr_); contractIdExpr_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (interfaceExpr_ != null) { subBuilder = interfaceExpr_.toBuilder(); } interfaceExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceExpr_); interfaceExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder.class); } public static final int REQUIRED_INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName requiredInterface_; /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ @java.lang.Override public boolean hasRequiredInterface() { return requiredInterface_ != null; } /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } /** * .daml_lf_1.TypeConName required_interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { return getRequiredInterface(); } public static final int REQUIRING_INTERFACE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.TypeConName requiringInterface_; /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ @java.lang.Override public boolean hasRequiringInterface() { return requiringInterface_ != null; } /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { return getRequiringInterface(); } public static final int CONTRACT_ID_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr contractIdExpr_; /** * .daml_lf_1.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ @java.lang.Override public boolean hasContractIdExpr() { return contractIdExpr_ != null; } /** * .daml_lf_1.Expr contract_id_expr = 3; * @return The contractIdExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getContractIdExpr() { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractIdExprOrBuilder() { return getContractIdExpr(); } public static final int INTERFACE_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; /** * .daml_lf_1.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 4; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_1.Expr interface_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { return getInterfaceExpr(); } 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 (requiredInterface_ != null) { output.writeMessage(1, getRequiredInterface()); } if (requiringInterface_ != null) { output.writeMessage(2, getRequiringInterface()); } if (contractIdExpr_ != null) { output.writeMessage(3, getContractIdExpr()); } if (interfaceExpr_ != null) { output.writeMessage(4, getInterfaceExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requiredInterface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredInterface()); } if (requiringInterface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequiringInterface()); } if (contractIdExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getContractIdExpr()); } if (interfaceExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) obj; if (hasRequiredInterface() != other.hasRequiredInterface()) return false; if (hasRequiredInterface()) { if (!getRequiredInterface() .equals(other.getRequiredInterface())) return false; } if (hasRequiringInterface() != other.hasRequiringInterface()) return false; if (hasRequiringInterface()) { if (!getRequiringInterface() .equals(other.getRequiringInterface())) return false; } if (hasContractIdExpr() != other.hasContractIdExpr()) return false; if (hasContractIdExpr()) { if (!getContractIdExpr() .equals(other.getContractIdExpr())) return false; } if (hasInterfaceExpr() != other.hasInterfaceExpr()) return false; if (hasInterfaceExpr()) { if (!getInterfaceExpr() .equals(other.getInterfaceExpr())) 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 (hasRequiredInterface()) { hash = (37 * hash) + REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getRequiredInterface().hashCode(); } if (hasRequiringInterface()) { hash = (37 * hash) + REQUIRING_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getRequiringInterface().hashCode(); } if (hasContractIdExpr()) { hash = (37 * hash) + CONTRACT_ID_EXPR_FIELD_NUMBER; hash = (53 * hash) + getContractIdExpr().hashCode(); } if (hasInterfaceExpr()) { hash = (37 * hash) + INTERFACE_EXPR_FIELD_NUMBER; hash = (53 * hash) + getInterfaceExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface 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; } /** *
       * Downcast from an interface payload to an interface that requires it, or raises WronglyTypedContract if not possible.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.UnsafeFromRequiredInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.UnsafeFromRequiredInterface) com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.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 (requiredInterfaceBuilder_ == null) { requiredInterface_ = null; } else { requiredInterface_ = null; requiredInterfaceBuilder_ = null; } if (requiringInterfaceBuilder_ == null) { requiringInterface_ = null; } else { requiringInterface_ = null; requiringInterfaceBuilder_ = null; } if (contractIdExprBuilder_ == null) { contractIdExpr_ = null; } else { contractIdExpr_ = null; contractIdExprBuilder_ = null; } if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface(this); if (requiredInterfaceBuilder_ == null) { result.requiredInterface_ = requiredInterface_; } else { result.requiredInterface_ = requiredInterfaceBuilder_.build(); } if (requiringInterfaceBuilder_ == null) { result.requiringInterface_ = requiringInterface_; } else { result.requiringInterface_ = requiringInterfaceBuilder_.build(); } if (contractIdExprBuilder_ == null) { result.contractIdExpr_ = contractIdExpr_; } else { result.contractIdExpr_ = contractIdExprBuilder_.build(); } if (interfaceExprBuilder_ == null) { result.interfaceExpr_ = interfaceExpr_; } else { result.interfaceExpr_ = interfaceExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance()) return this; if (other.hasRequiredInterface()) { mergeRequiredInterface(other.getRequiredInterface()); } if (other.hasRequiringInterface()) { mergeRequiringInterface(other.getRequiringInterface()); } if (other.hasContractIdExpr()) { mergeContractIdExpr(other.getContractIdExpr()); } if (other.hasInterfaceExpr()) { mergeInterfaceExpr(other.getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName requiredInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiredInterfaceBuilder_; /** * .daml_lf_1.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ public boolean hasRequiredInterface() { return requiredInterfaceBuilder_ != null || requiredInterface_ != null; } /** * .daml_lf_1.TypeConName required_interface = 1; * @return The requiredInterface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiredInterface() { if (requiredInterfaceBuilder_ == null) { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } else { return requiredInterfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder setRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredInterface_ = value; onChanged(); } else { requiredInterfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder setRequiredInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = builderForValue.build(); onChanged(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (requiredInterface_ != null) { requiredInterface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(requiredInterface_).mergeFrom(value).buildPartial(); } else { requiredInterface_ = value; } onChanged(); } else { requiredInterfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = null; onChanged(); } else { requiredInterface_ = null; requiredInterfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiredInterfaceBuilder() { onChanged(); return getRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { if (requiredInterfaceBuilder_ != null) { return requiredInterfaceBuilder_.getMessageOrBuilder(); } else { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } } /** * .daml_lf_1.TypeConName required_interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiredInterfaceFieldBuilder() { if (requiredInterfaceBuilder_ == null) { requiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getRequiredInterface(), getParentForChildren(), isClean()); requiredInterface_ = null; } return requiredInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.TypeConName requiringInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiringInterfaceBuilder_; /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ public boolean hasRequiringInterface() { return requiringInterfaceBuilder_ != null || requiringInterface_ != null; } /** * .daml_lf_1.TypeConName requiring_interface = 2; * @return The requiringInterface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequiringInterface() { if (requiringInterfaceBuilder_ == null) { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } else { return requiringInterfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiringInterface_ = value; onChanged(); } else { requiringInterfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = builderForValue.build(); onChanged(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (requiringInterface_ != null) { requiringInterface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(requiringInterface_).mergeFrom(value).buildPartial(); } else { requiringInterface_ = value; } onChanged(); } else { requiringInterfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = null; onChanged(); } else { requiringInterface_ = null; requiringInterfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiringInterfaceBuilder() { onChanged(); return getRequiringInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { if (requiringInterfaceBuilder_ != null) { return requiringInterfaceBuilder_.getMessageOrBuilder(); } else { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiringInterfaceFieldBuilder() { if (requiringInterfaceBuilder_ == null) { requiringInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getRequiringInterface(), getParentForChildren(), isClean()); requiringInterface_ = null; } return requiringInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr contractIdExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> contractIdExprBuilder_; /** * .daml_lf_1.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ public boolean hasContractIdExpr() { return contractIdExprBuilder_ != null || contractIdExpr_ != null; } /** * .daml_lf_1.Expr contract_id_expr = 3; * @return The contractIdExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getContractIdExpr() { if (contractIdExprBuilder_ == null) { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } else { return contractIdExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder setContractIdExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractIdExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdExpr_ = value; onChanged(); } else { contractIdExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder setContractIdExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (contractIdExprBuilder_ == null) { contractIdExpr_ = builderForValue.build(); onChanged(); } else { contractIdExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder mergeContractIdExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractIdExprBuilder_ == null) { if (contractIdExpr_ != null) { contractIdExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(contractIdExpr_).mergeFrom(value).buildPartial(); } else { contractIdExpr_ = value; } onChanged(); } else { contractIdExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder clearContractIdExpr() { if (contractIdExprBuilder_ == null) { contractIdExpr_ = null; onChanged(); } else { contractIdExpr_ = null; contractIdExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getContractIdExprBuilder() { onChanged(); return getContractIdExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractIdExprOrBuilder() { if (contractIdExprBuilder_ != null) { return contractIdExprBuilder_.getMessageOrBuilder(); } else { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } } /** * .daml_lf_1.Expr contract_id_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getContractIdExprFieldBuilder() { if (contractIdExprBuilder_ == null) { contractIdExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getContractIdExpr(), getParentForChildren(), isClean()); contractIdExpr_ = null; } return contractIdExprBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_1.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return interfaceExprBuilder_ != null || interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 4; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; onChanged(); } else { interfaceExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); onChanged(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (interfaceExpr_ != null) { interfaceExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(interfaceExpr_).mergeFrom(value).buildPartial(); } else { interfaceExpr_ = value; } onChanged(); } else { interfaceExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder clearInterfaceExpr() { if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; onChanged(); } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_1.Expr interface_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getInterfaceExpr(), getParentForChildren(), isClean()); interfaceExpr_ = null; } return interfaceExprBuilder_; } @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.UnsafeFromRequiredInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.UnsafeFromRequiredInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnsafeFromRequiredInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UnsafeFromRequiredInterface(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.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CallInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.CallInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType(); /** * .daml_lf_1.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * int32 method_interned_name = 2; * @return The methodInternedName. */ int getMethodInternedName(); /** * .daml_lf_1.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 3; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr(); /** * .daml_lf_1.Expr interface_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.CallInterface} */ public static final class CallInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.CallInterface) CallInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use CallInterface.newBuilder() to construct. private CallInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CallInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interfaceType_ != null) { subBuilder = interfaceType_.toBuilder(); } interfaceType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceType_); interfaceType_ = subBuilder.buildPartial(); } break; } case 16: { methodInternedName_ = input.readInt32(); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (interfaceExpr_ != null) { subBuilder = interfaceExpr_.toBuilder(); } interfaceExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interfaceExpr_); interfaceExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_CallInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_CallInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder.class); } public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_1.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return getInterfaceType(); } public static final int METHOD_INTERNED_NAME_FIELD_NUMBER = 2; private int methodInternedName_; /** * int32 method_interned_name = 2; * @return The methodInternedName. */ @java.lang.Override public int getMethodInternedName() { return methodInternedName_; } public static final int INTERFACE_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; /** * .daml_lf_1.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 3; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_1.Expr interface_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { return getInterfaceExpr(); } 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 (interfaceType_ != null) { output.writeMessage(1, getInterfaceType()); } if (methodInternedName_ != 0) { output.writeInt32(2, methodInternedName_); } if (interfaceExpr_ != null) { output.writeMessage(3, getInterfaceExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interfaceType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (methodInternedName_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, methodInternedName_); } if (interfaceExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.CallInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) obj; if (hasInterfaceType() != other.hasInterfaceType()) return false; if (hasInterfaceType()) { if (!getInterfaceType() .equals(other.getInterfaceType())) return false; } if (getMethodInternedName() != other.getMethodInternedName()) return false; if (hasInterfaceExpr() != other.hasInterfaceExpr()) return false; if (hasInterfaceExpr()) { if (!getInterfaceExpr() .equals(other.getInterfaceExpr())) 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 (hasInterfaceType()) { hash = (37 * hash) + INTERFACE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInterfaceType().hashCode(); } hash = (37 * hash) + METHOD_INTERNED_NAME_FIELD_NUMBER; hash = (53 * hash) + getMethodInternedName(); if (hasInterfaceExpr()) { hash = (37 * hash) + INTERFACE_EXPR_FIELD_NUMBER; hash = (53 * hash) + getInterfaceExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface 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; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.CallInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.CallInterface) com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_CallInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_CallInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.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 (interfaceTypeBuilder_ == null) { interfaceType_ = null; } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } methodInternedName_ = 0; if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_CallInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface(this); if (interfaceTypeBuilder_ == null) { result.interfaceType_ = interfaceType_; } else { result.interfaceType_ = interfaceTypeBuilder_.build(); } result.methodInternedName_ = methodInternedName_; if (interfaceExprBuilder_ == null) { result.interfaceExpr_ = interfaceExpr_; } else { result.interfaceExpr_ = interfaceExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance()) return this; if (other.hasInterfaceType()) { mergeInterfaceType(other.getInterfaceType()); } if (other.getMethodInternedName() != 0) { setMethodInternedName(other.getMethodInternedName()); } if (other.hasInterfaceExpr()) { mergeInterfaceExpr(other.getInterfaceExpr()); } 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.daml.daml_lf_dev.DamlLf1.Expr.CallInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_1.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return interfaceTypeBuilder_ != null || interfaceType_ != null; } /** * .daml_lf_1.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; onChanged(); } else { interfaceTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); onChanged(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (interfaceType_ != null) { interfaceType_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interfaceType_).mergeFrom(value).buildPartial(); } else { interfaceType_ = value; } onChanged(); } else { interfaceTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { if (interfaceTypeBuilder_ == null) { interfaceType_ = null; onChanged(); } else { interfaceType_ = null; interfaceTypeBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_1.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private int methodInternedName_ ; /** * int32 method_interned_name = 2; * @return The methodInternedName. */ @java.lang.Override public int getMethodInternedName() { return methodInternedName_; } /** * int32 method_interned_name = 2; * @param value The methodInternedName to set. * @return This builder for chaining. */ public Builder setMethodInternedName(int value) { methodInternedName_ = value; onChanged(); return this; } /** * int32 method_interned_name = 2; * @return This builder for chaining. */ public Builder clearMethodInternedName() { methodInternedName_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_1.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return interfaceExprBuilder_ != null || interfaceExpr_ != null; } /** * .daml_lf_1.Expr interface_expr = 3; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; onChanged(); } else { interfaceExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); onChanged(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (interfaceExpr_ != null) { interfaceExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(interfaceExpr_).mergeFrom(value).buildPartial(); } else { interfaceExpr_ = value; } onChanged(); } else { interfaceExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder clearInterfaceExpr() { if (interfaceExprBuilder_ == null) { interfaceExpr_ = null; onChanged(); } else { interfaceExpr_ = null; interfaceExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_1.Expr interface_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getInterfaceExpr(), getParentForChildren(), isClean()); interfaceExpr_ = null; } return interfaceExprBuilder_; } @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.CallInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.CallInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CallInterface(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.daml.daml_lf_dev.DamlLf1.Expr.CallInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceTemplateTypeRepOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.InterfaceTemplateTypeRep) com.google.protobuf.MessageOrBuilder { /** *
       * interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** *
       * interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain the type representation of a contract through an interface
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.InterfaceTemplateTypeRep} */ public static final class InterfaceTemplateTypeRep extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.InterfaceTemplateTypeRep) InterfaceTemplateTypeRepOrBuilder { private static final long serialVersionUID = 0L; // Use InterfaceTemplateTypeRep.newBuilder() to construct. private InterfaceTemplateTypeRep(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterfaceTemplateTypeRep() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterfaceTemplateTypeRep(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InterfaceTemplateTypeRep( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.class, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** *
       * interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** *
       * interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** *
       * interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (interface_ != null) { output.writeMessage(1, getInterface()); } 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 (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep other = (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().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.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep 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; } /** *
       * Obtain the type representation of a contract through an interface
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.InterfaceTemplateTypeRep} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.InterfaceTemplateTypeRep) com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.class, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.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 (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep build() { com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep result = new com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep(this); if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.InterfaceTemplateTypeRep) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.InterfaceTemplateTypeRep) private static final com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterfaceTemplateTypeRep parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InterfaceTemplateTypeRep(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.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignatoryInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.SignatoryInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain the signatories of a contract through an interface
     * 
* * Protobuf type {@code daml_lf_1.Expr.SignatoryInterface} */ public static final class SignatoryInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.SignatoryInterface) SignatoryInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use SignatoryInterface.newBuilder() to construct. private SignatoryInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignatoryInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignatoryInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SignatoryInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_SignatoryInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (interface_ != null) { output.writeMessage(1, getInterface()); } 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 (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().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.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface 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; } /** *
       * Obtain the signatories of a contract through an interface
       * 
* * Protobuf type {@code daml_lf_1.Expr.SignatoryInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.SignatoryInterface) com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_SignatoryInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.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 (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface(this); if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.SignatoryInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.SignatoryInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignatoryInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignatoryInterface(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.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObserverInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ObserverInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain the observers of a contract through an interface
     * 
* * Protobuf type {@code daml_lf_1.Expr.ObserverInterface} */ public static final class ObserverInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ObserverInterface) ObserverInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use ObserverInterface.newBuilder() to construct. private ObserverInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObserverInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObserverInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObserverInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ObserverInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ObserverInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (interface_ != null) { output.writeMessage(1, getInterface()); } 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 (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().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.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface 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; } /** *
       * Obtain the observers of a contract through an interface
       * 
* * Protobuf type {@code daml_lf_1.Expr.ObserverInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ObserverInterface) com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ObserverInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ObserverInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.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 (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ObserverInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface(this); if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.ObserverInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ObserverInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObserverInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObserverInterface(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.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExperimentalOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.Experimental) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_1.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); } /** * Protobuf type {@code daml_lf_1.Expr.Experimental} */ public static final class Experimental extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.Experimental) ExperimentalOrBuilder { private static final long serialVersionUID = 0L; // Use Experimental.newBuilder() to construct. private Experimental(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Experimental() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Experimental(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Experimental( 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(); name_ = s; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.class, com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != null) { output.writeMessage(2, getType()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, 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.daml.daml_lf_dev.DamlLf1.Expr.Experimental)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.Experimental other = (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) obj; if (!getName() .equals(other.getName())) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().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.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Expr.Experimental 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.Experimental} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.Experimental) com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.class, com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.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(); name_ = ""; if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_Experimental_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Experimental getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Experimental build() { com.daml.daml_lf_dev.DamlLf1.Expr.Experimental result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Experimental buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.Experimental result = new com.daml.daml_lf_dev.DamlLf1.Expr.Experimental(this); result.name_ = name_; 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.daml.daml_lf_dev.DamlLf1.Expr.Experimental) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.Experimental)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.Experimental other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } 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.daml.daml_lf_dev.DamlLf1.Expr.Experimental parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.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 = 2; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 2; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 2; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.Experimental) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.Experimental) private static final com.daml.daml_lf_dev.DamlLf1.Expr.Experimental DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.Experimental(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.Experimental getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Experimental parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Experimental(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.daml.daml_lf_dev.DamlLf1.Expr.Experimental getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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), STRUCT_CON(9), STRUCT_PROJ(10), STRUCT_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), TO_ANY_EXCEPTION(33), FROM_ANY_EXCEPTION(34), THROW(35), TO_INTERFACE(36), FROM_INTERFACE(37), CALL_INTERFACE(38), TO_REQUIRED_INTERFACE(39), FROM_REQUIRED_INTERFACE(40), INTERFACE_TEMPLATE_TYPE_REP(41), SIGNATORY_INTERFACE(42), OBSERVER_INTERFACE(43), UNSAFE_FROM_INTERFACE(44), UNSAFE_FROM_REQUIRED_INTERFACE(45), EXPERIMENTAL(9999), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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 STRUCT_CON; case 10: return STRUCT_PROJ; case 23: return STRUCT_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 33: return TO_ANY_EXCEPTION; case 34: return FROM_ANY_EXCEPTION; case 35: return THROW; case 36: return TO_INTERFACE; case 37: return FROM_INTERFACE; case 38: return CALL_INTERFACE; case 39: return TO_REQUIRED_INTERFACE; case 40: return FROM_REQUIRED_INTERFACE; case 41: return INTERFACE_TEMPLATE_TYPE_REP; case 42: return SIGNATORY_INTERFACE; case 43: return OBSERVER_INTERFACE; case 44: return UNSAFE_FROM_INTERFACE; case 45: return UNSAFE_FROM_REQUIRED_INTERFACE; case 9999: return EXPERIMENTAL; 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.daml.daml_lf_dev.DamlLf1.Location location_; /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_1.Location location = 25; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int VAR_STR_FIELD_NUMBER = 1; /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return Whether the varStr field is set. */ public boolean hasVarStr() { return sumCase_ == 1; } /** *
     * *Must be a valid identifier*
     * 
* * string var_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the varInternedStr field is set. */ @java.lang.Override public boolean hasVarInternedStr() { return sumCase_ == 29; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 29; * @return The varInternedStr. */ @java.lang.Override 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; * @return Whether the val field is set. */ @java.lang.Override public boolean hasVal() { return sumCase_ == 2; } /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2; * @return The val. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValName getVal() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_1.ValName val = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder getValOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } public static final int BUILTIN_FIELD_NUMBER = 3; /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return Whether the builtin field is set. */ public boolean hasBuiltin() { return sumCase_ == 3; } /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return The enum numeric value on the wire for builtin. */ public int getBuiltinValue() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return The builtin. */ public com.daml.daml_lf_dev.DamlLf1.BuiltinFunction getBuiltin() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.BuiltinFunction result = com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.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; * @return Whether the primCon field is set. */ public boolean hasPrimCon() { return sumCase_ == 4; } /** *
     * Primitive constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_1.PrimCon prim_con = 4; * @return The enum numeric value on the wire for 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; * @return The primCon. */ public com.daml.daml_lf_dev.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 4) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.PrimCon.CON_UNIT; } public static final int PRIM_LIT_FIELD_NUMBER = 5; /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5; * @return Whether the primLit field is set. */ @java.lang.Override public boolean hasPrimLit() { return sumCase_ == 5; } /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5; * @return The primLit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLit getPrimLit() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_; } return com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_1.PrimLit prim_lit = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_; } return com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } public static final int REC_CON_FIELD_NUMBER = 6; /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; * @return Whether the recCon field is set. */ @java.lang.Override public boolean hasRecCon() { return sumCase_ == 6; } /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; * @return The recCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecCon getRecCon() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } public static final int REC_PROJ_FIELD_NUMBER = 7; /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; * @return Whether the recProj field is set. */ @java.lang.Override public boolean hasRecProj() { return sumCase_ == 7; } /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; * @return The recProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProj getRecProj() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } public static final int REC_UPD_FIELD_NUMBER = 22; /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; * @return Whether the recUpd field is set. */ @java.lang.Override public boolean hasRecUpd() { return sumCase_ == 22; } /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; * @return The recUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd getRecUpd() { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder() { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } public static final int VARIANT_CON_FIELD_NUMBER = 8; /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; * @return Whether the variantCon field is set. */ @java.lang.Override public boolean hasVariantCon() { return sumCase_ == 8; } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; * @return The variantCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon getVariantCon() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } public static final int ENUM_CON_FIELD_NUMBER = 28; /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; * @return Whether the enumCon field is set. */ @java.lang.Override public boolean hasEnumCon() { return sumCase_ == 28; } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; * @return The enumCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon getEnumCon() { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder() { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } public static final int STRUCT_CON_FIELD_NUMBER = 9; /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; * @return Whether the structCon field is set. */ @java.lang.Override public boolean hasStructCon() { return sumCase_ == 9; } /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; * @return The structCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructCon getStructCon() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder getStructConOrBuilder() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } public static final int STRUCT_PROJ_FIELD_NUMBER = 10; /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; * @return Whether the structProj field is set. */ @java.lang.Override public boolean hasStructProj() { return sumCase_ == 10; } /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; * @return The structProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj getStructProj() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder getStructProjOrBuilder() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } public static final int STRUCT_UPD_FIELD_NUMBER = 23; /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; * @return Whether the structUpd field is set. */ @java.lang.Override public boolean hasStructUpd() { return sumCase_ == 23; } /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; * @return The structUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd getStructUpd() { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder getStructUpdOrBuilder() { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } public static final int APP_FIELD_NUMBER = 11; /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return sumCase_ == 11; } /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11; * @return The app. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.App getApp() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_1.Expr.App app = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder getAppOrBuilder() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } public static final int TY_APP_FIELD_NUMBER = 12; /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; * @return Whether the tyApp field is set. */ @java.lang.Override public boolean hasTyApp() { return sumCase_ == 12; } /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; * @return The tyApp. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyApp getTyApp() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } public static final int ABS_FIELD_NUMBER = 13; /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13; * @return Whether the abs field is set. */ @java.lang.Override public boolean hasAbs() { return sumCase_ == 13; } /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13; * @return The abs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Abs getAbs() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_1.Expr.Abs abs = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } public static final int TY_ABS_FIELD_NUMBER = 14; /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; * @return Whether the tyAbs field is set. */ @java.lang.Override public boolean hasTyAbs() { return sumCase_ == 14; } /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; * @return The tyAbs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs getTyAbs() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } public static final int CASE_FIELD_NUMBER = 15; /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15; * @return Whether the case field is set. */ @java.lang.Override public boolean hasCase() { return sumCase_ == 15; } /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15; * @return The case. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Case getCase() { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Case) sum_; } return com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_1.Case case = 15; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseOrBuilder getCaseOrBuilder() { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Case) sum_; } return com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } public static final int LET_FIELD_NUMBER = 16; /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16; * @return Whether the let field is set. */ @java.lang.Override public boolean hasLet() { return sumCase_ == 16; } /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16; * @return The let. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getLet() { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_1.Block let = 16; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getLetOrBuilder() { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } public static final int NIL_FIELD_NUMBER = 17; /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 17; } /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Nil getNil() { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_1.Expr.Nil nil = 17; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder getNilOrBuilder() { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } public static final int CONS_FIELD_NUMBER = 18; /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 18; } /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Cons getCons() { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_1.Expr.Cons cons = 18; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder() { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } public static final int UPDATE_FIELD_NUMBER = 20; /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return sumCase_ == 20; } /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update getUpdate() { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf1.Update) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_1.Update update = 20; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder getUpdateOrBuilder() { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf1.Update) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } public static final int SCENARIO_FIELD_NUMBER = 21; /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21; * @return Whether the scenario field is set. */ @java.lang.Override public boolean hasScenario() { return sumCase_ == 21; } /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21; * @return The scenario. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario getScenario() { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } /** *
     * Scenario Expression ('ExpScenario')
     * 
* * .daml_lf_1.Scenario scenario = 21; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder() { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } public static final int OPTIONAL_NONE_FIELD_NUMBER = 26; /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 26; } /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone getOptionalNone() { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder() { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } public static final int OPTIONAL_SOME_FIELD_NUMBER = 27; /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 27; } /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome getOptionalSome() { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the toAny field is set. */ @java.lang.Override 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; * @return The toAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAny getToAny() { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance(); } /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Expr.ToAny to_any = 30; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyOrBuilder getToAnyOrBuilder() { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the fromAny field is set. */ @java.lang.Override 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; * @return The fromAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAny getFromAny() { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder() { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the typeRep field is set. */ @java.lang.Override public boolean hasTypeRep() { return sumCase_ == 32; } /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32; * @return The typeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getTypeRep() { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf1.Type) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } /** *
     * A type representation
     * *Available in versions >= 1.7*
     * 
* * .daml_lf_1.Type type_rep = 32; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeRepOrBuilder() { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf1.Type) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } public static final int TO_ANY_EXCEPTION_FIELD_NUMBER = 33; /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; * @return Whether the toAnyException field is set. */ @java.lang.Override public boolean hasToAnyException() { return sumCase_ == 33; } /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; * @return The toAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException getToAnyException() { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder getToAnyExceptionOrBuilder() { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } public static final int FROM_ANY_EXCEPTION_FIELD_NUMBER = 34; /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; * @return Whether the fromAnyException field is set. */ @java.lang.Override public boolean hasFromAnyException() { return sumCase_ == 34; } /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; * @return The fromAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException getFromAnyException() { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder getFromAnyExceptionOrBuilder() { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } public static final int THROW_FIELD_NUMBER = 35; /** *
     * Throw an exception ('ExpThrow').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.Throw throw = 35; * @return Whether the throw field is set. */ @java.lang.Override public boolean hasThrow() { return sumCase_ == 35; } /** *
     * Throw an exception ('ExpThrow').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.Throw throw = 35; * @return The throw. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Throw getThrow() { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } /** *
     * Throw an exception ('ExpThrow').
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Expr.Throw throw = 35; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder getThrowOrBuilder() { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } public static final int TO_INTERFACE_FIELD_NUMBER = 36; /** *
     * Convert to/from interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; * @return Whether the toInterface field is set. */ @java.lang.Override public boolean hasToInterface() { return sumCase_ == 36; } /** *
     * Convert to/from interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; * @return The toInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface getToInterface() { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } /** *
     * Convert to/from interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder getToInterfaceOrBuilder() { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } public static final int FROM_INTERFACE_FIELD_NUMBER = 37; /** * .daml_lf_1.Expr.FromInterface from_interface = 37; * @return Whether the fromInterface field is set. */ @java.lang.Override public boolean hasFromInterface() { return sumCase_ == 37; } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; * @return The fromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface getFromInterface() { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder getFromInterfaceOrBuilder() { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } public static final int CALL_INTERFACE_FIELD_NUMBER = 38; /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; * @return Whether the callInterface field is set. */ @java.lang.Override public boolean hasCallInterface() { return sumCase_ == 38; } /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; * @return The callInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface getCallInterface() { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } /** *
     * Invoke an interface method.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder() { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } public static final int TO_REQUIRED_INTERFACE_FIELD_NUMBER = 39; /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; * @return Whether the toRequiredInterface field is set. */ @java.lang.Override public boolean hasToRequiredInterface() { return sumCase_ == 39; } /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; * @return The toRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getToRequiredInterface() { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder() { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } public static final int FROM_REQUIRED_INTERFACE_FIELD_NUMBER = 40; /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; * @return Whether the fromRequiredInterface field is set. */ @java.lang.Override public boolean hasFromRequiredInterface() { return sumCase_ == 40; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; * @return The fromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getFromRequiredInterface() { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder() { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } public static final int INTERFACE_TEMPLATE_TYPE_REP_FIELD_NUMBER = 41; /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; * @return Whether the interfaceTemplateTypeRep field is set. */ @java.lang.Override public boolean hasInterfaceTemplateTypeRep() { return sumCase_ == 41; } /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; * @return The interfaceTemplateTypeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep() { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder() { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } public static final int SIGNATORY_INTERFACE_FIELD_NUMBER = 42; /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; * @return Whether the signatoryInterface field is set. */ @java.lang.Override public boolean hasSignatoryInterface() { return sumCase_ == 42; } /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; * @return The signatoryInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getSignatoryInterface() { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder() { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } public static final int OBSERVER_INTERFACE_FIELD_NUMBER = 43; /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; * @return Whether the observerInterface field is set. */ @java.lang.Override public boolean hasObserverInterface() { return sumCase_ == 43; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; * @return The observerInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getObserverInterface() { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder() { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } public static final int UNSAFE_FROM_INTERFACE_FIELD_NUMBER = 44; /** *
     * Unsafe conversion to/from interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; * @return Whether the unsafeFromInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromInterface() { return sumCase_ == 44; } /** *
     * Unsafe conversion to/from interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; * @return The unsafeFromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getUnsafeFromInterface() { if (sumCase_ == 44) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } /** *
     * Unsafe conversion to/from interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder() { if (sumCase_ == 44) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } public static final int UNSAFE_FROM_REQUIRED_INTERFACE_FIELD_NUMBER = 45; /** *
     * Unsafe downcast interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; * @return Whether the unsafeFromRequiredInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromRequiredInterface() { return sumCase_ == 45; } /** *
     * Unsafe downcast interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; * @return The unsafeFromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface() { if (sumCase_ == 45) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } /** *
     * Unsafe downcast interface payloads.
     * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder() { if (sumCase_ == 45) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } public static final int EXPERIMENTAL_FIELD_NUMBER = 9999; /** *
     * *Available only in 1.dev*
     * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; * @return Whether the experimental field is set. */ @java.lang.Override public boolean hasExperimental() { return sumCase_ == 9999; } /** *
     * *Available only in 1.dev*
     * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; * @return The experimental. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Experimental getExperimental() { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance(); } /** *
     * *Available only in 1.dev*
     * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder getExperimentalOrBuilder() { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_); } if (sumCase_ == 10) { output.writeMessage(10, (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_); } if (sumCase_ == 11) { output.writeMessage(11, (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_); } if (sumCase_ == 12) { output.writeMessage(12, (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_); } if (sumCase_ == 15) { output.writeMessage(15, (com.daml.daml_lf_dev.DamlLf1.Case) sum_); } if (sumCase_ == 16) { output.writeMessage(16, (com.daml.daml_lf_dev.DamlLf1.Block) sum_); } if (sumCase_ == 17) { output.writeMessage(17, (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_); } if (sumCase_ == 18) { output.writeMessage(18, (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_); } if (sumCase_ == 20) { output.writeMessage(20, (com.daml.daml_lf_dev.DamlLf1.Update) sum_); } if (sumCase_ == 21) { output.writeMessage(21, (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_); } if (sumCase_ == 22) { output.writeMessage(22, (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_); } if (sumCase_ == 23) { output.writeMessage(23, (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_); } if (location_ != null) { output.writeMessage(25, getLocation()); } if (sumCase_ == 26) { output.writeMessage(26, (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_); } if (sumCase_ == 27) { output.writeMessage(27, (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_); } if (sumCase_ == 28) { output.writeMessage(28, (com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_); } if (sumCase_ == 29) { output.writeInt32( 29, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 30) { output.writeMessage(30, (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_); } if (sumCase_ == 31) { output.writeMessage(31, (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_); } if (sumCase_ == 32) { output.writeMessage(32, (com.daml.daml_lf_dev.DamlLf1.Type) sum_); } if (sumCase_ == 33) { output.writeMessage(33, (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_); } if (sumCase_ == 34) { output.writeMessage(34, (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_); } if (sumCase_ == 35) { output.writeMessage(35, (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_); } if (sumCase_ == 36) { output.writeMessage(36, (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_); } if (sumCase_ == 37) { output.writeMessage(37, (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_); } if (sumCase_ == 38) { output.writeMessage(38, (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_); } if (sumCase_ == 39) { output.writeMessage(39, (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_); } if (sumCase_ == 40) { output.writeMessage(40, (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_); } if (sumCase_ == 41) { output.writeMessage(41, (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_); } if (sumCase_ == 42) { output.writeMessage(42, (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_); } if (sumCase_ == 43) { output.writeMessage(43, (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_); } if (sumCase_ == 44) { output.writeMessage(44, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_); } if (sumCase_ == 45) { output.writeMessage(45, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_); } if (sumCase_ == 9999) { output.writeMessage(9999, (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) 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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PrimLit) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_); } if (sumCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.daml.daml_lf_dev.DamlLf1.Case) sum_); } if (sumCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.daml.daml_lf_dev.DamlLf1.Block) sum_); } if (sumCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_); } if (sumCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_); } if (sumCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (com.daml.daml_lf_dev.DamlLf1.Update) sum_); } if (sumCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_); } if (sumCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_); } if (sumCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, getLocation()); } if (sumCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_); } if (sumCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_); } if (sumCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_); } if (sumCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_); } if (sumCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (com.daml.daml_lf_dev.DamlLf1.Type) sum_); } if (sumCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_); } if (sumCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_); } if (sumCase_ == 35) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_); } if (sumCase_ == 36) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_); } if (sumCase_ == 37) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_); } if (sumCase_ == 38) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(38, (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_); } if (sumCase_ == 39) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_); } if (sumCase_ == 40) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_); } if (sumCase_ == 41) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_); } if (sumCase_ == 42) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_); } if (sumCase_ == 43) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_); } if (sumCase_ == 44) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_); } if (sumCase_ == 45) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_); } if (sumCase_ == 9999) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9999, (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) 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.daml.daml_lf_dev.DamlLf1.Expr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr other = (com.daml.daml_lf_dev.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 (!getStructCon() .equals(other.getStructCon())) return false; break; case 10: if (!getStructProj() .equals(other.getStructProj())) return false; break; case 23: if (!getStructUpd() .equals(other.getStructUpd())) 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 33: if (!getToAnyException() .equals(other.getToAnyException())) return false; break; case 34: if (!getFromAnyException() .equals(other.getFromAnyException())) return false; break; case 35: if (!getThrow() .equals(other.getThrow())) return false; break; case 36: if (!getToInterface() .equals(other.getToInterface())) return false; break; case 37: if (!getFromInterface() .equals(other.getFromInterface())) return false; break; case 38: if (!getCallInterface() .equals(other.getCallInterface())) return false; break; case 39: if (!getToRequiredInterface() .equals(other.getToRequiredInterface())) return false; break; case 40: if (!getFromRequiredInterface() .equals(other.getFromRequiredInterface())) return false; break; case 41: if (!getInterfaceTemplateTypeRep() .equals(other.getInterfaceTemplateTypeRep())) return false; break; case 42: if (!getSignatoryInterface() .equals(other.getSignatoryInterface())) return false; break; case 43: if (!getObserverInterface() .equals(other.getObserverInterface())) return false; break; case 44: if (!getUnsafeFromInterface() .equals(other.getUnsafeFromInterface())) return false; break; case 45: if (!getUnsafeFromRequiredInterface() .equals(other.getUnsafeFromRequiredInterface())) return false; break; case 9999: if (!getExperimental() .equals(other.getExperimental())) 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) + STRUCT_CON_FIELD_NUMBER; hash = (53 * hash) + getStructCon().hashCode(); break; case 10: hash = (37 * hash) + STRUCT_PROJ_FIELD_NUMBER; hash = (53 * hash) + getStructProj().hashCode(); break; case 23: hash = (37 * hash) + STRUCT_UPD_FIELD_NUMBER; hash = (53 * hash) + getStructUpd().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 33: hash = (37 * hash) + TO_ANY_EXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getToAnyException().hashCode(); break; case 34: hash = (37 * hash) + FROM_ANY_EXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getFromAnyException().hashCode(); break; case 35: hash = (37 * hash) + THROW_FIELD_NUMBER; hash = (53 * hash) + getThrow().hashCode(); break; case 36: hash = (37 * hash) + TO_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getToInterface().hashCode(); break; case 37: hash = (37 * hash) + FROM_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFromInterface().hashCode(); break; case 38: hash = (37 * hash) + CALL_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getCallInterface().hashCode(); break; case 39: hash = (37 * hash) + TO_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getToRequiredInterface().hashCode(); break; case 40: hash = (37 * hash) + FROM_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFromRequiredInterface().hashCode(); break; case 41: hash = (37 * hash) + INTERFACE_TEMPLATE_TYPE_REP_FIELD_NUMBER; hash = (53 * hash) + getInterfaceTemplateTypeRep().hashCode(); break; case 42: hash = (37 * hash) + SIGNATORY_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getSignatoryInterface().hashCode(); break; case 43: hash = (37 * hash) + OBSERVER_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getObserverInterface().hashCode(); break; case 44: hash = (37 * hash) + UNSAFE_FROM_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getUnsafeFromInterface().hashCode(); break; case 45: hash = (37 * hash) + UNSAFE_FROM_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getUnsafeFromRequiredInterface().hashCode(); break; case 9999: hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getExperimental().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Expr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.class, com.daml.daml_lf_dev.DamlLf1.Expr.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr build() { com.daml.daml_lf_dev.DamlLf1.Expr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr result = new com.daml.daml_lf_dev.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 (structConBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = structConBuilder_.build(); } } if (sumCase_ == 10) { if (structProjBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = structProjBuilder_.build(); } } if (sumCase_ == 23) { if (structUpdBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = structUpdBuilder_.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(); } } if (sumCase_ == 33) { if (toAnyExceptionBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = toAnyExceptionBuilder_.build(); } } if (sumCase_ == 34) { if (fromAnyExceptionBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fromAnyExceptionBuilder_.build(); } } if (sumCase_ == 35) { if (throwBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = throwBuilder_.build(); } } if (sumCase_ == 36) { if (toInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = toInterfaceBuilder_.build(); } } if (sumCase_ == 37) { if (fromInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fromInterfaceBuilder_.build(); } } if (sumCase_ == 38) { if (callInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = callInterfaceBuilder_.build(); } } if (sumCase_ == 39) { if (toRequiredInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = toRequiredInterfaceBuilder_.build(); } } if (sumCase_ == 40) { if (fromRequiredInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fromRequiredInterfaceBuilder_.build(); } } if (sumCase_ == 41) { if (interfaceTemplateTypeRepBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = interfaceTemplateTypeRepBuilder_.build(); } } if (sumCase_ == 42) { if (signatoryInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = signatoryInterfaceBuilder_.build(); } } if (sumCase_ == 43) { if (observerInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = observerInterfaceBuilder_.build(); } } if (sumCase_ == 44) { if (unsafeFromInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = unsafeFromInterfaceBuilder_.build(); } } if (sumCase_ == 45) { if (unsafeFromRequiredInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = unsafeFromRequiredInterfaceBuilder_.build(); } } if (sumCase_ == 9999) { if (experimentalBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = experimentalBuilder_.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.daml.daml_lf_dev.DamlLf1.Expr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr other) { if (other == com.daml.daml_lf_dev.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 STRUCT_CON: { mergeStructCon(other.getStructCon()); break; } case STRUCT_PROJ: { mergeStructProj(other.getStructProj()); break; } case STRUCT_UPD: { mergeStructUpd(other.getStructUpd()); 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 TO_ANY_EXCEPTION: { mergeToAnyException(other.getToAnyException()); break; } case FROM_ANY_EXCEPTION: { mergeFromAnyException(other.getFromAnyException()); break; } case THROW: { mergeThrow(other.getThrow()); break; } case TO_INTERFACE: { mergeToInterface(other.getToInterface()); break; } case FROM_INTERFACE: { mergeFromInterface(other.getFromInterface()); break; } case CALL_INTERFACE: { mergeCallInterface(other.getCallInterface()); break; } case TO_REQUIRED_INTERFACE: { mergeToRequiredInterface(other.getToRequiredInterface()); break; } case FROM_REQUIRED_INTERFACE: { mergeFromRequiredInterface(other.getFromRequiredInterface()); break; } case INTERFACE_TEMPLATE_TYPE_REP: { mergeInterfaceTemplateTypeRep(other.getInterfaceTemplateTypeRep()); break; } case SIGNATORY_INTERFACE: { mergeSignatoryInterface(other.getSignatoryInterface()); break; } case OBSERVER_INTERFACE: { mergeObserverInterface(other.getObserverInterface()); break; } case UNSAFE_FROM_INTERFACE: { mergeUnsafeFromInterface(other.getUnsafeFromInterface()); break; } case UNSAFE_FROM_REQUIRED_INTERFACE: { mergeUnsafeFromRequiredInterface(other.getUnsafeFromRequiredInterface()); break; } case EXPERIMENTAL: { mergeExperimental(other.getExperimental()); 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.daml.daml_lf_dev.DamlLf1.Expr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25; */ public Builder setLocation(com.daml.daml_lf_dev.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; */ public Builder setLocation( com.daml.daml_lf_dev.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; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return Whether the varStr field is set. */ @java.lang.Override public boolean hasVarStr() { return sumCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @return The varStr. */ @java.lang.Override 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; * @return The bytes for varStr. */ @java.lang.Override 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; * @param value The varStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarStr() { if (sumCase_ == 1) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string var_str = 1; * @param value The bytes for varStr to set. * @return This builder for chaining. */ 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; * @return Whether the varInternedStr field is set. */ public boolean hasVarInternedStr() { return sumCase_ == 29; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 29; * @return The 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; * @param value The varInternedStr to set. * @return This builder for chaining. */ public Builder setVarInternedStr(int value) { sumCase_ = 29; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 29; * @return This builder for chaining. */ public Builder clearVarInternedStr() { if (sumCase_ == 29) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ValName, com.daml.daml_lf_dev.DamlLf1.ValName.Builder, com.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder> valBuilder_; /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2; * @return Whether the val field is set. */ @java.lang.Override public boolean hasVal() { return sumCase_ == 2; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2; * @return The val. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValName getVal() { if (valBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } else { if (sumCase_ == 2) { return valBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2; */ public Builder setVal(com.daml.daml_lf_dev.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; */ public Builder setVal( com.daml.daml_lf_dev.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; */ public Builder mergeVal(com.daml.daml_lf_dev.DamlLf1.ValName value) { if (valBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.ValName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.ValName.Builder getValBuilder() { return getValFieldBuilder().getBuilder(); } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder getValOrBuilder() { if ((sumCase_ == 2) && (valBuilder_ != null)) { return valBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_1.ValName val = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ValName, com.daml.daml_lf_dev.DamlLf1.ValName.Builder, com.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.ValName.getDefaultInstance(); } valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.ValName, com.daml.daml_lf_dev.DamlLf1.ValName.Builder, com.daml.daml_lf_dev.DamlLf1.ValNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.ValName) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return valBuilder_; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return Whether the builtin field is set. */ @java.lang.Override public boolean hasBuiltin() { return sumCase_ == 3; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return The enum numeric value on the wire for builtin. */ @java.lang.Override public int getBuiltinValue() { if (sumCase_ == 3) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @param value The enum numeric value on the wire for builtin to set. * @return This builder for chaining. */ public Builder setBuiltinValue(int value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @return The builtin. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BuiltinFunction getBuiltin() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.BuiltinFunction result = com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.ADD_DECIMAL; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_1.BuiltinFunction builtin = 3; * @param value The builtin to set. * @return This builder for chaining. */ public Builder setBuiltin(com.daml.daml_lf_dev.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; * @return This builder for chaining. */ 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; * @return Whether the primCon field is set. */ @java.lang.Override public boolean hasPrimCon() { return sumCase_ == 4; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4; * @return The enum numeric value on the wire for primCon. */ @java.lang.Override 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; * @param value The enum numeric value on the wire for primCon to set. * @return This builder for chaining. */ public Builder setPrimConValue(int value) { sumCase_ = 4; sum_ = value; onChanged(); return this; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4; * @return The primCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 4) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.PrimCon.CON_UNIT; } /** *
       * Primitive constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_1.PrimCon prim_con = 4; * @param value The primCon to set. * @return This builder for chaining. */ public Builder setPrimCon(com.daml.daml_lf_dev.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; * @return This builder for chaining. */ public Builder clearPrimCon() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PrimLit, com.daml.daml_lf_dev.DamlLf1.PrimLit.Builder, com.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder> primLitBuilder_; /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5; * @return Whether the primLit field is set. */ @java.lang.Override public boolean hasPrimLit() { return sumCase_ == 5; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5; * @return The primLit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLit getPrimLit() { if (primLitBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_; } return com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } else { if (sumCase_ == 5) { return primLitBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5; */ public Builder setPrimLit(com.daml.daml_lf_dev.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; */ public Builder setPrimLit( com.daml.daml_lf_dev.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; */ public Builder mergePrimLit(com.daml.daml_lf_dev.DamlLf1.PrimLit value) { if (primLitBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.PrimLit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.PrimLit.Builder getPrimLitBuilder() { return getPrimLitFieldBuilder().getBuilder(); } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder() { if ((sumCase_ == 5) && (primLitBuilder_ != null)) { return primLitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_; } return com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_1.PrimLit prim_lit = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PrimLit, com.daml.daml_lf_dev.DamlLf1.PrimLit.Builder, com.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder> getPrimLitFieldBuilder() { if (primLitBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf1.PrimLit.getDefaultInstance(); } primLitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PrimLit, com.daml.daml_lf_dev.DamlLf1.PrimLit.Builder, com.daml.daml_lf_dev.DamlLf1.PrimLitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.PrimLit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return primLitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecCon, com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder> recConBuilder_; /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; * @return Whether the recCon field is set. */ @java.lang.Override public boolean hasRecCon() { return sumCase_ == 6; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; * @return The recCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecCon getRecCon() { if (recConBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } else { if (sumCase_ == 6) { return recConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; */ public Builder setRecCon(com.daml.daml_lf_dev.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; */ public Builder setRecCon( com.daml.daml_lf_dev.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; */ public Builder mergeRecCon(com.daml.daml_lf_dev.DamlLf1.Expr.RecCon value) { if (recConBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder getRecConBuilder() { return getRecConFieldBuilder().getBuilder(); } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder() { if ((sumCase_ == 6) && (recConBuilder_ != null)) { return recConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_1.Expr.RecCon rec_con = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecCon, com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder> getRecConFieldBuilder() { if (recConBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.getDefaultInstance(); } recConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecCon, com.daml.daml_lf_dev.DamlLf1.Expr.RecCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecConOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.RecCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged();; return recConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecProj, com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder> recProjBuilder_; /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; * @return Whether the recProj field is set. */ @java.lang.Override public boolean hasRecProj() { return sumCase_ == 7; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; * @return The recProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProj getRecProj() { if (recProjBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } else { if (sumCase_ == 7) { return recProjBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; */ public Builder setRecProj(com.daml.daml_lf_dev.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; */ public Builder setRecProj( com.daml.daml_lf_dev.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; */ public Builder mergeRecProj(com.daml.daml_lf_dev.DamlLf1.Expr.RecProj value) { if (recProjBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder getRecProjBuilder() { return getRecProjFieldBuilder().getBuilder(); } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder() { if ((sumCase_ == 7) && (recProjBuilder_ != null)) { return recProjBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_1.Expr.RecProj rec_proj = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecProj, com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder> getRecProjFieldBuilder() { if (recProjBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.getDefaultInstance(); } recProjBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecProj, com.daml.daml_lf_dev.DamlLf1.Expr.RecProj.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecProjOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.RecProj) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return recProjBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder> recUpdBuilder_; /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; * @return Whether the recUpd field is set. */ @java.lang.Override public boolean hasRecUpd() { return sumCase_ == 22; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; * @return The recUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd getRecUpd() { if (recUpdBuilder_ == null) { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } else { if (sumCase_ == 22) { return recUpdBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; */ public Builder setRecUpd(com.daml.daml_lf_dev.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; */ public Builder setRecUpd( com.daml.daml_lf_dev.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; */ public Builder mergeRecUpd(com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd value) { if (recUpdBuilder_ == null) { if (sumCase_ == 22 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder getRecUpdBuilder() { return getRecUpdFieldBuilder().getBuilder(); } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder() { if ((sumCase_ == 22) && (recUpdBuilder_ != null)) { return recUpdBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_1.Expr.RecUpd rec_upd = 22; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder> getRecUpdFieldBuilder() { if (recUpdBuilder_ == null) { if (!(sumCase_ == 22)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.getDefaultInstance(); } recUpdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.RecUpdOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 22; onChanged();; return recUpdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon, com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder> variantConBuilder_; /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; * @return Whether the variantCon field is set. */ @java.lang.Override public boolean hasVariantCon() { return sumCase_ == 8; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; * @return The variantCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon getVariantCon() { if (variantConBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } else { if (sumCase_ == 8) { return variantConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; */ public Builder setVariantCon(com.daml.daml_lf_dev.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; */ public Builder setVariantCon( com.daml.daml_lf_dev.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; */ public Builder mergeVariantCon(com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon value) { if (variantConBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder getVariantConBuilder() { return getVariantConFieldBuilder().getBuilder(); } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder() { if ((sumCase_ == 8) && (variantConBuilder_ != null)) { return variantConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_1.Expr.VariantCon variant_con = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon, com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder> getVariantConFieldBuilder() { if (variantConBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.getDefaultInstance(); } variantConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon, com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.VariantConOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return variantConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon, com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder> enumConBuilder_; /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; * @return Whether the enumCon field is set. */ @java.lang.Override public boolean hasEnumCon() { return sumCase_ == 28; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; * @return The enumCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon getEnumCon() { if (enumConBuilder_ == null) { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } else { if (sumCase_ == 28) { return enumConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; */ public Builder setEnumCon(com.daml.daml_lf_dev.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; */ public Builder setEnumCon( com.daml.daml_lf_dev.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; */ public Builder mergeEnumCon(com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon value) { if (enumConBuilder_ == null) { if (sumCase_ == 28 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder getEnumConBuilder() { return getEnumConFieldBuilder().getBuilder(); } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder() { if ((sumCase_ == 28) && (enumConBuilder_ != null)) { return enumConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_1.Expr.EnumCon enum_con = 28; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon, com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder> getEnumConFieldBuilder() { if (enumConBuilder_ == null) { if (!(sumCase_ == 28)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.getDefaultInstance(); } enumConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon, com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.EnumConOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 28; onChanged();; return enumConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructCon, com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder> structConBuilder_; /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; * @return Whether the structCon field is set. */ @java.lang.Override public boolean hasStructCon() { return sumCase_ == 9; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; * @return The structCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructCon getStructCon() { if (structConBuilder_ == null) { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } else { if (sumCase_ == 9) { return structConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ public Builder setStructCon(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon value) { if (structConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structConBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ public Builder setStructCon( com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder builderForValue) { if (structConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ public Builder mergeStructCon(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon value) { if (structConBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 9) { structConBuilder_.mergeFrom(value); } structConBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ public Builder clearStructCon() { if (structConBuilder_ == null) { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; } structConBuilder_.clear(); } return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ public com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder getStructConBuilder() { return getStructConFieldBuilder().getBuilder(); } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder getStructConOrBuilder() { if ((sumCase_ == 9) && (structConBuilder_ != null)) { return structConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_1.Expr.StructCon struct_con = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructCon, com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder> getStructConFieldBuilder() { if (structConBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.getDefaultInstance(); } structConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructCon, com.daml.daml_lf_dev.DamlLf1.Expr.StructCon.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructConOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.StructCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged();; return structConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructProj, com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder> structProjBuilder_; /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; * @return Whether the structProj field is set. */ @java.lang.Override public boolean hasStructProj() { return sumCase_ == 10; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; * @return The structProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj getStructProj() { if (structProjBuilder_ == null) { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } else { if (sumCase_ == 10) { return structProjBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ public Builder setStructProj(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj value) { if (structProjBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structProjBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ public Builder setStructProj( com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder builderForValue) { if (structProjBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structProjBuilder_.setMessage(builderForValue.build()); } sumCase_ = 10; return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ public Builder mergeStructProj(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj value) { if (structProjBuilder_ == null) { if (sumCase_ == 10 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 10) { structProjBuilder_.mergeFrom(value); } structProjBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ public Builder clearStructProj() { if (structProjBuilder_ == null) { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; } structProjBuilder_.clear(); } return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ public com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder getStructProjBuilder() { return getStructProjFieldBuilder().getBuilder(); } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder getStructProjOrBuilder() { if ((sumCase_ == 10) && (structProjBuilder_ != null)) { return structProjBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_1.Expr.StructProj struct_proj = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructProj, com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder> getStructProjFieldBuilder() { if (structProjBuilder_ == null) { if (!(sumCase_ == 10)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.getDefaultInstance(); } structProjBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructProj, com.daml.daml_lf_dev.DamlLf1.Expr.StructProj.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructProjOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.StructProj) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 10; onChanged();; return structProjBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder> structUpdBuilder_; /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; * @return Whether the structUpd field is set. */ @java.lang.Override public boolean hasStructUpd() { return sumCase_ == 23; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; * @return The structUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd getStructUpd() { if (structUpdBuilder_ == null) { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } else { if (sumCase_ == 23) { return structUpdBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ public Builder setStructUpd(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd value) { if (structUpdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structUpdBuilder_.setMessage(value); } sumCase_ = 23; return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ public Builder setStructUpd( com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder builderForValue) { if (structUpdBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structUpdBuilder_.setMessage(builderForValue.build()); } sumCase_ = 23; return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ public Builder mergeStructUpd(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd value) { if (structUpdBuilder_ == null) { if (sumCase_ == 23 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 23) { structUpdBuilder_.mergeFrom(value); } structUpdBuilder_.setMessage(value); } sumCase_ = 23; return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ public Builder clearStructUpd() { if (structUpdBuilder_ == null) { if (sumCase_ == 23) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 23) { sumCase_ = 0; sum_ = null; } structUpdBuilder_.clear(); } return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder getStructUpdBuilder() { return getStructUpdFieldBuilder().getBuilder(); } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder getStructUpdOrBuilder() { if ((sumCase_ == 23) && (structUpdBuilder_ != null)) { return structUpdBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_1.Expr.StructUpd struct_upd = 23; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder> getStructUpdFieldBuilder() { if (structUpdBuilder_ == null) { if (!(sumCase_ == 23)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.getDefaultInstance(); } structUpdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.StructUpdOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 23; onChanged();; return structUpdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.App, com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder> appBuilder_; /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return sumCase_ == 11; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11; * @return The app. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.App getApp() { if (appBuilder_ == null) { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } else { if (sumCase_ == 11) { return appBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11; */ public Builder setApp(com.daml.daml_lf_dev.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; */ public Builder setApp( com.daml.daml_lf_dev.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; */ public Builder mergeApp(com.daml.daml_lf_dev.DamlLf1.Expr.App value) { if (appBuilder_ == null) { if (sumCase_ == 11 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.App.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder getAppBuilder() { return getAppFieldBuilder().getBuilder(); } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder getAppOrBuilder() { if ((sumCase_ == 11) && (appBuilder_ != null)) { return appBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_1.Expr.App app = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.App, com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder> getAppFieldBuilder() { if (appBuilder_ == null) { if (!(sumCase_ == 11)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.App.getDefaultInstance(); } appBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.App, com.daml.daml_lf_dev.DamlLf1.Expr.App.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.AppOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.App) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 11; onChanged();; return appBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.TyApp, com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder> tyAppBuilder_; /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; * @return Whether the tyApp field is set. */ @java.lang.Override public boolean hasTyApp() { return sumCase_ == 12; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; * @return The tyApp. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyApp getTyApp() { if (tyAppBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } else { if (sumCase_ == 12) { return tyAppBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; */ public Builder setTyApp(com.daml.daml_lf_dev.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; */ public Builder setTyApp( com.daml.daml_lf_dev.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; */ public Builder mergeTyApp(com.daml.daml_lf_dev.DamlLf1.Expr.TyApp value) { if (tyAppBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder getTyAppBuilder() { return getTyAppFieldBuilder().getBuilder(); } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder() { if ((sumCase_ == 12) && (tyAppBuilder_ != null)) { return tyAppBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_1.Expr.TyApp ty_app = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.TyApp, com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder> getTyAppFieldBuilder() { if (tyAppBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.getDefaultInstance(); } tyAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.TyApp, com.daml.daml_lf_dev.DamlLf1.Expr.TyApp.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.TyAppOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.TyApp) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged();; return tyAppBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Abs, com.daml.daml_lf_dev.DamlLf1.Expr.Abs.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder> absBuilder_; /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13; * @return Whether the abs field is set. */ @java.lang.Override public boolean hasAbs() { return sumCase_ == 13; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13; * @return The abs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Abs getAbs() { if (absBuilder_ == null) { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } else { if (sumCase_ == 13) { return absBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13; */ public Builder setAbs(com.daml.daml_lf_dev.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; */ public Builder setAbs( com.daml.daml_lf_dev.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; */ public Builder mergeAbs(com.daml.daml_lf_dev.DamlLf1.Expr.Abs value) { if (absBuilder_ == null) { if (sumCase_ == 13 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Abs.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Abs.Builder getAbsBuilder() { return getAbsFieldBuilder().getBuilder(); } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder() { if ((sumCase_ == 13) && (absBuilder_ != null)) { return absBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_1.Expr.Abs abs = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Abs, com.daml.daml_lf_dev.DamlLf1.Expr.Abs.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder> getAbsFieldBuilder() { if (absBuilder_ == null) { if (!(sumCase_ == 13)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Abs.getDefaultInstance(); } absBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Abs, com.daml.daml_lf_dev.DamlLf1.Expr.Abs.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.AbsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.Abs) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 13; onChanged();; return absBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder> tyAbsBuilder_; /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; * @return Whether the tyAbs field is set. */ @java.lang.Override public boolean hasTyAbs() { return sumCase_ == 14; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; * @return The tyAbs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs getTyAbs() { if (tyAbsBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } else { if (sumCase_ == 14) { return tyAbsBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; */ public Builder setTyAbs(com.daml.daml_lf_dev.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; */ public Builder setTyAbs( com.daml.daml_lf_dev.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; */ public Builder mergeTyAbs(com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs value) { if (tyAbsBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.Builder getTyAbsBuilder() { return getTyAbsFieldBuilder().getBuilder(); } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder() { if ((sumCase_ == 14) && (tyAbsBuilder_ != null)) { return tyAbsBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_1.Expr.TyAbs ty_abs = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder> getTyAbsFieldBuilder() { if (tyAbsBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.getDefaultInstance(); } tyAbsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.TyAbsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged();; return tyAbsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Case, com.daml.daml_lf_dev.DamlLf1.Case.Builder, com.daml.daml_lf_dev.DamlLf1.CaseOrBuilder> caseBuilder_; /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15; * @return Whether the case field is set. */ @java.lang.Override public boolean hasCase() { return sumCase_ == 15; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15; * @return The case. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Case getCase() { if (caseBuilder_ == null) { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Case) sum_; } return com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } else { if (sumCase_ == 15) { return caseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15; */ public Builder setCase(com.daml.daml_lf_dev.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; */ public Builder setCase( com.daml.daml_lf_dev.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; */ public Builder mergeCase(com.daml.daml_lf_dev.DamlLf1.Case value) { if (caseBuilder_ == null) { if (sumCase_ == 15 && sum_ != com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Case.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Case.Builder getCaseBuilder() { return getCaseFieldBuilder().getBuilder(); } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseOrBuilder getCaseOrBuilder() { if ((sumCase_ == 15) && (caseBuilder_ != null)) { return caseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Case) sum_; } return com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_1.Case case = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Case, com.daml.daml_lf_dev.DamlLf1.Case.Builder, com.daml.daml_lf_dev.DamlLf1.CaseOrBuilder> getCaseFieldBuilder() { if (caseBuilder_ == null) { if (!(sumCase_ == 15)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Case, com.daml.daml_lf_dev.DamlLf1.Case.Builder, com.daml.daml_lf_dev.DamlLf1.CaseOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Case) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 15; onChanged();; return caseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder> letBuilder_; /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16; * @return Whether the let field is set. */ @java.lang.Override public boolean hasLet() { return sumCase_ == 16; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16; * @return The let. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getLet() { if (letBuilder_ == null) { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } else { if (sumCase_ == 16) { return letBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16; */ public Builder setLet(com.daml.daml_lf_dev.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; */ public Builder setLet( com.daml.daml_lf_dev.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; */ public Builder mergeLet(com.daml.daml_lf_dev.DamlLf1.Block value) { if (letBuilder_ == null) { if (sumCase_ == 16 && sum_ != com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Block.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Block.Builder getLetBuilder() { return getLetFieldBuilder().getBuilder(); } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getLetOrBuilder() { if ((sumCase_ == 16) && (letBuilder_ != null)) { return letBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_1.Block let = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder> getLetFieldBuilder() { if (letBuilder_ == null) { if (!(sumCase_ == 16)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } letBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 16; onChanged();; return letBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Nil, com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder> nilBuilder_; /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 17; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Nil getNil() { if (nilBuilder_ == null) { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } else { if (sumCase_ == 17) { return nilBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17; */ public Builder setNil(com.daml.daml_lf_dev.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; */ public Builder setNil( com.daml.daml_lf_dev.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; */ public Builder mergeNil(com.daml.daml_lf_dev.DamlLf1.Expr.Nil value) { if (nilBuilder_ == null) { if (sumCase_ == 17 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Nil.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder getNilBuilder() { return getNilFieldBuilder().getBuilder(); } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder getNilOrBuilder() { if ((sumCase_ == 17) && (nilBuilder_ != null)) { return nilBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_1.Expr.Nil nil = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Nil, com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder> getNilFieldBuilder() { if (nilBuilder_ == null) { if (!(sumCase_ == 17)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Nil.getDefaultInstance(); } nilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Nil, com.daml.daml_lf_dev.DamlLf1.Expr.Nil.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.NilOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.Nil) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 17; onChanged();; return nilBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Cons, com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder> consBuilder_; /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 18; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Cons getCons() { if (consBuilder_ == null) { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } else { if (sumCase_ == 18) { return consBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18; */ public Builder setCons(com.daml.daml_lf_dev.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; */ public Builder setCons( com.daml.daml_lf_dev.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; */ public Builder mergeCons(com.daml.daml_lf_dev.DamlLf1.Expr.Cons value) { if (consBuilder_ == null) { if (sumCase_ == 18 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Cons.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder getConsBuilder() { return getConsFieldBuilder().getBuilder(); } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder() { if ((sumCase_ == 18) && (consBuilder_ != null)) { return consBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_1.Expr.Cons cons = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Cons, com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder> getConsFieldBuilder() { if (consBuilder_ == null) { if (!(sumCase_ == 18)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Cons.getDefaultInstance(); } consBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Cons, com.daml.daml_lf_dev.DamlLf1.Expr.Cons.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ConsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.Cons) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 18; onChanged();; return consBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update, com.daml.daml_lf_dev.DamlLf1.Update.Builder, com.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder> updateBuilder_; /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return sumCase_ == 20; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update getUpdate() { if (updateBuilder_ == null) { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf1.Update) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } else { if (sumCase_ == 20) { return updateBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20; */ public Builder setUpdate(com.daml.daml_lf_dev.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; */ public Builder setUpdate( com.daml.daml_lf_dev.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; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf1.Update value) { if (updateBuilder_ == null) { if (sumCase_ == 20 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Update.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder getUpdateOrBuilder() { if ((sumCase_ == 20) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf1.Update) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_1.Update update = 20; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update, com.daml.daml_lf_dev.DamlLf1.Update.Builder, com.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(sumCase_ == 20)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update, com.daml.daml_lf_dev.DamlLf1.Update.Builder, com.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 20; onChanged();; return updateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario, com.daml.daml_lf_dev.DamlLf1.Scenario.Builder, com.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder> scenarioBuilder_; /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21; * @return Whether the scenario field is set. */ @java.lang.Override public boolean hasScenario() { return sumCase_ == 21; } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21; * @return The scenario. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario getScenario() { if (scenarioBuilder_ == null) { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } else { if (sumCase_ == 21) { return scenarioBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21; */ public Builder setScenario(com.daml.daml_lf_dev.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; */ public Builder setScenario( com.daml.daml_lf_dev.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; */ public Builder mergeScenario(com.daml.daml_lf_dev.DamlLf1.Scenario value) { if (scenarioBuilder_ == null) { if (sumCase_ == 21 && sum_ != com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Scenario.Builder getScenarioBuilder() { return getScenarioFieldBuilder().getBuilder(); } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder() { if ((sumCase_ == 21) && (scenarioBuilder_ != null)) { return scenarioBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } } /** *
       * Scenario Expression ('ExpScenario')
       * 
* * .daml_lf_1.Scenario scenario = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario, com.daml.daml_lf_dev.DamlLf1.Scenario.Builder, com.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder> getScenarioFieldBuilder() { if (scenarioBuilder_ == null) { if (!(sumCase_ == 21)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } scenarioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario, com.daml.daml_lf_dev.DamlLf1.Scenario.Builder, com.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Scenario) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 21; onChanged();; return scenarioBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder> optionalNoneBuilder_; /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 26; } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone getOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } else { if (sumCase_ == 26) { return optionalNoneBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ public Builder setOptionalNone(com.daml.daml_lf_dev.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')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ public Builder setOptionalNone( com.daml.daml_lf_dev.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')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ public Builder mergeOptionalNone(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone value) { if (optionalNoneBuilder_ == null) { if (sumCase_ == 26 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.newBuilder((com.daml.daml_lf_dev.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')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ 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')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder getOptionalNoneBuilder() { return getOptionalNoneFieldBuilder().getBuilder(); } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder() { if ((sumCase_ == 26) && (optionalNoneBuilder_ != null)) { return optionalNoneBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_1.Expr.OptionalNone optional_none = 26; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder> getOptionalNoneFieldBuilder() { if (optionalNoneBuilder_ == null) { if (!(sumCase_ == 26)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.getDefaultInstance(); } optionalNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNoneOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 26; onChanged();; return optionalNoneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder> optionalSomeBuilder_; /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 27; } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome getOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } else { if (sumCase_ == 27) { return optionalSomeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ public Builder setOptionalSome(com.daml.daml_lf_dev.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')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ public Builder setOptionalSome( com.daml.daml_lf_dev.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')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ public Builder mergeOptionalSome(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (sumCase_ == 27 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.newBuilder((com.daml.daml_lf_dev.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')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ 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')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder getOptionalSomeBuilder() { return getOptionalSomeFieldBuilder().getBuilder(); } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if ((sumCase_ == 27) && (optionalSomeBuilder_ != null)) { return optionalSomeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_1.Expr.OptionalSome optional_some = 27; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder> getOptionalSomeFieldBuilder() { if (optionalSomeBuilder_ == null) { if (!(sumCase_ == 27)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.getDefaultInstance(); } optionalSomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSomeOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 27; onChanged();; return optionalSomeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToAny, com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyOrBuilder> toAnyBuilder_; /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30; * @return Whether the toAny field is set. */ @java.lang.Override 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; * @return The toAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAny getToAny() { if (toAnyBuilder_ == null) { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance(); } else { if (sumCase_ == 30) { return toAnyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance(); } } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30; */ public Builder setToAny(com.daml.daml_lf_dev.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; */ public Builder setToAny( com.daml.daml_lf_dev.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; */ public Builder mergeToAny(com.daml.daml_lf_dev.DamlLf1.Expr.ToAny value) { if (toAnyBuilder_ == null) { if (sumCase_ == 30 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyOrBuilder getToAnyOrBuilder() { if ((sumCase_ == 30) && (toAnyBuilder_ != null)) { return toAnyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance(); } } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Expr.ToAny to_any = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToAny, com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyOrBuilder> getToAnyFieldBuilder() { if (toAnyBuilder_ == null) { if (!(sumCase_ == 30)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.getDefaultInstance(); } toAnyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToAny, com.daml.daml_lf_dev.DamlLf1.Expr.ToAny.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ToAny) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 30; onChanged();; return toAnyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromAny, com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.Builder, com.daml.daml_lf_dev.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; * @return Whether the fromAny field is set. */ @java.lang.Override 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; * @return The fromAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAny getFromAny() { if (fromAnyBuilder_ == null) { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.getDefaultInstance(); } else { if (sumCase_ == 31) { return fromAnyBuilder_.getMessage(); } return com.daml.daml_lf_dev.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; */ public Builder setFromAny(com.daml.daml_lf_dev.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; */ public Builder setFromAny( com.daml.daml_lf_dev.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; */ public Builder mergeFromAny(com.daml.daml_lf_dev.DamlLf1.Expr.FromAny value) { if (fromAnyBuilder_ == null) { if (sumCase_ == 31 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder() { if ((sumCase_ == 31) && (fromAnyBuilder_ != null)) { return fromAnyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromAny, com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyOrBuilder> getFromAnyFieldBuilder() { if (fromAnyBuilder_ == null) { if (!(sumCase_ == 31)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.getDefaultInstance(); } fromAnyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromAny, com.daml.daml_lf_dev.DamlLf1.Expr.FromAny.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.FromAny) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 31; onChanged();; return fromAnyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeRepBuilder_; /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32; * @return Whether the typeRep field is set. */ @java.lang.Override public boolean hasTypeRep() { return sumCase_ == 32; } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32; * @return The typeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getTypeRep() { if (typeRepBuilder_ == null) { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf1.Type) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } else { if (sumCase_ == 32) { return typeRepBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32; */ public Builder setTypeRep(com.daml.daml_lf_dev.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; */ public Builder setTypeRep( com.daml.daml_lf_dev.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; */ public Builder mergeTypeRep(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeRepBuilder_ == null) { if (sumCase_ == 32 && sum_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeRepBuilder() { return getTypeRepFieldBuilder().getBuilder(); } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeRepOrBuilder() { if ((sumCase_ == 32) && (typeRepBuilder_ != null)) { return typeRepBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf1.Type) sum_; } return com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } } /** *
       * A type representation
       * *Available in versions >= 1.7*
       * 
* * .daml_lf_1.Type type_rep = 32; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeRepFieldBuilder() { if (typeRepBuilder_ == null) { if (!(sumCase_ == 32)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance(); } typeRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Type) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 32; onChanged();; return typeRepBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder> toAnyExceptionBuilder_; /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; * @return Whether the toAnyException field is set. */ @java.lang.Override public boolean hasToAnyException() { return sumCase_ == 33; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; * @return The toAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException getToAnyException() { if (toAnyExceptionBuilder_ == null) { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } else { if (sumCase_ == 33) { return toAnyExceptionBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ public Builder setToAnyException(com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException value) { if (toAnyExceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toAnyExceptionBuilder_.setMessage(value); } sumCase_ = 33; return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ public Builder setToAnyException( com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder builderForValue) { if (toAnyExceptionBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toAnyExceptionBuilder_.setMessage(builderForValue.build()); } sumCase_ = 33; return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ public Builder mergeToAnyException(com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException value) { if (toAnyExceptionBuilder_ == null) { if (sumCase_ == 33 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 33) { toAnyExceptionBuilder_.mergeFrom(value); } toAnyExceptionBuilder_.setMessage(value); } sumCase_ = 33; return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ public Builder clearToAnyException() { if (toAnyExceptionBuilder_ == null) { if (sumCase_ == 33) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 33) { sumCase_ = 0; sum_ = null; } toAnyExceptionBuilder_.clear(); } return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder getToAnyExceptionBuilder() { return getToAnyExceptionFieldBuilder().getBuilder(); } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder getToAnyExceptionOrBuilder() { if ((sumCase_ == 33) && (toAnyExceptionBuilder_ != null)) { return toAnyExceptionBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.ToAnyException to_any_exception = 33; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder> getToAnyExceptionFieldBuilder() { if (toAnyExceptionBuilder_ == null) { if (!(sumCase_ == 33)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.getDefaultInstance(); } toAnyExceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyExceptionOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 33; onChanged();; return toAnyExceptionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder> fromAnyExceptionBuilder_; /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; * @return Whether the fromAnyException field is set. */ @java.lang.Override public boolean hasFromAnyException() { return sumCase_ == 34; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; * @return The fromAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException getFromAnyException() { if (fromAnyExceptionBuilder_ == null) { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } else { if (sumCase_ == 34) { return fromAnyExceptionBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ public Builder setFromAnyException(com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException value) { if (fromAnyExceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromAnyExceptionBuilder_.setMessage(value); } sumCase_ = 34; return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ public Builder setFromAnyException( com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder builderForValue) { if (fromAnyExceptionBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromAnyExceptionBuilder_.setMessage(builderForValue.build()); } sumCase_ = 34; return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ public Builder mergeFromAnyException(com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException value) { if (fromAnyExceptionBuilder_ == null) { if (sumCase_ == 34 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 34) { fromAnyExceptionBuilder_.mergeFrom(value); } fromAnyExceptionBuilder_.setMessage(value); } sumCase_ = 34; return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ public Builder clearFromAnyException() { if (fromAnyExceptionBuilder_ == null) { if (sumCase_ == 34) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 34) { sumCase_ = 0; sum_ = null; } fromAnyExceptionBuilder_.clear(); } return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder getFromAnyExceptionBuilder() { return getFromAnyExceptionFieldBuilder().getBuilder(); } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder getFromAnyExceptionOrBuilder() { if ((sumCase_ == 34) && (fromAnyExceptionBuilder_ != null)) { return fromAnyExceptionBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.FromAnyException from_any_exception = 34; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder> getFromAnyExceptionFieldBuilder() { if (fromAnyExceptionBuilder_ == null) { if (!(sumCase_ == 34)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.getDefaultInstance(); } fromAnyExceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyExceptionOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 34; onChanged();; return fromAnyExceptionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Throw, com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder> throwBuilder_; /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; * @return Whether the throw field is set. */ @java.lang.Override public boolean hasThrow() { return sumCase_ == 35; } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; * @return The throw. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Throw getThrow() { if (throwBuilder_ == null) { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } else { if (sumCase_ == 35) { return throwBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ public Builder setThrow(com.daml.daml_lf_dev.DamlLf1.Expr.Throw value) { if (throwBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { throwBuilder_.setMessage(value); } sumCase_ = 35; return this; } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ public Builder setThrow( com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder builderForValue) { if (throwBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { throwBuilder_.setMessage(builderForValue.build()); } sumCase_ = 35; return this; } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ public Builder mergeThrow(com.daml.daml_lf_dev.DamlLf1.Expr.Throw value) { if (throwBuilder_ == null) { if (sumCase_ == 35 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Throw.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 35) { throwBuilder_.mergeFrom(value); } throwBuilder_.setMessage(value); } sumCase_ = 35; return this; } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ public Builder clearThrow() { if (throwBuilder_ == null) { if (sumCase_ == 35) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 35) { sumCase_ = 0; sum_ = null; } throwBuilder_.clear(); } return this; } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder getThrowBuilder() { return getThrowFieldBuilder().getBuilder(); } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder getThrowOrBuilder() { if ((sumCase_ == 35) && (throwBuilder_ != null)) { return throwBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } } /** *
       * Throw an exception ('ExpThrow').
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Expr.Throw throw = 35; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Throw, com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder> getThrowFieldBuilder() { if (throwBuilder_ == null) { if (!(sumCase_ == 35)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Throw.getDefaultInstance(); } throwBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Throw, com.daml.daml_lf_dev.DamlLf1.Expr.Throw.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ThrowOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.Throw) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 35; onChanged();; return throwBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder> toInterfaceBuilder_; /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; * @return Whether the toInterface field is set. */ @java.lang.Override public boolean hasToInterface() { return sumCase_ == 36; } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; * @return The toInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface getToInterface() { if (toInterfaceBuilder_ == null) { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } else { if (sumCase_ == 36) { return toInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ public Builder setToInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface value) { if (toInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toInterfaceBuilder_.setMessage(value); } sumCase_ = 36; return this; } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ public Builder setToInterface( com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder builderForValue) { if (toInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 36; return this; } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ public Builder mergeToInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface value) { if (toInterfaceBuilder_ == null) { if (sumCase_ == 36 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 36) { toInterfaceBuilder_.mergeFrom(value); } toInterfaceBuilder_.setMessage(value); } sumCase_ = 36; return this; } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ public Builder clearToInterface() { if (toInterfaceBuilder_ == null) { if (sumCase_ == 36) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 36) { sumCase_ = 0; sum_ = null; } toInterfaceBuilder_.clear(); } return this; } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder getToInterfaceBuilder() { return getToInterfaceFieldBuilder().getBuilder(); } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder getToInterfaceOrBuilder() { if ((sumCase_ == 36) && (toInterfaceBuilder_ != null)) { return toInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToInterface to_interface = 36; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder> getToInterfaceFieldBuilder() { if (toInterfaceBuilder_ == null) { if (!(sumCase_ == 36)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.getDefaultInstance(); } toInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 36; onChanged();; return toInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder> fromInterfaceBuilder_; /** * .daml_lf_1.Expr.FromInterface from_interface = 37; * @return Whether the fromInterface field is set. */ @java.lang.Override public boolean hasFromInterface() { return sumCase_ == 37; } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; * @return The fromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface getFromInterface() { if (fromInterfaceBuilder_ == null) { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } else { if (sumCase_ == 37) { return fromInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ public Builder setFromInterface(com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface value) { if (fromInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromInterfaceBuilder_.setMessage(value); } sumCase_ = 37; return this; } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ public Builder setFromInterface( com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder builderForValue) { if (fromInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 37; return this; } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ public Builder mergeFromInterface(com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface value) { if (fromInterfaceBuilder_ == null) { if (sumCase_ == 37 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 37) { fromInterfaceBuilder_.mergeFrom(value); } fromInterfaceBuilder_.setMessage(value); } sumCase_ = 37; return this; } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ public Builder clearFromInterface() { if (fromInterfaceBuilder_ == null) { if (sumCase_ == 37) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 37) { sumCase_ = 0; sum_ = null; } fromInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder getFromInterfaceBuilder() { return getFromInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder getFromInterfaceOrBuilder() { if ((sumCase_ == 37) && (fromInterfaceBuilder_ != null)) { return fromInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.FromInterface from_interface = 37; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder> getFromInterfaceFieldBuilder() { if (fromInterfaceBuilder_ == null) { if (!(sumCase_ == 37)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.getDefaultInstance(); } fromInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 37; onChanged();; return fromInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder> callInterfaceBuilder_; /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; * @return Whether the callInterface field is set. */ @java.lang.Override public boolean hasCallInterface() { return sumCase_ == 38; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; * @return The callInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface getCallInterface() { if (callInterfaceBuilder_ == null) { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } else { if (sumCase_ == 38) { return callInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ public Builder setCallInterface(com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface value) { if (callInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { callInterfaceBuilder_.setMessage(value); } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ public Builder setCallInterface( com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder builderForValue) { if (callInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { callInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ public Builder mergeCallInterface(com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface value) { if (callInterfaceBuilder_ == null) { if (sumCase_ == 38 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 38) { callInterfaceBuilder_.mergeFrom(value); } callInterfaceBuilder_.setMessage(value); } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ public Builder clearCallInterface() { if (callInterfaceBuilder_ == null) { if (sumCase_ == 38) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 38) { sumCase_ = 0; sum_ = null; } callInterfaceBuilder_.clear(); } return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder getCallInterfaceBuilder() { return getCallInterfaceFieldBuilder().getBuilder(); } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder() { if ((sumCase_ == 38) && (callInterfaceBuilder_ != null)) { return callInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder> getCallInterfaceFieldBuilder() { if (callInterfaceBuilder_ == null) { if (!(sumCase_ == 38)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.getDefaultInstance(); } callInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 38; onChanged();; return callInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder> toRequiredInterfaceBuilder_; /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; * @return Whether the toRequiredInterface field is set. */ @java.lang.Override public boolean hasToRequiredInterface() { return sumCase_ == 39; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; * @return The toRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getToRequiredInterface() { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 39) { return toRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ public Builder setToRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface value) { if (toRequiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 39; return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ public Builder setToRequiredInterface( com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder builderForValue) { if (toRequiredInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toRequiredInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 39; return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ public Builder mergeToRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface value) { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 39 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 39) { toRequiredInterfaceBuilder_.mergeFrom(value); } toRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 39; return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ public Builder clearToRequiredInterface() { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 39) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 39) { sumCase_ = 0; sum_ = null; } toRequiredInterfaceBuilder_.clear(); } return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder getToRequiredInterfaceBuilder() { return getToRequiredInterfaceFieldBuilder().getBuilder(); } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder() { if ((sumCase_ == 39) && (toRequiredInterfaceBuilder_ != null)) { return toRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 39; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder> getToRequiredInterfaceFieldBuilder() { if (toRequiredInterfaceBuilder_ == null) { if (!(sumCase_ == 39)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } toRequiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 39; onChanged();; return toRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder> fromRequiredInterfaceBuilder_; /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; * @return Whether the fromRequiredInterface field is set. */ @java.lang.Override public boolean hasFromRequiredInterface() { return sumCase_ == 40; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; * @return The fromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getFromRequiredInterface() { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 40) { return fromRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ public Builder setFromRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface value) { if (fromRequiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 40; return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ public Builder setFromRequiredInterface( com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder builderForValue) { if (fromRequiredInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromRequiredInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 40; return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ public Builder mergeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface value) { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 40 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 40) { fromRequiredInterfaceBuilder_.mergeFrom(value); } fromRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 40; return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ public Builder clearFromRequiredInterface() { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 40) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 40) { sumCase_ = 0; sum_ = null; } fromRequiredInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder getFromRequiredInterfaceBuilder() { return getFromRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder() { if ((sumCase_ == 40) && (fromRequiredInterfaceBuilder_ != null)) { return fromRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 40; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder> getFromRequiredInterfaceFieldBuilder() { if (fromRequiredInterfaceBuilder_ == null) { if (!(sumCase_ == 40)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } fromRequiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 40; onChanged();; return fromRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder> interfaceTemplateTypeRepBuilder_; /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; * @return Whether the interfaceTemplateTypeRep field is set. */ @java.lang.Override public boolean hasInterfaceTemplateTypeRep() { return sumCase_ == 41; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; * @return The interfaceTemplateTypeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep() { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } else { if (sumCase_ == 41) { return interfaceTemplateTypeRepBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ public Builder setInterfaceTemplateTypeRep(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep value) { if (interfaceTemplateTypeRepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { interfaceTemplateTypeRepBuilder_.setMessage(value); } sumCase_ = 41; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ public Builder setInterfaceTemplateTypeRep( com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder builderForValue) { if (interfaceTemplateTypeRepBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { interfaceTemplateTypeRepBuilder_.setMessage(builderForValue.build()); } sumCase_ = 41; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ public Builder mergeInterfaceTemplateTypeRep(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep value) { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 41 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 41) { interfaceTemplateTypeRepBuilder_.mergeFrom(value); } interfaceTemplateTypeRepBuilder_.setMessage(value); } sumCase_ = 41; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ public Builder clearInterfaceTemplateTypeRep() { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 41) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 41) { sumCase_ = 0; sum_ = null; } interfaceTemplateTypeRepBuilder_.clear(); } return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder getInterfaceTemplateTypeRepBuilder() { return getInterfaceTemplateTypeRepFieldBuilder().getBuilder(); } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder() { if ((sumCase_ == 41) && (interfaceTemplateTypeRepBuilder_ != null)) { return interfaceTemplateTypeRepBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 41; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder> getInterfaceTemplateTypeRepFieldBuilder() { if (interfaceTemplateTypeRepBuilder_ == null) { if (!(sumCase_ == 41)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } interfaceTemplateTypeRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 41; onChanged();; return interfaceTemplateTypeRepBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder> signatoryInterfaceBuilder_; /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; * @return Whether the signatoryInterface field is set. */ @java.lang.Override public boolean hasSignatoryInterface() { return sumCase_ == 42; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; * @return The signatoryInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getSignatoryInterface() { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } else { if (sumCase_ == 42) { return signatoryInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ public Builder setSignatoryInterface(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface value) { if (signatoryInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { signatoryInterfaceBuilder_.setMessage(value); } sumCase_ = 42; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ public Builder setSignatoryInterface( com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder builderForValue) { if (signatoryInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { signatoryInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 42; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ public Builder mergeSignatoryInterface(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface value) { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 42 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 42) { signatoryInterfaceBuilder_.mergeFrom(value); } signatoryInterfaceBuilder_.setMessage(value); } sumCase_ = 42; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ public Builder clearSignatoryInterface() { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 42) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 42) { sumCase_ = 0; sum_ = null; } signatoryInterfaceBuilder_.clear(); } return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder getSignatoryInterfaceBuilder() { return getSignatoryInterfaceFieldBuilder().getBuilder(); } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder() { if ((sumCase_ == 42) && (signatoryInterfaceBuilder_ != null)) { return signatoryInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 42; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder> getSignatoryInterfaceFieldBuilder() { if (signatoryInterfaceBuilder_ == null) { if (!(sumCase_ == 42)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } signatoryInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 42; onChanged();; return signatoryInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder> observerInterfaceBuilder_; /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; * @return Whether the observerInterface field is set. */ @java.lang.Override public boolean hasObserverInterface() { return sumCase_ == 43; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; * @return The observerInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getObserverInterface() { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } else { if (sumCase_ == 43) { return observerInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ public Builder setObserverInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface value) { if (observerInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { observerInterfaceBuilder_.setMessage(value); } sumCase_ = 43; return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ public Builder setObserverInterface( com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder builderForValue) { if (observerInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { observerInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 43; return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ public Builder mergeObserverInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface value) { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 43 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 43) { observerInterfaceBuilder_.mergeFrom(value); } observerInterfaceBuilder_.setMessage(value); } sumCase_ = 43; return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ public Builder clearObserverInterface() { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 43) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 43) { sumCase_ = 0; sum_ = null; } observerInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder getObserverInterfaceBuilder() { return getObserverInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder() { if ((sumCase_ == 43) && (observerInterfaceBuilder_ != null)) { return observerInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 43; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder> getObserverInterfaceFieldBuilder() { if (observerInterfaceBuilder_ == null) { if (!(sumCase_ == 43)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } observerInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 43; onChanged();; return observerInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder> unsafeFromInterfaceBuilder_; /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; * @return Whether the unsafeFromInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromInterface() { return sumCase_ == 44; } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; * @return The unsafeFromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getUnsafeFromInterface() { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 44) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } else { if (sumCase_ == 44) { return unsafeFromInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ public Builder setUnsafeFromInterface(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface value) { if (unsafeFromInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { unsafeFromInterfaceBuilder_.setMessage(value); } sumCase_ = 44; return this; } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ public Builder setUnsafeFromInterface( com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder builderForValue) { if (unsafeFromInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { unsafeFromInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 44; return this; } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ public Builder mergeUnsafeFromInterface(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface value) { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 44 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 44) { unsafeFromInterfaceBuilder_.mergeFrom(value); } unsafeFromInterfaceBuilder_.setMessage(value); } sumCase_ = 44; return this; } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ public Builder clearUnsafeFromInterface() { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 44) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 44) { sumCase_ = 0; sum_ = null; } unsafeFromInterfaceBuilder_.clear(); } return this; } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder getUnsafeFromInterfaceBuilder() { return getUnsafeFromInterfaceFieldBuilder().getBuilder(); } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder() { if ((sumCase_ == 44) && (unsafeFromInterfaceBuilder_ != null)) { return unsafeFromInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 44) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } } /** *
       * Unsafe conversion to/from interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 44; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder> getUnsafeFromInterfaceFieldBuilder() { if (unsafeFromInterfaceBuilder_ == null) { if (!(sumCase_ == 44)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } unsafeFromInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 44; onChanged();; return unsafeFromInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder> unsafeFromRequiredInterfaceBuilder_; /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; * @return Whether the unsafeFromRequiredInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromRequiredInterface() { return sumCase_ == 45; } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; * @return The unsafeFromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 45) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 45) { return unsafeFromRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ public Builder setUnsafeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface value) { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { unsafeFromRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 45; return this; } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ public Builder setUnsafeFromRequiredInterface( com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder builderForValue) { if (unsafeFromRequiredInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { unsafeFromRequiredInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 45; return this; } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ public Builder mergeUnsafeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface value) { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 45 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 45) { unsafeFromRequiredInterfaceBuilder_.mergeFrom(value); } unsafeFromRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 45; return this; } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ public Builder clearUnsafeFromRequiredInterface() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 45) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 45) { sumCase_ = 0; sum_ = null; } unsafeFromRequiredInterfaceBuilder_.clear(); } return this; } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder getUnsafeFromRequiredInterfaceBuilder() { return getUnsafeFromRequiredInterfaceFieldBuilder().getBuilder(); } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder() { if ((sumCase_ == 45) && (unsafeFromRequiredInterfaceBuilder_ != null)) { return unsafeFromRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 45) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } } /** *
       * Unsafe downcast interface payloads.
       * 
* * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 45; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder> getUnsafeFromRequiredInterfaceFieldBuilder() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (!(sumCase_ == 45)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } unsafeFromRequiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 45; onChanged();; return unsafeFromRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Experimental, com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder> experimentalBuilder_; /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; * @return Whether the experimental field is set. */ @java.lang.Override public boolean hasExperimental() { return sumCase_ == 9999; } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; * @return The experimental. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.Experimental getExperimental() { if (experimentalBuilder_ == null) { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance(); } else { if (sumCase_ == 9999) { return experimentalBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance(); } } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ public Builder setExperimental(com.daml.daml_lf_dev.DamlLf1.Expr.Experimental value) { if (experimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { experimentalBuilder_.setMessage(value); } sumCase_ = 9999; return this; } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ public Builder setExperimental( com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder builderForValue) { if (experimentalBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { experimentalBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9999; return this; } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ public Builder mergeExperimental(com.daml.daml_lf_dev.DamlLf1.Expr.Experimental value) { if (experimentalBuilder_ == null) { if (sumCase_ == 9999 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 9999) { experimentalBuilder_.mergeFrom(value); } experimentalBuilder_.setMessage(value); } sumCase_ = 9999; return this; } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ public Builder clearExperimental() { if (experimentalBuilder_ == null) { if (sumCase_ == 9999) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 9999) { sumCase_ = 0; sum_ = null; } experimentalBuilder_.clear(); } return this; } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder getExperimentalBuilder() { return getExperimentalFieldBuilder().getBuilder(); } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder getExperimentalOrBuilder() { if ((sumCase_ == 9999) && (experimentalBuilder_ != null)) { return experimentalBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance(); } } /** *
       * *Available only in 1.dev*
       * 
* * .daml_lf_1.Expr.Experimental experimental = 9999; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Experimental, com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder> getExperimentalFieldBuilder() { if (experimentalBuilder_ == null) { if (!(sumCase_ == 9999)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.getDefaultInstance(); } experimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.Experimental, com.daml.daml_lf_dev.DamlLf1.Expr.Experimental.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ExperimentalOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9999; onChanged();; return experimentalBuilder_; } @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.daml.daml_lf_dev.DamlLf1.Expr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the default field is set. */ boolean hasDefault(); /** * .daml_lf_1.Unit default = 1; * @return The default. */ com.daml.daml_lf_dev.DamlLf1.Unit getDefault(); /** * .daml_lf_1.Unit default = 1; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getDefaultOrBuilder(); /** * .daml_lf_1.CaseAlt.Variant variant = 2; * @return Whether the variant field is set. */ boolean hasVariant(); /** * .daml_lf_1.CaseAlt.Variant variant = 2; * @return The variant. */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant getVariant(); /** * .daml_lf_1.CaseAlt.Variant variant = 2; */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder getVariantOrBuilder(); /** * .daml_lf_1.PrimCon prim_con = 3; * @return Whether the primCon field is set. */ boolean hasPrimCon(); /** * .daml_lf_1.PrimCon prim_con = 3; * @return The enum numeric value on the wire for primCon. */ int getPrimConValue(); /** * .daml_lf_1.PrimCon prim_con = 3; * @return The primCon. */ com.daml.daml_lf_dev.DamlLf1.PrimCon getPrimCon(); /** * .daml_lf_1.Unit nil = 4; * @return Whether the nil field is set. */ boolean hasNil(); /** * .daml_lf_1.Unit nil = 4; * @return The nil. */ com.daml.daml_lf_dev.DamlLf1.Unit getNil(); /** * .daml_lf_1.Unit nil = 4; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getNilOrBuilder(); /** * .daml_lf_1.CaseAlt.Cons cons = 5; * @return Whether the cons field is set. */ boolean hasCons(); /** * .daml_lf_1.CaseAlt.Cons cons = 5; * @return The cons. */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons getCons(); /** * .daml_lf_1.CaseAlt.Cons cons = 5; */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder getConsOrBuilder(); /** * .daml_lf_1.Unit optional_none = 7; * @return Whether the optionalNone field is set. */ boolean hasOptionalNone(); /** * .daml_lf_1.Unit optional_none = 7; * @return The optionalNone. */ com.daml.daml_lf_dev.DamlLf1.Unit getOptionalNone(); /** * .daml_lf_1.Unit optional_none = 7; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getOptionalNoneOrBuilder(); /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; * @return Whether the optionalSome field is set. */ boolean hasOptionalSome(); /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; * @return The optionalSome. */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome getOptionalSome(); /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder(); /** * .daml_lf_1.CaseAlt.Enum enum = 9; * @return Whether the enum field is set. */ boolean hasEnum(); /** * .daml_lf_1.CaseAlt.Enum enum = 9; * @return The enum. */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum getEnum(); /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ com.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder getEnumOrBuilder(); /** * .daml_lf_1.Expr body = 6; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_1.Expr body = 6; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** * .daml_lf_1.Expr body = 6; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 24: { int rawValue = input.readEnum(); sumCase_ = 3; sum_ = rawValue; break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } case 58: { com.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } case 74: { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder subBuilder = null; if (sumCase_ == 9) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.class, com.daml.daml_lf_dev.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; * @return Whether the con field is set. */ boolean hasCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; * @return The con. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getConOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2; * @return Whether the variantStr field is set. */ boolean hasVariantStr(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2; * @return The variantStr. */ java.lang.String getVariantStr(); /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2; * @return The bytes for variantStr. */ com.google.protobuf.ByteString getVariantStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 4; * @return Whether the variantInternedStr field is set. */ boolean hasVariantInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 4; * @return The variantInternedStr. */ int getVariantInternedStr(); /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3; * @return Whether the binderStr field is set. */ boolean hasBinderStr(); /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3; * @return The binderStr. */ java.lang.String getBinderStr(); /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3; * @return The bytes for binderStr. */ com.google.protobuf.ByteString getBinderStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 5; * @return Whether the binderInternedStr field is set. */ boolean hasBinderInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 5; * @return The binderInternedStr. */ int getBinderInternedStr(); public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.VariantCase getVariantCase(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (con_ != null) { subBuilder = con_.toBuilder(); } con_ = input.readMessage(com.daml.daml_lf_dev.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: { variant_ = input.readInt32(); variantCase_ = 4; break; } case 40: { binder_ = input.readInt32(); binderCase_ = 5; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder.class); } private int variantCase_ = 0; private java.lang.Object variant_; public enum VariantCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VARIANT_STR(2), VARIANT_INTERNED_STR(4), VARIANT_NOT_SET(0); private final int value; private VariantCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BINDER_STR(3), BINDER_INTERNED_STR(5), BINDER_NOT_SET(0); private final int value; private BinderCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.TypeConName con_; /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; * @return Whether the con field is set. */ @java.lang.Override public boolean hasCon() { return con_ != null; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getCon() { return con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { return getCon(); } public static final int VARIANT_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2; * @return Whether the variantStr field is set. */ public boolean hasVariantStr() { return variantCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string variant_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the variantInternedStr field is set. */ @java.lang.Override public boolean hasVariantInternedStr() { return variantCase_ == 4; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 4; * @return The variantInternedStr. */ @java.lang.Override 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; * @return Whether the binderStr field is set. */ public boolean hasBinderStr() { return binderCase_ == 3; } /** *
       * *Must be a valid identifier*
       * 
* * string binder_str = 3; * @return The 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; * @return The bytes for 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; * @return Whether the binderInternedStr field is set. */ @java.lang.Override public boolean hasBinderInternedStr() { return binderCase_ == 5; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 5; * @return The binderInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Variant_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant build() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant buildPartial() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName con_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> conBuilder_; /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; * @return Whether the con field is set. */ public boolean hasCon() { return conBuilder_ != null || con_ != null; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; * @return The con. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getCon() { if (conBuilder_ == null) { return con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } else { return conBuilder_.getMessage(); } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public Builder setCon(com.daml.daml_lf_dev.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; */ public Builder setCon( com.daml.daml_lf_dev.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; */ public Builder mergeCon(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (conBuilder_ == null) { if (con_ != null) { con_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getConBuilder() { onChanged(); return getConFieldBuilder().getBuilder(); } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { if (conBuilder_ != null) { return conBuilder_.getMessageOrBuilder(); } else { return con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getCon(), getParentForChildren(), isClean()); con_ = null; } return conBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2; * @return Whether the variantStr field is set. */ @java.lang.Override public boolean hasVariantStr() { return variantCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2; * @return The variantStr. */ @java.lang.Override 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; * @return The bytes for variantStr. */ @java.lang.Override 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; * @param value The variantStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVariantStr() { if (variantCase_ == 2) { variantCase_ = 0; variant_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string variant_str = 2; * @param value The bytes for variantStr to set. * @return This builder for chaining. */ 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; * @return Whether the variantInternedStr field is set. */ public boolean hasVariantInternedStr() { return variantCase_ == 4; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 4; * @return The 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; * @param value The variantInternedStr to set. * @return This builder for chaining. */ public Builder setVariantInternedStr(int value) { variantCase_ = 4; variant_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 4; * @return This builder for chaining. */ public Builder clearVariantInternedStr() { if (variantCase_ == 4) { variantCase_ = 0; variant_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3; * @return Whether the binderStr field is set. */ @java.lang.Override public boolean hasBinderStr() { return binderCase_ == 3; } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3; * @return The binderStr. */ @java.lang.Override 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; * @return The bytes for binderStr. */ @java.lang.Override 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; * @param value The binderStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearBinderStr() { if (binderCase_ == 3) { binderCase_ = 0; binder_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string binder_str = 3; * @param value The bytes for binderStr to set. * @return This builder for chaining. */ 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; * @return Whether the binderInternedStr field is set. */ public boolean hasBinderInternedStr() { return binderCase_ == 5; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 5; * @return The 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; * @param value The binderInternedStr to set. * @return This builder for chaining. */ public Builder setBinderInternedStr(int value) { binderCase_ = 5; binder_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 5; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the con field is set. */ boolean hasCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; * @return The con. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getConOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2; * @return Whether the constructorStr field is set. */ boolean hasConstructorStr(); /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2; * @return The constructorStr. */ java.lang.String getConstructorStr(); /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2; * @return The bytes for constructorStr. */ com.google.protobuf.ByteString getConstructorStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 3; * @return Whether the constructorInternedStr field is set. */ boolean hasConstructorInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 3; * @return The constructorInternedStr. */ int getConstructorInternedStr(); public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.ConstructorCase getConstructorCase(); } /** *
     * Enum pattern
     * 
* * 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (con_ != null) { subBuilder = con_.toBuilder(); } con_ = input.readMessage(com.daml.daml_lf_dev.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: { constructor_ = input.readInt32(); constructorCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder.class); } private int constructorCase_ = 0; private java.lang.Object constructor_; public enum ConstructorCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONSTRUCTOR_STR(2), CONSTRUCTOR_INTERNED_STR(3), CONSTRUCTOR_NOT_SET(0); private final int value; private ConstructorCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.TypeConName con_; /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; * @return Whether the con field is set. */ @java.lang.Override public boolean hasCon() { return con_ != null; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getCon() { return con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } /** *
       * name of the type constructor
       * 
* * .daml_lf_1.TypeConName con = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { return getCon(); } public static final int CONSTRUCTOR_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2; * @return Whether the constructorStr field is set. */ public boolean hasConstructorStr() { return constructorCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string constructor_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the constructorInternedStr field is set. */ @java.lang.Override public boolean hasConstructorInternedStr() { return constructorCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 3; * @return The constructorInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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
       * 
* * 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.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Enum_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum build() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum buildPartial() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName con_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> conBuilder_; /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; * @return Whether the con field is set. */ public boolean hasCon() { return conBuilder_ != null || con_ != null; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; * @return The con. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getCon() { if (conBuilder_ == null) { return con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } else { return conBuilder_.getMessage(); } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public Builder setCon(com.daml.daml_lf_dev.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; */ public Builder setCon( com.daml.daml_lf_dev.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; */ public Builder mergeCon(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (conBuilder_ == null) { if (con_ != null) { con_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getConBuilder() { onChanged(); return getConFieldBuilder().getBuilder(); } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getConOrBuilder() { if (conBuilder_ != null) { return conBuilder_.getMessageOrBuilder(); } else { return con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getCon(), getParentForChildren(), isClean()); con_ = null; } return conBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2; * @return Whether the constructorStr field is set. */ @java.lang.Override public boolean hasConstructorStr() { return constructorCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2; * @return The constructorStr. */ @java.lang.Override 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; * @return The bytes for constructorStr. */ @java.lang.Override 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; * @param value The constructorStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearConstructorStr() { if (constructorCase_ == 2) { constructorCase_ = 0; constructor_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string constructor_str = 2; * @param value The bytes for constructorStr to set. * @return This builder for chaining. */ 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; * @return Whether the constructorInternedStr field is set. */ public boolean hasConstructorInternedStr() { return constructorCase_ == 3; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 3; * @return The 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; * @param value The constructorInternedStr to set. * @return This builder for chaining. */ public Builder setConstructorInternedStr(int value) { constructorCase_ = 3; constructor_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the varHeadStr field is set. */ boolean hasVarHeadStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1; * @return The varHeadStr. */ java.lang.String getVarHeadStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1; * @return The bytes for varHeadStr. */ com.google.protobuf.ByteString getVarHeadStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 3; * @return Whether the varHeadInternedStr field is set. */ boolean hasVarHeadInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 3; * @return The varHeadInternedStr. */ int getVarHeadInternedStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2; * @return Whether the varTailStr field is set. */ boolean hasVarTailStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2; * @return The varTailStr. */ java.lang.String getVarTailStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2; * @return The bytes for varTailStr. */ com.google.protobuf.ByteString getVarTailStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 4; * @return Whether the varTailInternedStr field is set. */ boolean hasVarTailInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 4; * @return The varTailInternedStr. */ int getVarTailInternedStr(); public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.VarHeadCase getVarHeadCase(); public com.daml.daml_lf_dev.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: { varHead_ = input.readInt32(); varHeadCase_ = 3; break; } case 32: { varTail_ = input.readInt32(); varTailCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder.class); } private int varHeadCase_ = 0; private java.lang.Object varHead_; public enum VarHeadCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR_HEAD_STR(1), VAR_HEAD_INTERNED_STR(3), VARHEAD_NOT_SET(0); private final int value; private VarHeadCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR_TAIL_STR(2), VAR_TAIL_INTERNED_STR(4), VARTAIL_NOT_SET(0); private final int value; private VarTailCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the varHeadStr field is set. */ public boolean hasVarHeadStr() { return varHeadCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string var_head_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the varHeadInternedStr field is set. */ @java.lang.Override public boolean hasVarHeadInternedStr() { return varHeadCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 3; * @return The varHeadInternedStr. */ @java.lang.Override 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; * @return Whether the varTailStr field is set. */ public boolean hasVarTailStr() { return varTailCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string var_tail_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the varTailInternedStr field is set. */ @java.lang.Override public boolean hasVarTailInternedStr() { return varTailCase_ == 4; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 4; * @return The varTailInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_Cons_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons build() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons buildPartial() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the varHeadStr field is set. */ @java.lang.Override public boolean hasVarHeadStr() { return varHeadCase_ == 1; } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1; * @return The varHeadStr. */ @java.lang.Override 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; * @return The bytes for varHeadStr. */ @java.lang.Override 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; * @param value The varHeadStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarHeadStr() { if (varHeadCase_ == 1) { varHeadCase_ = 0; varHead_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_head_str = 1; * @param value The bytes for varHeadStr to set. * @return This builder for chaining. */ 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; * @return Whether the varHeadInternedStr field is set. */ public boolean hasVarHeadInternedStr() { return varHeadCase_ == 3; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 3; * @return The 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; * @param value The varHeadInternedStr to set. * @return This builder for chaining. */ public Builder setVarHeadInternedStr(int value) { varHeadCase_ = 3; varHead_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarHeadInternedStr() { if (varHeadCase_ == 3) { varHeadCase_ = 0; varHead_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2; * @return Whether the varTailStr field is set. */ @java.lang.Override public boolean hasVarTailStr() { return varTailCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2; * @return The varTailStr. */ @java.lang.Override 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; * @return The bytes for varTailStr. */ @java.lang.Override 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; * @param value The varTailStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarTailStr() { if (varTailCase_ == 2) { varTailCase_ = 0; varTail_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_tail_str = 2; * @param value The bytes for varTailStr to set. * @return This builder for chaining. */ 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; * @return Whether the varTailInternedStr field is set. */ public boolean hasVarTailInternedStr() { return varTailCase_ == 4; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 4; * @return The 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; * @param value The varTailInternedStr to set. * @return This builder for chaining. */ public Builder setVarTailInternedStr(int value) { varTailCase_ = 4; varTail_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 4; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the varBodyStr field is set. */ boolean hasVarBodyStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1; * @return The varBodyStr. */ java.lang.String getVarBodyStr(); /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1; * @return The bytes for varBodyStr. */ com.google.protobuf.ByteString getVarBodyStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 2; * @return Whether the varBodyInternedStr field is set. */ boolean hasVarBodyInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 2; * @return The varBodyInternedStr. */ int getVarBodyInternedStr(); public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.VarBodyCase getVarBodyCase(); } /** *
     * Non empty option patterm
     * 
* * 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: { varBody_ = input.readInt32(); varBodyCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder.class); } private int varBodyCase_ = 0; private java.lang.Object varBody_; public enum VarBodyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VAR_BODY_STR(1), VAR_BODY_INTERNED_STR(2), VARBODY_NOT_SET(0); private final int value; private VarBodyCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the varBodyStr field is set. */ public boolean hasVarBodyStr() { return varBodyCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string var_body_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the varBodyInternedStr field is set. */ @java.lang.Override public boolean hasVarBodyInternedStr() { return varBodyCase_ == 2; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 2; * @return The varBodyInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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
       * 
* * 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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_OptionalSome_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome build() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome buildPartial() { com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the varBodyStr field is set. */ @java.lang.Override public boolean hasVarBodyStr() { return varBodyCase_ == 1; } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1; * @return The varBodyStr. */ @java.lang.Override 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; * @return The bytes for varBodyStr. */ @java.lang.Override 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; * @param value The varBodyStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearVarBodyStr() { if (varBodyCase_ == 1) { varBodyCase_ = 0; varBody_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string var_body_str = 1; * @param value The bytes for varBodyStr to set. * @return This builder for chaining. */ 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; * @return Whether the varBodyInternedStr field is set. */ public boolean hasVarBodyInternedStr() { return varBodyCase_ == 2; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 2; * @return The 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; * @param value The varBodyInternedStr to set. * @return This builder for chaining. */ public Builder setVarBodyInternedStr(int value) { varBodyCase_ = 2; varBody_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 2; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the default field is set. */ @java.lang.Override public boolean hasDefault() { return sumCase_ == 1; } /** * .daml_lf_1.Unit default = 1; * @return The default. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getDefault() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit default = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getDefaultOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 2; /** * .daml_lf_1.CaseAlt.Variant variant = 2; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 2; } /** * .daml_lf_1.CaseAlt.Variant variant = 2; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant getVariant() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } /** * .daml_lf_1.CaseAlt.Variant variant = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder getVariantOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } public static final int PRIM_CON_FIELD_NUMBER = 3; /** * .daml_lf_1.PrimCon prim_con = 3; * @return Whether the primCon field is set. */ public boolean hasPrimCon() { return sumCase_ == 3; } /** * .daml_lf_1.PrimCon prim_con = 3; * @return The enum numeric value on the wire for primCon. */ public int getPrimConValue() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } /** * .daml_lf_1.PrimCon prim_con = 3; * @return The primCon. */ public com.daml.daml_lf_dev.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.PrimCon.CON_UNIT; } public static final int NIL_FIELD_NUMBER = 4; /** * .daml_lf_1.Unit nil = 4; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 4; } /** * .daml_lf_1.Unit nil = 4; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getNil() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit nil = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getNilOrBuilder() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } public static final int CONS_FIELD_NUMBER = 5; /** * .daml_lf_1.CaseAlt.Cons cons = 5; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 5; } /** * .daml_lf_1.CaseAlt.Cons cons = 5; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons getCons() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } /** * .daml_lf_1.CaseAlt.Cons cons = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder getConsOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } public static final int OPTIONAL_NONE_FIELD_NUMBER = 7; /** * .daml_lf_1.Unit optional_none = 7; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 7; } /** * .daml_lf_1.Unit optional_none = 7; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getOptionalNone() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit optional_none = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getOptionalNoneOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } public static final int OPTIONAL_SOME_FIELD_NUMBER = 8; /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 8; } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome getOptionalSome() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 9; /** * .daml_lf_1.CaseAlt.Enum enum = 9; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 9; } /** * .daml_lf_1.CaseAlt.Enum enum = 9; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum getEnum() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder getEnumOrBuilder() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } public static final int BODY_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** * .daml_lf_1.Expr body = 6; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** * .daml_lf_1.Expr body = 6; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** * .daml_lf_1.Expr body = 6; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_); } if (sumCase_ == 3) { output.writeEnum(3, ((java.lang.Integer) sum_)); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_); } if (body_ != null) { output.writeMessage(6, getBody()); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.CaseAlt other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.CaseAlt parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAltOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.CaseAlt.class, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_CaseAlt_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.CaseAlt.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt build() { com.daml.daml_lf_dev.DamlLf1.CaseAlt result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt buildPartial() { com.daml.daml_lf_dev.DamlLf1.CaseAlt result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.CaseAlt)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.CaseAlt other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> defaultBuilder_; /** * .daml_lf_1.Unit default = 1; * @return Whether the default field is set. */ @java.lang.Override public boolean hasDefault() { return sumCase_ == 1; } /** * .daml_lf_1.Unit default = 1; * @return The default. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getDefault() { if (defaultBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return defaultBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit default = 1; */ public Builder setDefault(com.daml.daml_lf_dev.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; */ public Builder setDefault( com.daml.daml_lf_dev.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; */ public Builder mergeDefault(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (defaultBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getDefaultBuilder() { return getDefaultFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit default = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getDefaultOrBuilder() { if ((sumCase_ == 1) && (defaultBuilder_ != null)) { return defaultBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit default = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getDefaultFieldBuilder() { if (defaultBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return defaultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder> variantBuilder_; /** * .daml_lf_1.CaseAlt.Variant variant = 2; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 2; } /** * .daml_lf_1.CaseAlt.Variant variant = 2; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant getVariant() { if (variantBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } else { if (sumCase_ == 2) { return variantBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Variant variant = 2; */ public Builder setVariant(com.daml.daml_lf_dev.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; */ public Builder setVariant( com.daml.daml_lf_dev.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; */ public Builder mergeVariant(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant value) { if (variantBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** * .daml_lf_1.CaseAlt.Variant variant = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder getVariantOrBuilder() { if ((sumCase_ == 2) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Variant variant = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.VariantOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return variantBuilder_; } /** * .daml_lf_1.PrimCon prim_con = 3; * @return Whether the primCon field is set. */ @java.lang.Override public boolean hasPrimCon() { return sumCase_ == 3; } /** * .daml_lf_1.PrimCon prim_con = 3; * @return The enum numeric value on the wire for primCon. */ @java.lang.Override public int getPrimConValue() { if (sumCase_ == 3) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** * .daml_lf_1.PrimCon prim_con = 3; * @param value The enum numeric value on the wire for primCon to set. * @return This builder for chaining. */ public Builder setPrimConValue(int value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** * .daml_lf_1.PrimCon prim_con = 3; * @return The primCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimCon getPrimCon() { if (sumCase_ == 3) { @SuppressWarnings("deprecation") com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.valueOf( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf1.PrimCon.CON_UNIT; } /** * .daml_lf_1.PrimCon prim_con = 3; * @param value The primCon to set. * @return This builder for chaining. */ public Builder setPrimCon(com.daml.daml_lf_dev.DamlLf1.PrimCon value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 3; sum_ = value.getNumber(); onChanged(); return this; } /** * .daml_lf_1.PrimCon prim_con = 3; * @return This builder for chaining. */ public Builder clearPrimCon() { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> nilBuilder_; /** * .daml_lf_1.Unit nil = 4; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 4; } /** * .daml_lf_1.Unit nil = 4; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getNil() { if (nilBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 4) { return nilBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit nil = 4; */ public Builder setNil(com.daml.daml_lf_dev.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; */ public Builder setNil( com.daml.daml_lf_dev.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; */ public Builder mergeNil(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (nilBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getNilBuilder() { return getNilFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit nil = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getNilOrBuilder() { if ((sumCase_ == 4) && (nilBuilder_ != null)) { return nilBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit nil = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getNilFieldBuilder() { if (nilBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } nilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return nilBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder> consBuilder_; /** * .daml_lf_1.CaseAlt.Cons cons = 5; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 5; } /** * .daml_lf_1.CaseAlt.Cons cons = 5; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons getCons() { if (consBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } else { if (sumCase_ == 5) { return consBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Cons cons = 5; */ public Builder setCons(com.daml.daml_lf_dev.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; */ public Builder setCons( com.daml.daml_lf_dev.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; */ public Builder mergeCons(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons value) { if (consBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder getConsBuilder() { return getConsFieldBuilder().getBuilder(); } /** * .daml_lf_1.CaseAlt.Cons cons = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder getConsOrBuilder() { if ((sumCase_ == 5) && (consBuilder_ != null)) { return consBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Cons cons = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder> getConsFieldBuilder() { if (consBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.getDefaultInstance(); } consBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.ConsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return consBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> optionalNoneBuilder_; /** * .daml_lf_1.Unit optional_none = 7; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 7; } /** * .daml_lf_1.Unit optional_none = 7; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 7) { return optionalNoneBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit optional_none = 7; */ public Builder setOptionalNone(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (optionalNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalNoneBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Unit optional_none = 7; */ public Builder setOptionalNone( com.daml.daml_lf_dev.DamlLf1.Unit.Builder builderForValue) { if (optionalNoneBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalNoneBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_1.Unit optional_none = 7; */ public Builder mergeOptionalNone(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf1.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { optionalNoneBuilder_.mergeFrom(value); } optionalNoneBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_1.Unit optional_none = 7; */ 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; } /** * .daml_lf_1.Unit optional_none = 7; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getOptionalNoneBuilder() { return getOptionalNoneFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit optional_none = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getOptionalNoneOrBuilder() { if ((sumCase_ == 7) && (optionalNoneBuilder_ != null)) { return optionalNoneBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit optional_none = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getOptionalNoneFieldBuilder() { if (optionalNoneBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } optionalNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return optionalNoneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder> optionalSomeBuilder_; /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 8; } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome getOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } else { if (sumCase_ == 8) { return optionalSomeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ public Builder setOptionalSome(com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalSomeBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ public Builder setOptionalSome( com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder builderForValue) { if (optionalSomeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalSomeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ public Builder mergeOptionalSome(com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.newBuilder((com.daml.daml_lf_dev.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; } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ 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; } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder getOptionalSomeBuilder() { return getOptionalSomeFieldBuilder().getBuilder(); } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if ((sumCase_ == 8) && (optionalSomeBuilder_ != null)) { return optionalSomeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.OptionalSome optional_some = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder> getOptionalSomeFieldBuilder() { if (optionalSomeBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.getDefaultInstance(); } optionalSomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSomeOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return optionalSomeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder> enumBuilder_; /** * .daml_lf_1.CaseAlt.Enum enum = 9; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 9; } /** * .daml_lf_1.CaseAlt.Enum enum = 9; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum getEnum() { if (enumBuilder_ == null) { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } else { if (sumCase_ == 9) { return enumBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ public Builder setEnum(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ public Builder setEnum( com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder builderForValue) { if (enumBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ public Builder mergeEnum(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum value) { if (enumBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.newBuilder((com.daml.daml_lf_dev.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; } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ 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; } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder getEnumOrBuilder() { if ((sumCase_ == 9) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } } /** * .daml_lf_1.CaseAlt.Enum enum = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAlt.EnumOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged();; return enumBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_1.Expr body = 6; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .daml_lf_1.Expr body = 6; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr body = 6; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr body = 6; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr body = 6; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr body = 6; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr body = 6; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_1.Expr body = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.CaseAlt(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the scrut field is set. */ boolean hasScrut(); /** * .daml_lf_1.Expr scrut = 1; * @return The scrut. */ com.daml.daml_lf_dev.DamlLf1.Expr getScrut(); /** * .daml_lf_1.Expr scrut = 1; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getScrutOrBuilder(); /** * repeated .daml_lf_1.CaseAlt alts = 2; */ java.util.List getAltsList(); /** * repeated .daml_lf_1.CaseAlt alts = 2; */ com.daml.daml_lf_dev.DamlLf1.CaseAlt getAlts(int index); /** * repeated .daml_lf_1.CaseAlt alts = 2; */ int getAltsCount(); /** * repeated .daml_lf_1.CaseAlt alts = 2; */ java.util.List getAltsOrBuilderList(); /** * repeated .daml_lf_1.CaseAlt alts = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (scrut_ != null) { subBuilder = scrut_.toBuilder(); } scrut_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Case_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Case_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Case.class, com.daml.daml_lf_dev.DamlLf1.Case.Builder.class); } public static final int SCRUT_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Expr scrut_; /** * .daml_lf_1.Expr scrut = 1; * @return Whether the scrut field is set. */ @java.lang.Override public boolean hasScrut() { return scrut_ != null; } /** * .daml_lf_1.Expr scrut = 1; * @return The scrut. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getScrut() { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : scrut_; } /** * .daml_lf_1.Expr scrut = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getAltsList() { return alts_; } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ @java.lang.Override public java.util.List getAltsOrBuilderList() { return alts_; } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ @java.lang.Override public int getAltsCount() { return alts_.size(); } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.CaseAlt getAlts(int index) { return alts_.get(index); } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Case other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Case parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Case parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Case_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Case_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Case.class, com.daml.daml_lf_dev.DamlLf1.Case.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Case_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Case getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Case.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Case build() { com.daml.daml_lf_dev.DamlLf1.Case result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Case buildPartial() { com.daml.daml_lf_dev.DamlLf1.Case result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Case)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Case other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Case) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Expr scrut_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> scrutBuilder_; /** * .daml_lf_1.Expr scrut = 1; * @return Whether the scrut field is set. */ public boolean hasScrut() { return scrutBuilder_ != null || scrut_ != null; } /** * .daml_lf_1.Expr scrut = 1; * @return The scrut. */ public com.daml.daml_lf_dev.DamlLf1.Expr getScrut() { if (scrutBuilder_ == null) { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : scrut_; } else { return scrutBuilder_.getMessage(); } } /** * .daml_lf_1.Expr scrut = 1; */ public Builder setScrut(com.daml.daml_lf_dev.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; */ public Builder setScrut( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (scrutBuilder_ == null) { scrut_ = builderForValue.build(); onChanged(); } else { scrutBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr scrut = 1; */ public Builder mergeScrut(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (scrutBuilder_ == null) { if (scrut_ != null) { scrut_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(scrut_).mergeFrom(value).buildPartial(); } else { scrut_ = value; } onChanged(); } else { scrutBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr scrut = 1; */ public Builder clearScrut() { if (scrutBuilder_ == null) { scrut_ = null; onChanged(); } else { scrut_ = null; scrutBuilder_ = null; } return this; } /** * .daml_lf_1.Expr scrut = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getScrutBuilder() { onChanged(); return getScrutFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr scrut = 1; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getScrutOrBuilder() { if (scrutBuilder_ != null) { return scrutBuilder_.getMessageOrBuilder(); } else { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : scrut_; } } /** * .daml_lf_1.Expr scrut = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getScrutFieldBuilder() { if (scrutBuilder_ == null) { scrutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.CaseAlt, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAltOrBuilder> altsBuilder_; /** * repeated .daml_lf_1.CaseAlt alts = 2; */ 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; */ public int getAltsCount() { if (altsBuilder_ == null) { return alts_.size(); } else { return altsBuilder_.getCount(); } } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt getAlts(int index) { if (altsBuilder_ == null) { return alts_.get(index); } else { return altsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ public Builder setAlts( int index, com.daml.daml_lf_dev.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; */ public Builder setAlts( int index, com.daml.daml_lf_dev.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; */ public Builder addAlts(com.daml.daml_lf_dev.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; */ public Builder addAlts( int index, com.daml.daml_lf_dev.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; */ public Builder addAlts( com.daml.daml_lf_dev.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; */ public Builder addAlts( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder getAltsBuilder( int index) { return getAltsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf1.CaseAltOrBuilder getAltsOrBuilder( int index) { if (altsBuilder_ == null) { return alts_.get(index); } else { return altsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder addAltsBuilder() { return getAltsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.CaseAlt.getDefaultInstance()); } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder addAltsBuilder( int index) { return getAltsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.CaseAlt.getDefaultInstance()); } /** * repeated .daml_lf_1.CaseAlt alts = 2; */ public java.util.List getAltsBuilderList() { return getAltsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder, com.daml.daml_lf_dev.DamlLf1.CaseAltOrBuilder> getAltsFieldBuilder() { if (altsBuilder_ == null) { altsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.CaseAlt, com.daml.daml_lf_dev.DamlLf1.CaseAlt.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Case DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Case(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; */ java.util.List getBindingsList(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ com.daml.daml_lf_dev.DamlLf1.Binding getBindings(int index); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ int getBindingsCount(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ java.util.List getBindingsOrBuilderList(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ com.daml.daml_lf_dev.DamlLf1.BindingOrBuilder getBindingsOrBuilder( int index); /** * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_1.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** * .daml_lf_1.Expr body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding.parser(), extensionRegistry)); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Block.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getBindingsList() { return bindings_; } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ @java.lang.Override public java.util.List getBindingsOrBuilderList() { return bindings_; } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ @java.lang.Override public int getBindingsCount() { return bindings_.size(); } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Binding getBindings(int index) { return bindings_.get(index); } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_1.Binding bindings = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BindingOrBuilder getBindingsOrBuilder( int index) { return bindings_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** * .daml_lf_1.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** * .daml_lf_1.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Block other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Block parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Block parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Block.class, com.daml.daml_lf_dev.DamlLf1.Block.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Block_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block build() { com.daml.daml_lf_dev.DamlLf1.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block buildPartial() { com.daml.daml_lf_dev.DamlLf1.Block result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Block other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Binding, com.daml.daml_lf_dev.DamlLf1.Binding.Builder, com.daml.daml_lf_dev.DamlLf1.BindingOrBuilder> bindingsBuilder_; /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setBindings( int index, com.daml.daml_lf_dev.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; */ public Builder setBindings( int index, com.daml.daml_lf_dev.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; */ public Builder addBindings(com.daml.daml_lf_dev.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; */ public Builder addBindings( int index, com.daml.daml_lf_dev.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; */ public Builder addBindings( com.daml.daml_lf_dev.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; */ public Builder addBindings( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Binding.Builder getBindingsBuilder( int index) { return getBindingsFieldBuilder().getBuilder(index); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Binding.Builder addBindingsBuilder() { return getBindingsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Binding.getDefaultInstance()); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1; */ public com.daml.daml_lf_dev.DamlLf1.Binding.Builder addBindingsBuilder( int index) { return getBindingsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Binding.getDefaultInstance()); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_1.Binding bindings = 1; */ public java.util.List getBindingsBuilderList() { return getBindingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Binding, com.daml.daml_lf_dev.DamlLf1.Binding.Builder, com.daml.daml_lf_dev.DamlLf1.BindingOrBuilder> getBindingsFieldBuilder() { if (bindingsBuilder_ == null) { bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Binding, com.daml.daml_lf_dev.DamlLf1.Binding.Builder, com.daml.daml_lf_dev.DamlLf1.BindingOrBuilder>( bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); bindings_ = null; } return bindingsBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .daml_lf_1.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_1.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Block(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Pure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Pure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Pure.class, com.daml.daml_lf_dev.DamlLf1.Pure.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Pure other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Pure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Pure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Pure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Pure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Pure.class, com.daml.daml_lf_dev.DamlLf1.Pure.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Pure_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure build() { com.daml.daml_lf_dev.DamlLf1.Pure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure buildPartial() { com.daml.daml_lf_dev.DamlLf1.Pure result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Pure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Pure other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Pure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Pure(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the pure field is set. */ boolean hasPure(); /** * .daml_lf_1.Pure pure = 1; * @return The pure. */ com.daml.daml_lf_dev.DamlLf1.Pure getPure(); /** * .daml_lf_1.Pure pure = 1; */ com.daml.daml_lf_dev.DamlLf1.PureOrBuilder getPureOrBuilder(); /** * .daml_lf_1.Block block = 2; * @return Whether the block field is set. */ boolean hasBlock(); /** * .daml_lf_1.Block block = 2; * @return The block. */ com.daml.daml_lf_dev.DamlLf1.Block getBlock(); /** * .daml_lf_1.Block block = 2; */ com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getBlockOrBuilder(); /** * .daml_lf_1.Update.Create create = 3; * @return Whether the create field is set. */ boolean hasCreate(); /** * .daml_lf_1.Update.Create create = 3; * @return The create. */ com.daml.daml_lf_dev.DamlLf1.Update.Create getCreate(); /** * .daml_lf_1.Update.Create create = 3; */ com.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder getCreateOrBuilder(); /** * .daml_lf_1.Update.Exercise exercise = 4; * @return Whether the exercise field is set. */ boolean hasExercise(); /** * .daml_lf_1.Update.Exercise exercise = 4; * @return The exercise. */ com.daml.daml_lf_dev.DamlLf1.Update.Exercise getExercise(); /** * .daml_lf_1.Update.Exercise exercise = 4; */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder getExerciseOrBuilder(); /** *
     * *Available in versions >= 1.11*
     * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; * @return Whether the exerciseByKey field is set. */ boolean hasExerciseByKey(); /** *
     * *Available in versions >= 1.11*
     * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; * @return The exerciseByKey. */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey getExerciseByKey(); /** *
     * *Available in versions >= 1.11*
     * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder getExerciseByKeyOrBuilder(); /** * .daml_lf_1.Update.Fetch fetch = 5; * @return Whether the fetch field is set. */ boolean hasFetch(); /** * .daml_lf_1.Update.Fetch fetch = 5; * @return The fetch. */ com.daml.daml_lf_dev.DamlLf1.Update.Fetch getFetch(); /** * .daml_lf_1.Update.Fetch fetch = 5; */ com.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder getFetchOrBuilder(); /** * .daml_lf_1.Unit get_time = 6; * @return Whether the getTime field is set. */ boolean hasGetTime(); /** * .daml_lf_1.Unit get_time = 6; * @return The getTime. */ com.daml.daml_lf_dev.DamlLf1.Unit getGetTime(); /** * .daml_lf_1.Unit get_time = 6; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getGetTimeOrBuilder(); /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; * @return Whether the lookupByKey field is set. */ boolean hasLookupByKey(); /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; * @return The lookupByKey. */ com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getLookupByKey(); /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder(); /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; * @return Whether the fetchByKey field is set. */ boolean hasFetchByKey(); /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; * @return The fetchByKey. */ com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getFetchByKey(); /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder(); /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; * @return Whether the embedExpr field is set. */ boolean hasEmbedExpr(); /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; * @return The embedExpr. */ com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr getEmbedExpr(); /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; */ com.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder getEmbedExprOrBuilder(); /** *
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; * @return Whether the tryCatch field is set. */ boolean hasTryCatch(); /** *
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; * @return The tryCatch. */ com.daml.daml_lf_dev.DamlLf1.Update.TryCatch getTryCatch(); /** *
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder getTryCatchOrBuilder(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; * @return Whether the exerciseInterface field is set. */ boolean hasExerciseInterface(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; * @return The exerciseInterface. */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getExerciseInterface(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; * @return Whether the fetchInterface field is set. */ boolean hasFetchInterface(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; * @return The fetchInterface. */ com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getFetchInterface(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; * @return Whether the createInterface field is set. */ boolean hasCreateInterface(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; * @return The createInterface. */ com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getCreateInterface(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Pure) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Pure.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Pure) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Block.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Block) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Block) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.Create.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.Exercise.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.Fetch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 6) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 6; break; } case 58: { com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 8; break; } case 74: { com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder subBuilder = null; if (sumCase_ == 9) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 9; break; } case 82: { com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder subBuilder = null; if (sumCase_ == 10) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 10; break; } case 90: { com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder subBuilder = null; if (sumCase_ == 11) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 11; break; } case 98: { com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder subBuilder = null; if (sumCase_ == 12) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 12; break; } case 106: { com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder subBuilder = null; if (sumCase_ == 13) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 13; break; } case 114: { com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder subBuilder = null; if (sumCase_ == 14) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 14; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.class, com.daml.daml_lf_dev.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; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Create_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.Create.class, com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Template argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.Create other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Create_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.Create.class, com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Create_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Create getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Create build() { com.daml.daml_lf_dev.DamlLf1.Update.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Create buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.Create result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.Create other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.Create) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.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; */ public Builder setTemplate( com.daml.daml_lf_dev.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; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.daml.daml_lf_dev.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; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.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; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.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; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.Create(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.CreateInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); } /** *
     * Interface Create Update
     * 
* * Protobuf type {@code daml_lf_1.Update.CreateInterface} */ public static final class CreateInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.CreateInterface) CreateInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use CreateInterface.newBuilder() to construct. private CreateInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_CreateInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_CreateInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.class, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * Interface argument
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (interface_ != null) { output.writeMessage(1, getInterface()); } 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 (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Update.CreateInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface other = (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().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.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface 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; } /** *
       * Interface Create Update
       * 
* * Protobuf type {@code daml_lf_1.Update.CreateInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.CreateInterface) com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_CreateInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_CreateInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.class, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.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 (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_CreateInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface build() { com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface result = new com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface(this); if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Update.CreateInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.CreateInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.CreateInterface) private static final com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateInterface(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.daml.daml_lf_dev.DamlLf1.Update.CreateInterface 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; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2; * @return Whether the choiceStr field is set. */ boolean hasChoiceStr(); /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2; * @return The choiceStr. */ java.lang.String getChoiceStr(); /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2; * @return The bytes for choiceStr. */ com.google.protobuf.ByteString getChoiceStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6; * @return Whether the choiceInternedStr field is set. */ boolean hasChoiceInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return The cid. */ com.daml.daml_lf_dev.DamlLf1.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5; * @return The arg. */ com.daml.daml_lf_dev.DamlLf1.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (cid_ != null) { subBuilder = cid_.toBuilder(); } cid_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cid_); cid_ = subBuilder.buildPartial(); } break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (arg_ != null) { subBuilder = arg_.toBuilder(); } arg_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(arg_); arg_ = subBuilder.buildPartial(); } break; } case 48: { choice_ = input.readInt32(); choiceCase_ = 6; 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Exercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Exercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.Exercise.class, com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder.class); } private int choiceCase_ = 0; private java.lang.Object choice_; public enum ChoiceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHOICE_STR(2), CHOICE_INTERNED_STR(6), CHOICE_NOT_SET(0); private final int value; private ChoiceCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int CHOICE_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2; * @return Whether the choiceStr field is set. */ public boolean hasChoiceStr() { return choiceCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string choice_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the choiceInternedStr field is set. */ @java.lang.Override public boolean hasChoiceInternedStr() { return choiceCase_ == 6; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { if (choiceCase_ == 6) { return (java.lang.Integer) choice_; } return 0; } public static final int CID_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return cid_ != null; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder() { return getCid(); } public static final int ARG_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf1.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return arg_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 5; */ @java.lang.Override public com.daml.daml_lf_dev.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 (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 (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.daml.daml_lf_dev.DamlLf1.Update.Exercise)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.Exercise other = (com.daml.daml_lf_dev.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 (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 (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.daml.daml_lf_dev.DamlLf1.Update.Exercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Exercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Exercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.Exercise parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.Exercise parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Exercise parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Exercise parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Exercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Exercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.Exercise.class, com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder.class); } // Construct using com.daml.daml_lf_dev.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 (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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Exercise_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Exercise getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Exercise build() { com.daml.daml_lf_dev.DamlLf1.Update.Exercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Exercise buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.Exercise result = new com.daml.daml_lf_dev.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 (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.daml.daml_lf_dev.DamlLf1.Update.Exercise) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.Exercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.Exercise other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasCid()) { mergeCid(other.getCid()); } 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.daml.daml_lf_dev.DamlLf1.Update.Exercise parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.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; */ public Builder setTemplate( com.daml.daml_lf_dev.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; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.daml.daml_lf_dev.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; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2; * @return Whether the choiceStr field is set. */ @java.lang.Override public boolean hasChoiceStr() { return choiceCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2; * @return The choiceStr. */ @java.lang.Override 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; * @return The bytes for choiceStr. */ @java.lang.Override 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; * @param value The choiceStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearChoiceStr() { if (choiceCase_ == 2) { choiceCase_ = 0; choice_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string choice_str = 2; * @param value The bytes for choiceStr to set. * @return This builder for chaining. */ 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; * @return Whether the choiceInternedStr field is set. */ public boolean hasChoiceInternedStr() { return choiceCase_ == 6; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6; * @return The 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; * @param value The choiceInternedStr to set. * @return This builder for chaining. */ public Builder setChoiceInternedStr(int value) { choiceCase_ = 6; choice_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { if (choiceCase_ == 6) { choiceCase_ = 0; choice_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; * @return Whether the cid field is set. */ public boolean hasCid() { return cidBuilder_ != null || cid_ != null; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public Builder setCid(com.daml.daml_lf_dev.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; */ public Builder setCid( com.daml.daml_lf_dev.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; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (cid_ != null) { cid_ = com.daml.daml_lf_dev.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; */ public Builder clearCid() { if (cidBuilder_ == null) { cid_ = null; onChanged(); } else { cid_ = null; cidBuilder_ = null; } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; * @return Whether the arg field is set. */ public boolean hasArg() { return argBuilder_ != null || arg_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf1.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public Builder setArg(com.daml.daml_lf_dev.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; */ public Builder setArg( com.daml.daml_lf_dev.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; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (arg_ != null) { arg_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(arg_).mergeFrom(value).buildPartial(); } else { arg_ = value; } onChanged(); } else { argBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public Builder clearArg() { if (argBuilder_ == null) { arg_ = null; onChanged(); } else { arg_ = null; argBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Exercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.Exercise(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Exercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.ExerciseInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * name of the exercised template choice
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return The cid. */ com.daml.daml_lf_dev.DamlLf1.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return The arg. */ com.daml.daml_lf_dev.DamlLf1.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder(); /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_1.Expr guard = 5; * @return Whether the guard field is set. */ boolean hasGuard(); /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_1.Expr guard = 5; * @return The guard. */ com.daml.daml_lf_dev.DamlLf1.Expr getGuard(); /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_1.Expr guard = 5; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getGuardOrBuilder(); } /** *
     * Interface Exercise Update
     * 
* * Protobuf type {@code daml_lf_1.Update.ExerciseInterface} */ public static final class ExerciseInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.ExerciseInterface) ExerciseInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use ExerciseInterface.newBuilder() to construct. private ExerciseInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExerciseInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExerciseInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExerciseInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 16: { choiceInternedStr_ = input.readInt32(); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (cid_ != null) { subBuilder = cid_.toBuilder(); } cid_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cid_); cid_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (arg_ != null) { subBuilder = arg_.toBuilder(); } arg_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(arg_); arg_ = subBuilder.buildPartial(); } break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (guard_ != null) { subBuilder = guard_.toBuilder(); } guard_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(guard_); guard_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.class, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_; /** *
       * name of the exercised template choice
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } public static final int CID_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return cid_ != null; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder() { return getCid(); } public static final int ARG_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return arg_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder() { return getArg(); } public static final int GUARD_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf1.Expr guard_; /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_1.Expr guard = 5; * @return Whether the guard field is set. */ @java.lang.Override public boolean hasGuard() { return guard_ != null; } /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_1.Expr guard = 5; * @return The guard. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getGuard() { return guard_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : guard_; } /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_1.Expr guard = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getGuardOrBuilder() { return getGuard(); } 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 (interface_ != null) { output.writeMessage(1, getInterface()); } if (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (cid_ != null) { output.writeMessage(3, getCid()); } if (arg_ != null) { output.writeMessage(4, getArg()); } if (guard_ != null) { output.writeMessage(5, getGuard()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (cid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCid()); } if (arg_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArg()); } if (guard_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getGuard()); } 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.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface other = (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) return false; } if (getChoiceInternedStr() != other.getChoiceInternedStr()) return false; if (hasCid() != other.hasCid()) return false; if (hasCid()) { if (!getCid() .equals(other.getCid())) return false; } if (hasArg() != other.hasArg()) return false; if (hasArg()) { if (!getArg() .equals(other.getArg())) return false; } if (hasGuard() != other.hasGuard()) return false; if (hasGuard()) { if (!getGuard() .equals(other.getGuard())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().hashCode(); } hash = (37 * hash) + CHOICE_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getChoiceInternedStr(); if (hasCid()) { hash = (37 * hash) + CID_FIELD_NUMBER; hash = (53 * hash) + getCid().hashCode(); } if (hasArg()) { hash = (37 * hash) + ARG_FIELD_NUMBER; hash = (53 * hash) + getArg().hashCode(); } if (hasGuard()) { hash = (37 * hash) + GUARD_FIELD_NUMBER; hash = (53 * hash) + getGuard().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface 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; } /** *
       * Interface Exercise Update
       * 
* * Protobuf type {@code daml_lf_1.Update.ExerciseInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.ExerciseInterface) com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.class, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.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 (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = null; } choiceInternedStr_ = 0; if (cidBuilder_ == null) { cid_ = null; } else { cid_ = null; cidBuilder_ = null; } if (argBuilder_ == null) { arg_ = null; } else { arg_ = null; argBuilder_ = null; } if (guardBuilder_ == null) { guard_ = null; } else { guard_ = null; guardBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface build() { com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface result = new com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface(this); if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.build(); } result.choiceInternedStr_ = choiceInternedStr_; if (cidBuilder_ == null) { result.cid_ = cid_; } else { result.cid_ = cidBuilder_.build(); } if (argBuilder_ == null) { result.arg_ = arg_; } else { result.arg_ = argBuilder_.build(); } if (guardBuilder_ == null) { result.guard_ = guard_; } else { result.guard_ = guardBuilder_.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.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } if (other.getChoiceInternedStr() != 0) { setChoiceInternedStr(other.getChoiceInternedStr()); } if (other.hasCid()) { mergeCid(other.getCid()); } if (other.hasArg()) { mergeArg(other.getArg()); } if (other.hasGuard()) { mergeGuard(other.getGuard()); } 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.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private int choiceInternedStr_ ; /** *
         * name of the exercised template choice
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } /** *
         * name of the exercised template choice
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @param value The choiceInternedStr to set. * @return This builder for chaining. */ public Builder setChoiceInternedStr(int value) { choiceInternedStr_ = value; onChanged(); return this; } /** *
         * name of the exercised template choice
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { choiceInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; * @return Whether the cid field is set. */ public boolean hasCid() { return cidBuilder_ != null || cid_ != null; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public Builder setCid(com.daml.daml_lf_dev.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; */ public Builder setCid( com.daml.daml_lf_dev.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; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (cid_ != null) { cid_ = com.daml.daml_lf_dev.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; */ public Builder clearCid() { if (cidBuilder_ == null) { cid_ = null; onChanged(); } else { cid_ = null; cidBuilder_ = null; } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; * @return Whether the arg field is set. */ public boolean hasArg() { return argBuilder_ != null || arg_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf1.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder setArg(com.daml.daml_lf_dev.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 = 4; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); onChanged(); } else { argBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (arg_ != null) { arg_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(arg_).mergeFrom(value).buildPartial(); } else { arg_ = value; } onChanged(); } else { argBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder clearArg() { if (argBuilder_ == null) { arg_ = null; onChanged(); } else { arg_ = null; argBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getArg(), getParentForChildren(), isClean()); arg_ = null; } return argBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr guard_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> guardBuilder_; /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; * @return Whether the guard field is set. */ public boolean hasGuard() { return guardBuilder_ != null || guard_ != null; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; * @return The guard. */ public com.daml.daml_lf_dev.DamlLf1.Expr getGuard() { if (guardBuilder_ == null) { return guard_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : guard_; } else { return guardBuilder_.getMessage(); } } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public Builder setGuard(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (guardBuilder_ == null) { if (value == null) { throw new NullPointerException(); } guard_ = value; onChanged(); } else { guardBuilder_.setMessage(value); } return this; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public Builder setGuard( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (guardBuilder_ == null) { guard_ = builderForValue.build(); onChanged(); } else { guardBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public Builder mergeGuard(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (guardBuilder_ == null) { if (guard_ != null) { guard_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(guard_).mergeFrom(value).buildPartial(); } else { guard_ = value; } onChanged(); } else { guardBuilder_.mergeFrom(value); } return this; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public Builder clearGuard() { if (guardBuilder_ == null) { guard_ = null; onChanged(); } else { guard_ = null; guardBuilder_ = null; } return this; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getGuardBuilder() { onChanged(); return getGuardFieldBuilder().getBuilder(); } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getGuardOrBuilder() { if (guardBuilder_ != null) { return guardBuilder_.getMessageOrBuilder(); } else { return guard_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : guard_; } } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getGuardFieldBuilder() { if (guardBuilder_ == null) { guardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getGuard(), getParentForChildren(), isClean()); guard_ = null; } return guardBuilder_; } @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.ExerciseInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.ExerciseInterface) private static final com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExerciseInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExerciseInterface(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.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseByKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.ExerciseByKey) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** *
       * key
       * 
* * .daml_lf_1.Expr key = 3; * @return Whether the key field is set. */ boolean hasKey(); /** *
       * key
       * 
* * .daml_lf_1.Expr key = 3; * @return The key. */ com.daml.daml_lf_dev.DamlLf1.Expr getKey(); /** *
       * key
       * 
* * .daml_lf_1.Expr key = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getKeyOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return The arg. */ com.daml.daml_lf_dev.DamlLf1.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder(); } /** *
     * ExerciseByKey Update
     * 
* * Protobuf type {@code daml_lf_1.Update.ExerciseByKey} */ public static final class ExerciseByKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.ExerciseByKey) ExerciseByKeyOrBuilder { private static final long serialVersionUID = 0L; // Use ExerciseByKey.newBuilder() to construct. private ExerciseByKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExerciseByKey() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExerciseByKey(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExerciseByKey( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 16: { choiceInternedStr_ = input.readInt32(); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (arg_ != null) { subBuilder = arg_.toBuilder(); } arg_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(arg_); arg_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.class, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } public static final int KEY_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr key_; /** *
       * key
       * 
* * .daml_lf_1.Expr key = 3; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** *
       * key
       * 
* * .daml_lf_1.Expr key = 3; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getKey() { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } /** *
       * key
       * 
* * .daml_lf_1.Expr key = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getKeyOrBuilder() { return getKey(); } public static final int ARG_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return arg_ != null; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_1.Expr arg = 4; */ @java.lang.Override public com.daml.daml_lf_dev.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 (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (key_ != null) { output.writeMessage(3, getKey()); } if (arg_ != null) { output.writeMessage(4, getArg()); } 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 (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKey()); } if (arg_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArg()); } 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.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey other = (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (getChoiceInternedStr() != other.getChoiceInternedStr()) return false; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasArg() != other.hasArg()) return false; if (hasArg()) { if (!getArg() .equals(other.getArg())) 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(); } hash = (37 * hash) + CHOICE_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getChoiceInternedStr(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasArg()) { hash = (37 * hash) + ARG_FIELD_NUMBER; hash = (53 * hash) + getArg().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey 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; } /** *
       * ExerciseByKey Update
       * 
* * Protobuf type {@code daml_lf_1.Update.ExerciseByKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.ExerciseByKey) com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.class, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.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; } choiceInternedStr_ = 0; if (keyBuilder_ == null) { key_ = null; } else { key_ = null; keyBuilder_ = null; } if (argBuilder_ == null) { arg_ = null; } else { arg_ = null; argBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_ExerciseByKey_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey build() { com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey result = new com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey(this); if (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.build(); } result.choiceInternedStr_ = choiceInternedStr_; if (keyBuilder_ == null) { result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (argBuilder_ == null) { result.arg_ = arg_; } else { result.arg_ = argBuilder_.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.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.getChoiceInternedStr() != 0) { setChoiceInternedStr(other.getChoiceInternedStr()); } if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasArg()) { mergeArg(other.getArg()); } 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.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.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; */ public Builder setTemplate( com.daml.daml_lf_dev.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; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.daml.daml_lf_dev.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; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private int choiceInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @param value The choiceInternedStr to set. * @return This builder for chaining. */ public Builder setChoiceInternedStr(int value) { choiceInternedStr_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { choiceInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> keyBuilder_; /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; * @return The key. */ public com.daml.daml_lf_dev.DamlLf1.Expr getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public Builder setKey(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public Builder setKey( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; * @return Whether the arg field is set. */ public boolean hasArg() { return argBuilder_ != null || arg_ != null; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf1.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder setArg(com.daml.daml_lf_dev.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 = 4; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); onChanged(); } else { argBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (arg_ != null) { arg_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(arg_).mergeFrom(value).buildPartial(); } else { arg_ = value; } onChanged(); } else { argBuilder_.mergeFrom(value); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder clearArg() { if (argBuilder_ == null) { arg_ = null; onChanged(); } else { arg_ = null; argBuilder_ = null; } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.ExerciseByKey) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.ExerciseByKey) private static final com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey(); } public static com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExerciseByKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExerciseByKey(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.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey 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; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return The cid. */ com.daml.daml_lf_dev.DamlLf1.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (cid_ != null) { subBuilder = cid_.toBuilder(); } cid_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Fetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Fetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.Fetch.class, com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return template_ != null; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_1.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int CID_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return cid_ != null; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.Fetch other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.Fetch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.Fetch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Fetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Fetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.Fetch.class, com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_Fetch_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Fetch getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Fetch build() { com.daml.daml_lf_dev.DamlLf1.Update.Fetch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Fetch buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.Fetch result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.Fetch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.Fetch other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.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; */ public Builder setTemplate( com.daml.daml_lf_dev.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; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.daml.daml_lf_dev.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; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; * @return Whether the cid field is set. */ public boolean hasCid() { return cidBuilder_ != null || cid_ != null; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public Builder setCid(com.daml.daml_lf_dev.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; */ public Builder setCid( com.daml.daml_lf_dev.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; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (cid_ != null) { cid_ = com.daml.daml_lf_dev.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; */ public Builder clearCid() { if (cidBuilder_ == null) { cid_ = null; onChanged(); } else { cid_ = null; cidBuilder_ = null; } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.Fetch(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.Fetch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FetchInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.FetchInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return The cid. */ com.daml.daml_lf_dev.DamlLf1.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder(); } /** *
     * Interface Fetch Update
     * 
* * Protobuf type {@code daml_lf_1.Update.FetchInterface} */ public static final class FetchInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.FetchInterface) FetchInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use FetchInterface.newBuilder() to construct. private FetchInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FetchInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FetchInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FetchInterface( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (cid_ != null) { subBuilder = cid_.toBuilder(); } cid_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_FetchInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_FetchInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.class, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int CID_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return cid_ != null; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_1.Expr cid = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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 (interface_ != null) { output.writeMessage(1, getInterface()); } 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 (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Update.FetchInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface other = (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().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.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface 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; } /** *
       * Interface Fetch Update
       * 
* * Protobuf type {@code daml_lf_1.Update.FetchInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.FetchInterface) com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_FetchInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_FetchInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.class, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.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 (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_FetchInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface build() { com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface result = new com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface(this); if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } 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.daml.daml_lf_dev.DamlLf1.Update.FetchInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; * @return Whether the cid field is set. */ public boolean hasCid() { return cidBuilder_ != null || cid_ != null; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf1.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public Builder setCid(com.daml.daml_lf_dev.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; */ public Builder setCid( com.daml.daml_lf_dev.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; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (cidBuilder_ == null) { if (cid_ != null) { cid_ = com.daml.daml_lf_dev.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; */ public Builder clearCid() { if (cidBuilder_ == null) { cid_ = null; onChanged(); } else { cid_ = null; cidBuilder_ = null; } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.FetchInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.FetchInterface) private static final com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FetchInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FetchInterface(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.daml.daml_lf_dev.DamlLf1.Update.FetchInterface 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; * @return Whether the type field is set. */ boolean hasType(); /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * Expression type
       * 
* * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** *
       * Expression body
       * 
* * .daml_lf_1.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_EmbedExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr build() { com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.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; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.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; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the template field is set. */ boolean hasTemplate(); /** * .daml_lf_1.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate(); /** * .daml_lf_1.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder(); /** * .daml_lf_1.Expr key = 2; * @return Whether the key field is set. */ boolean hasKey(); /** * .daml_lf_1.Expr key = 2; * @return The key. */ com.daml.daml_lf_dev.DamlLf1.Expr getKey(); /** * .daml_lf_1.Expr key = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getKeyOrBuilder(); } /** *
     * Retrieve by key Update
     * 
* * 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (template_ != null) { subBuilder = template_.toBuilder(); } template_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.class, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; /** * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return template_ != null; } /** * .daml_lf_1.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } /** * .daml_lf_1.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { return getTemplate(); } public static final int KEY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr key_; /** * .daml_lf_1.Expr key = 2; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** * .daml_lf_1.Expr key = 2; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getKey() { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } /** * .daml_lf_1.Expr key = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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
       * 
* * 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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.class, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_RetrieveByKey_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey build() { com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> templateBuilder_; /** * .daml_lf_1.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** * .daml_lf_1.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.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; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { template_ = null; templateBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } } /** * .daml_lf_1.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> keyBuilder_; /** * .daml_lf_1.Expr key = 2; * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** * .daml_lf_1.Expr key = 2; * @return The key. */ public com.daml.daml_lf_dev.DamlLf1.Expr getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr key = 2; */ public Builder setKey(com.daml.daml_lf_dev.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; */ public Builder setKey( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr key = 2; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr key = 2; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr key = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr key = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } } /** * .daml_lf_1.Expr key = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TryCatchOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.TryCatch) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Type return_type = 1; * @return Whether the returnType field is set. */ boolean hasReturnType(); /** * .daml_lf_1.Type return_type = 1; * @return The returnType. */ com.daml.daml_lf_dev.DamlLf1.Type getReturnType(); /** * .daml_lf_1.Type return_type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getReturnTypeOrBuilder(); /** * .daml_lf_1.Expr try_expr = 2; * @return Whether the tryExpr field is set. */ boolean hasTryExpr(); /** * .daml_lf_1.Expr try_expr = 2; * @return The tryExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getTryExpr(); /** * .daml_lf_1.Expr try_expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTryExprOrBuilder(); /** *
       * Name of the bound expression variable.
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ int getVarInternedStr(); /** * .daml_lf_1.Expr catch_expr = 4; * @return Whether the catchExpr field is set. */ boolean hasCatchExpr(); /** * .daml_lf_1.Expr catch_expr = 4; * @return The catchExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getCatchExpr(); /** * .daml_lf_1.Expr catch_expr = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCatchExprOrBuilder(); } /** *
     * Try-catch block.
     * 
* * Protobuf type {@code daml_lf_1.Update.TryCatch} */ public static final class TryCatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.TryCatch) TryCatchOrBuilder { private static final long serialVersionUID = 0L; // Use TryCatch.newBuilder() to construct. private TryCatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TryCatch() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TryCatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TryCatch( 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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (returnType_ != null) { subBuilder = returnType_.toBuilder(); } returnType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(returnType_); returnType_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (tryExpr_ != null) { subBuilder = tryExpr_.toBuilder(); } tryExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tryExpr_); tryExpr_ = subBuilder.buildPartial(); } break; } case 24: { varInternedStr_ = input.readInt32(); break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (catchExpr_ != null) { subBuilder = catchExpr_.toBuilder(); } catchExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(catchExpr_); catchExpr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_TryCatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_TryCatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.class, com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder.class); } public static final int RETURN_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type returnType_; /** * .daml_lf_1.Type return_type = 1; * @return Whether the returnType field is set. */ @java.lang.Override public boolean hasReturnType() { return returnType_ != null; } /** * .daml_lf_1.Type return_type = 1; * @return The returnType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getReturnType() { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } /** * .daml_lf_1.Type return_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getReturnTypeOrBuilder() { return getReturnType(); } public static final int TRY_EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr tryExpr_; /** * .daml_lf_1.Expr try_expr = 2; * @return Whether the tryExpr field is set. */ @java.lang.Override public boolean hasTryExpr() { return tryExpr_ != null; } /** * .daml_lf_1.Expr try_expr = 2; * @return The tryExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getTryExpr() { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tryExpr_; } /** * .daml_lf_1.Expr try_expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTryExprOrBuilder() { return getTryExpr(); } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; private int varInternedStr_; /** *
       * Name of the bound expression variable.
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { return varInternedStr_; } public static final int CATCH_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr catchExpr_; /** * .daml_lf_1.Expr catch_expr = 4; * @return Whether the catchExpr field is set. */ @java.lang.Override public boolean hasCatchExpr() { return catchExpr_ != null; } /** * .daml_lf_1.Expr catch_expr = 4; * @return The catchExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getCatchExpr() { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : catchExpr_; } /** * .daml_lf_1.Expr catch_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCatchExprOrBuilder() { return getCatchExpr(); } 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 (returnType_ != null) { output.writeMessage(1, getReturnType()); } if (tryExpr_ != null) { output.writeMessage(2, getTryExpr()); } if (varInternedStr_ != 0) { output.writeInt32(3, varInternedStr_); } if (catchExpr_ != null) { output.writeMessage(4, getCatchExpr()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (returnType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReturnType()); } if (tryExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTryExpr()); } if (varInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, varInternedStr_); } if (catchExpr_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCatchExpr()); } 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.daml.daml_lf_dev.DamlLf1.Update.TryCatch)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.TryCatch other = (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) obj; if (hasReturnType() != other.hasReturnType()) return false; if (hasReturnType()) { if (!getReturnType() .equals(other.getReturnType())) return false; } if (hasTryExpr() != other.hasTryExpr()) return false; if (hasTryExpr()) { if (!getTryExpr() .equals(other.getTryExpr())) return false; } if (getVarInternedStr() != other.getVarInternedStr()) return false; if (hasCatchExpr() != other.hasCatchExpr()) return false; if (hasCatchExpr()) { if (!getCatchExpr() .equals(other.getCatchExpr())) 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 (hasReturnType()) { hash = (37 * hash) + RETURN_TYPE_FIELD_NUMBER; hash = (53 * hash) + getReturnType().hashCode(); } if (hasTryExpr()) { hash = (37 * hash) + TRY_EXPR_FIELD_NUMBER; hash = (53 * hash) + getTryExpr().hashCode(); } hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); if (hasCatchExpr()) { hash = (37 * hash) + CATCH_EXPR_FIELD_NUMBER; hash = (53 * hash) + getCatchExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.Update.TryCatch 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; } /** *
       * Try-catch block.
       * 
* * Protobuf type {@code daml_lf_1.Update.TryCatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.TryCatch) com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_TryCatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_TryCatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.class, com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.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 (returnTypeBuilder_ == null) { returnType_ = null; } else { returnType_ = null; returnTypeBuilder_ = null; } if (tryExprBuilder_ == null) { tryExpr_ = null; } else { tryExpr_ = null; tryExprBuilder_ = null; } varInternedStr_ = 0; if (catchExprBuilder_ == null) { catchExpr_ = null; } else { catchExpr_ = null; catchExprBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_TryCatch_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatch getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatch build() { com.daml.daml_lf_dev.DamlLf1.Update.TryCatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatch buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.TryCatch result = new com.daml.daml_lf_dev.DamlLf1.Update.TryCatch(this); if (returnTypeBuilder_ == null) { result.returnType_ = returnType_; } else { result.returnType_ = returnTypeBuilder_.build(); } if (tryExprBuilder_ == null) { result.tryExpr_ = tryExpr_; } else { result.tryExpr_ = tryExprBuilder_.build(); } result.varInternedStr_ = varInternedStr_; if (catchExprBuilder_ == null) { result.catchExpr_ = catchExpr_; } else { result.catchExpr_ = catchExprBuilder_.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.daml.daml_lf_dev.DamlLf1.Update.TryCatch) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.TryCatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.TryCatch other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance()) return this; if (other.hasReturnType()) { mergeReturnType(other.getReturnType()); } if (other.hasTryExpr()) { mergeTryExpr(other.getTryExpr()); } if (other.getVarInternedStr() != 0) { setVarInternedStr(other.getVarInternedStr()); } if (other.hasCatchExpr()) { mergeCatchExpr(other.getCatchExpr()); } 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.daml.daml_lf_dev.DamlLf1.Update.TryCatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type returnType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> returnTypeBuilder_; /** * .daml_lf_1.Type return_type = 1; * @return Whether the returnType field is set. */ public boolean hasReturnType() { return returnTypeBuilder_ != null || returnType_ != null; } /** * .daml_lf_1.Type return_type = 1; * @return The returnType. */ public com.daml.daml_lf_dev.DamlLf1.Type getReturnType() { if (returnTypeBuilder_ == null) { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } else { return returnTypeBuilder_.getMessage(); } } /** * .daml_lf_1.Type return_type = 1; */ public Builder setReturnType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (returnTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } returnType_ = value; onChanged(); } else { returnTypeBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Type return_type = 1; */ public Builder setReturnType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (returnTypeBuilder_ == null) { returnType_ = builderForValue.build(); onChanged(); } else { returnTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type return_type = 1; */ public Builder mergeReturnType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (returnTypeBuilder_ == null) { if (returnType_ != null) { returnType_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); } else { returnType_ = value; } onChanged(); } else { returnTypeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type return_type = 1; */ public Builder clearReturnType() { if (returnTypeBuilder_ == null) { returnType_ = null; onChanged(); } else { returnType_ = null; returnTypeBuilder_ = null; } return this; } /** * .daml_lf_1.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getReturnTypeBuilder() { onChanged(); return getReturnTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getReturnTypeOrBuilder() { if (returnTypeBuilder_ != null) { return returnTypeBuilder_.getMessageOrBuilder(); } else { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } } /** * .daml_lf_1.Type return_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getReturnTypeFieldBuilder() { if (returnTypeBuilder_ == null) { returnTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getReturnType(), getParentForChildren(), isClean()); returnType_ = null; } return returnTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr tryExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> tryExprBuilder_; /** * .daml_lf_1.Expr try_expr = 2; * @return Whether the tryExpr field is set. */ public boolean hasTryExpr() { return tryExprBuilder_ != null || tryExpr_ != null; } /** * .daml_lf_1.Expr try_expr = 2; * @return The tryExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getTryExpr() { if (tryExprBuilder_ == null) { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tryExpr_; } else { return tryExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr try_expr = 2; */ public Builder setTryExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (tryExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tryExpr_ = value; onChanged(); } else { tryExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public Builder setTryExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (tryExprBuilder_ == null) { tryExpr_ = builderForValue.build(); onChanged(); } else { tryExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public Builder mergeTryExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (tryExprBuilder_ == null) { if (tryExpr_ != null) { tryExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(tryExpr_).mergeFrom(value).buildPartial(); } else { tryExpr_ = value; } onChanged(); } else { tryExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public Builder clearTryExpr() { if (tryExprBuilder_ == null) { tryExpr_ = null; onChanged(); } else { tryExpr_ = null; tryExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getTryExprBuilder() { onChanged(); return getTryExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr try_expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getTryExprOrBuilder() { if (tryExprBuilder_ != null) { return tryExprBuilder_.getMessageOrBuilder(); } else { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tryExpr_; } } /** * .daml_lf_1.Expr try_expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getTryExprFieldBuilder() { if (tryExprBuilder_ == null) { tryExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getTryExpr(), getParentForChildren(), isClean()); tryExpr_ = null; } return tryExprBuilder_; } private int varInternedStr_ ; /** *
         * Name of the bound expression variable.
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { return varInternedStr_; } /** *
         * Name of the bound expression variable.
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @param value The varInternedStr to set. * @return This builder for chaining. */ public Builder setVarInternedStr(int value) { varInternedStr_ = value; onChanged(); return this; } /** *
         * Name of the bound expression variable.
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarInternedStr() { varInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr catchExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> catchExprBuilder_; /** * .daml_lf_1.Expr catch_expr = 4; * @return Whether the catchExpr field is set. */ public boolean hasCatchExpr() { return catchExprBuilder_ != null || catchExpr_ != null; } /** * .daml_lf_1.Expr catch_expr = 4; * @return The catchExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getCatchExpr() { if (catchExprBuilder_ == null) { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : catchExpr_; } else { return catchExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr catch_expr = 4; */ public Builder setCatchExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (catchExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } catchExpr_ = value; onChanged(); } else { catchExprBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public Builder setCatchExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (catchExprBuilder_ == null) { catchExpr_ = builderForValue.build(); onChanged(); } else { catchExprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public Builder mergeCatchExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (catchExprBuilder_ == null) { if (catchExpr_ != null) { catchExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(catchExpr_).mergeFrom(value).buildPartial(); } else { catchExpr_ = value; } onChanged(); } else { catchExprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public Builder clearCatchExpr() { if (catchExprBuilder_ == null) { catchExpr_ = null; onChanged(); } else { catchExpr_ = null; catchExprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCatchExprBuilder() { onChanged(); return getCatchExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr catch_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getCatchExprOrBuilder() { if (catchExprBuilder_ != null) { return catchExprBuilder_.getMessageOrBuilder(); } else { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : catchExpr_; } } /** * .daml_lf_1.Expr catch_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getCatchExprFieldBuilder() { if (catchExprBuilder_ == null) { catchExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getCatchExpr(), getParentForChildren(), isClean()); catchExpr_ = null; } return catchExprBuilder_; } @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.TryCatch) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.TryCatch) private static final com.daml.daml_lf_dev.DamlLf1.Update.TryCatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.TryCatch(); } public static com.daml.daml_lf_dev.DamlLf1.Update.TryCatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TryCatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TryCatch(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.daml.daml_lf_dev.DamlLf1.Update.TryCatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int sumCase_ = 0; private java.lang.Object sum_; public enum SumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PURE(1), BLOCK(2), CREATE(3), EXERCISE(4), EXERCISE_BY_KEY(10), FETCH(5), GET_TIME(6), LOOKUP_BY_KEY(8), FETCH_BY_KEY(9), EMBED_EXPR(7), TRY_CATCH(11), EXERCISE_INTERFACE(12), FETCH_INTERFACE(13), CREATE_INTERFACE(14), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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 10: return EXERCISE_BY_KEY; 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 11: return TRY_CATCH; case 12: return EXERCISE_INTERFACE; case 13: return FETCH_INTERFACE; case 14: return CREATE_INTERFACE; 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; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure getPure() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } /** * .daml_lf_1.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PureOrBuilder getPureOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** * .daml_lf_1.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getBlock() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } /** * .daml_lf_1.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } public static final int CREATE_FIELD_NUMBER = 3; /** * .daml_lf_1.Update.Create create = 3; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return sumCase_ == 3; } /** * .daml_lf_1.Update.Create create = 3; * @return The create. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Create getCreate() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } /** * .daml_lf_1.Update.Create create = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder getCreateOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } public static final int EXERCISE_FIELD_NUMBER = 4; /** * .daml_lf_1.Update.Exercise exercise = 4; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return sumCase_ == 4; } /** * .daml_lf_1.Update.Exercise exercise = 4; * @return The exercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Exercise getExercise() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } /** * .daml_lf_1.Update.Exercise exercise = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder getExerciseOrBuilder() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } public static final int EXERCISE_BY_KEY_FIELD_NUMBER = 10; /** *
     * *Available in versions >= 1.11*
     * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; * @return Whether the exerciseByKey field is set. */ @java.lang.Override public boolean hasExerciseByKey() { return sumCase_ == 10; } /** *
     * *Available in versions >= 1.11*
     * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; * @return The exerciseByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey getExerciseByKey() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } /** *
     * *Available in versions >= 1.11*
     * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder getExerciseByKeyOrBuilder() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } public static final int FETCH_FIELD_NUMBER = 5; /** * .daml_lf_1.Update.Fetch fetch = 5; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return sumCase_ == 5; } /** * .daml_lf_1.Update.Fetch fetch = 5; * @return The fetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Fetch getFetch() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } /** * .daml_lf_1.Update.Fetch fetch = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder getFetchOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } public static final int GET_TIME_FIELD_NUMBER = 6; /** * .daml_lf_1.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getGetTime() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } public static final int LOOKUP_BY_KEY_FIELD_NUMBER = 8; /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; * @return Whether the lookupByKey field is set. */ @java.lang.Override public boolean hasLookupByKey() { return sumCase_ == 8; } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; * @return The lookupByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getLookupByKey() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } public static final int FETCH_BY_KEY_FIELD_NUMBER = 9; /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; * @return Whether the fetchByKey field is set. */ @java.lang.Override public boolean hasFetchByKey() { return sumCase_ == 9; } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; * @return The fetchByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getFetchByKey() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the embedExpr field is set. */ @java.lang.Override public boolean hasEmbedExpr() { return sumCase_ == 7; } /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr getEmbedExpr() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } /** *
     * see similar constructor in `Scenario` on why this is useful.
     * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder getEmbedExprOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } public static final int TRY_CATCH_FIELD_NUMBER = 11; /** *
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; * @return Whether the tryCatch field is set. */ @java.lang.Override public boolean hasTryCatch() { return sumCase_ == 11; } /** *
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; * @return The tryCatch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatch getTryCatch() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } /** *
     * *Available in versions >= 1.14*
     * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder getTryCatchOrBuilder() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } public static final int EXERCISE_INTERFACE_FIELD_NUMBER = 12; /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; * @return Whether the exerciseInterface field is set. */ @java.lang.Override public boolean hasExerciseInterface() { return sumCase_ == 12; } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; * @return The exerciseInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getExerciseInterface() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } public static final int FETCH_INTERFACE_FIELD_NUMBER = 13; /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; * @return Whether the fetchInterface field is set. */ @java.lang.Override public boolean hasFetchInterface() { return sumCase_ == 13; } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; * @return The fetchInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getFetchInterface() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } public static final int CREATE_INTERFACE_FIELD_NUMBER = 14; /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; * @return Whether the createInterface field is set. */ @java.lang.Override public boolean hasCreateInterface() { return sumCase_ == 14; } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; * @return The createInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getCreateInterface() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.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.daml.daml_lf_dev.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf1.Block) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_); } if (sumCase_ == 10) { output.writeMessage(10, (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_); } if (sumCase_ == 11) { output.writeMessage(11, (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_); } if (sumCase_ == 12) { output.writeMessage(12, (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) 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.daml.daml_lf_dev.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf1.Block) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) 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.daml.daml_lf_dev.DamlLf1.Update)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update other = (com.daml.daml_lf_dev.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 10: if (!getExerciseByKey() .equals(other.getExerciseByKey())) 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 11: if (!getTryCatch() .equals(other.getTryCatch())) return false; break; case 12: if (!getExerciseInterface() .equals(other.getExerciseInterface())) return false; break; case 13: if (!getFetchInterface() .equals(other.getFetchInterface())) return false; break; case 14: if (!getCreateInterface() .equals(other.getCreateInterface())) 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 10: hash = (37 * hash) + EXERCISE_BY_KEY_FIELD_NUMBER; hash = (53 * hash) + getExerciseByKey().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 11: hash = (37 * hash) + TRY_CATCH_FIELD_NUMBER; hash = (53 * hash) + getTryCatch().hashCode(); break; case 12: hash = (37 * hash) + EXERCISE_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getExerciseInterface().hashCode(); break; case 13: hash = (37 * hash) + FETCH_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFetchInterface().hashCode(); break; case 14: hash = (37 * hash) + CREATE_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getCreateInterface().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Update parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Update parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.UpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.class, com.daml.daml_lf_dev.DamlLf1.Update.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update build() { com.daml.daml_lf_dev.DamlLf1.Update result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update result = new com.daml.daml_lf_dev.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_ == 10) { if (exerciseByKeyBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = exerciseByKeyBuilder_.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(); } } if (sumCase_ == 11) { if (tryCatchBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = tryCatchBuilder_.build(); } } if (sumCase_ == 12) { if (exerciseInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = exerciseInterfaceBuilder_.build(); } } if (sumCase_ == 13) { if (fetchInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = fetchInterfaceBuilder_.build(); } } if (sumCase_ == 14) { if (createInterfaceBuilder_ == null) { result.sum_ = sum_; } else { result.sum_ = createInterfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.Update) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update other) { if (other == com.daml.daml_lf_dev.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 EXERCISE_BY_KEY: { mergeExerciseByKey(other.getExerciseByKey()); 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 TRY_CATCH: { mergeTryCatch(other.getTryCatch()); break; } case EXERCISE_INTERFACE: { mergeExerciseInterface(other.getExerciseInterface()); break; } case FETCH_INTERFACE: { mergeFetchInterface(other.getFetchInterface()); break; } case CREATE_INTERFACE: { mergeCreateInterface(other.getCreateInterface()); 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.daml.daml_lf_dev.DamlLf1.Update parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure, com.daml.daml_lf_dev.DamlLf1.Pure.Builder, com.daml.daml_lf_dev.DamlLf1.PureOrBuilder> pureBuilder_; /** * .daml_lf_1.Pure pure = 1; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure getPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } else { if (sumCase_ == 1) { return pureBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1; */ public Builder setPure(com.daml.daml_lf_dev.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; */ public Builder setPure( com.daml.daml_lf_dev.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; */ public Builder mergePure(com.daml.daml_lf_dev.DamlLf1.Pure value) { if (pureBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Pure.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Pure.Builder getPureBuilder() { return getPureFieldBuilder().getBuilder(); } /** * .daml_lf_1.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PureOrBuilder getPureOrBuilder() { if ((sumCase_ == 1) && (pureBuilder_ != null)) { return pureBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Pure, com.daml.daml_lf_dev.DamlLf1.Pure.Builder, com.daml.daml_lf_dev.DamlLf1.PureOrBuilder> getPureFieldBuilder() { if (pureBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } pureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Pure, com.daml.daml_lf_dev.DamlLf1.Pure.Builder, com.daml.daml_lf_dev.DamlLf1.PureOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Pure) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return pureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder> blockBuilder_; /** * .daml_lf_1.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } else { if (sumCase_ == 2) { return blockBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2; */ public Builder setBlock(com.daml.daml_lf_dev.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; */ public Builder setBlock( com.daml.daml_lf_dev.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; */ public Builder mergeBlock(com.daml.daml_lf_dev.DamlLf1.Block value) { if (blockBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Block.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * .daml_lf_1.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if ((sumCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Create, com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder> createBuilder_; /** * .daml_lf_1.Update.Create create = 3; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return sumCase_ == 3; } /** * .daml_lf_1.Update.Create create = 3; * @return The create. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Create getCreate() { if (createBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } else { if (sumCase_ == 3) { return createBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } } /** * .daml_lf_1.Update.Create create = 3; */ public Builder setCreate(com.daml.daml_lf_dev.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; */ public Builder setCreate( com.daml.daml_lf_dev.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; */ public Builder mergeCreate(com.daml.daml_lf_dev.DamlLf1.Update.Create value) { if (createBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.Create.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.Create create = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder getCreateOrBuilder() { if ((sumCase_ == 3) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } } /** * .daml_lf_1.Update.Create create = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Create, com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.Create.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Create, com.daml.daml_lf_dev.DamlLf1.Update.Create.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.Create) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return createBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Exercise, com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder> exerciseBuilder_; /** * .daml_lf_1.Update.Exercise exercise = 4; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return sumCase_ == 4; } /** * .daml_lf_1.Update.Exercise exercise = 4; * @return The exercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Exercise getExercise() { if (exerciseBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } else { if (sumCase_ == 4) { return exerciseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } } /** * .daml_lf_1.Update.Exercise exercise = 4; */ public Builder setExercise(com.daml.daml_lf_dev.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; */ public Builder setExercise( com.daml.daml_lf_dev.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; */ public Builder mergeExercise(com.daml.daml_lf_dev.DamlLf1.Update.Exercise value) { if (exerciseBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.Exercise.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder getExerciseBuilder() { return getExerciseFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.Exercise exercise = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder getExerciseOrBuilder() { if ((sumCase_ == 4) && (exerciseBuilder_ != null)) { return exerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } } /** * .daml_lf_1.Update.Exercise exercise = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Exercise, com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder> getExerciseFieldBuilder() { if (exerciseBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.Exercise.getDefaultInstance(); } exerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Exercise, com.daml.daml_lf_dev.DamlLf1.Update.Exercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.Exercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return exerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder> exerciseByKeyBuilder_; /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; * @return Whether the exerciseByKey field is set. */ @java.lang.Override public boolean hasExerciseByKey() { return sumCase_ == 10; } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; * @return The exerciseByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey getExerciseByKey() { if (exerciseByKeyBuilder_ == null) { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } else { if (sumCase_ == 10) { return exerciseByKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ public Builder setExerciseByKey(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey value) { if (exerciseByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { exerciseByKeyBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ public Builder setExerciseByKey( com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder builderForValue) { if (exerciseByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { exerciseByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 10; return this; } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ public Builder mergeExerciseByKey(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey value) { if (exerciseByKeyBuilder_ == null) { if (sumCase_ == 10 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 10) { exerciseByKeyBuilder_.mergeFrom(value); } exerciseByKeyBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ public Builder clearExerciseByKey() { if (exerciseByKeyBuilder_ == null) { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; } exerciseByKeyBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder getExerciseByKeyBuilder() { return getExerciseByKeyFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder getExerciseByKeyOrBuilder() { if ((sumCase_ == 10) && (exerciseByKeyBuilder_ != null)) { return exerciseByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.11*
       * 
* * .daml_lf_1.Update.ExerciseByKey exercise_by_key = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder> getExerciseByKeyFieldBuilder() { if (exerciseByKeyBuilder_ == null) { if (!(sumCase_ == 10)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.getDefaultInstance(); } exerciseByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKeyOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 10; onChanged();; return exerciseByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Fetch, com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder> fetchBuilder_; /** * .daml_lf_1.Update.Fetch fetch = 5; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return sumCase_ == 5; } /** * .daml_lf_1.Update.Fetch fetch = 5; * @return The fetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.Fetch getFetch() { if (fetchBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } else { if (sumCase_ == 5) { return fetchBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } } /** * .daml_lf_1.Update.Fetch fetch = 5; */ public Builder setFetch(com.daml.daml_lf_dev.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; */ public Builder setFetch( com.daml.daml_lf_dev.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; */ public Builder mergeFetch(com.daml.daml_lf_dev.DamlLf1.Update.Fetch value) { if (fetchBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.Fetch.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder getFetchBuilder() { return getFetchFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.Fetch fetch = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder getFetchOrBuilder() { if ((sumCase_ == 5) && (fetchBuilder_ != null)) { return fetchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } } /** * .daml_lf_1.Update.Fetch fetch = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Fetch, com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder> getFetchFieldBuilder() { if (fetchBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.Fetch.getDefaultInstance(); } fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.Fetch, com.daml.daml_lf_dev.DamlLf1.Update.Fetch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.FetchOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.Fetch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return fetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getTimeBuilder_; /** * .daml_lf_1.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 6) { return getTimeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6; */ public Builder setGetTime(com.daml.daml_lf_dev.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; */ public Builder setGetTime( com.daml.daml_lf_dev.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; */ public Builder mergeGetTime(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (getTimeBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getGetTimeBuilder() { return getGetTimeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if ((sumCase_ == 6) && (getTimeBuilder_ != null)) { return getTimeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getGetTimeFieldBuilder() { if (getTimeBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } getTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged();; return getTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder> lookupByKeyBuilder_; /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; * @return Whether the lookupByKey field is set. */ @java.lang.Override public boolean hasLookupByKey() { return sumCase_ == 8; } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; * @return The lookupByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getLookupByKey() { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } else { if (sumCase_ == 8) { return lookupByKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ public Builder setLookupByKey(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey value) { if (lookupByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { lookupByKeyBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ public Builder setLookupByKey( com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder builderForValue) { if (lookupByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { lookupByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ public Builder mergeLookupByKey(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey value) { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.newBuilder((com.daml.daml_lf_dev.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; } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ 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; } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder getLookupByKeyBuilder() { return getLookupByKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder() { if ((sumCase_ == 8) && (lookupByKeyBuilder_ != null)) { return lookupByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_1.Update.RetrieveByKey lookup_by_key = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder> getLookupByKeyFieldBuilder() { if (lookupByKeyBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } lookupByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged();; return lookupByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder> fetchByKeyBuilder_; /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; * @return Whether the fetchByKey field is set. */ @java.lang.Override public boolean hasFetchByKey() { return sumCase_ == 9; } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; * @return The fetchByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey getFetchByKey() { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } else { if (sumCase_ == 9) { return fetchByKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ public Builder setFetchByKey(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey value) { if (fetchByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fetchByKeyBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ public Builder setFetchByKey( com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder builderForValue) { if (fetchByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ public Builder mergeFetchByKey(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey value) { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.newBuilder((com.daml.daml_lf_dev.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; } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ 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; } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder getFetchByKeyBuilder() { return getFetchByKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder() { if ((sumCase_ == 9) && (fetchByKeyBuilder_ != null)) { return fetchByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_1.Update.RetrieveByKey fetch_by_key = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder> getFetchByKeyFieldBuilder() { if (fetchByKeyBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.getDefaultInstance(); } fetchByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKeyOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged();; return fetchByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder> embedExprBuilder_; /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; * @return Whether the embedExpr field is set. */ @java.lang.Override public boolean hasEmbedExpr() { return sumCase_ == 7; } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr getEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } else { if (sumCase_ == 7) { return embedExprBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; */ public Builder setEmbedExpr(com.daml.daml_lf_dev.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; */ public Builder setEmbedExpr( com.daml.daml_lf_dev.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; */ public Builder mergeEmbedExpr(com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr value) { if (embedExprBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder getEmbedExprOrBuilder() { if ((sumCase_ == 7) && (embedExprBuilder_ != null)) { return embedExprBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } } /** *
       * see similar constructor in `Scenario` on why this is useful.
       * 
* * .daml_lf_1.Update.EmbedExpr embed_expr = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder> getEmbedExprFieldBuilder() { if (embedExprBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.getDefaultInstance(); } embedExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf1.Update.EmbedExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return embedExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.TryCatch, com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder> tryCatchBuilder_; /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; * @return Whether the tryCatch field is set. */ @java.lang.Override public boolean hasTryCatch() { return sumCase_ == 11; } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; * @return The tryCatch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatch getTryCatch() { if (tryCatchBuilder_ == null) { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } else { if (sumCase_ == 11) { return tryCatchBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ public Builder setTryCatch(com.daml.daml_lf_dev.DamlLf1.Update.TryCatch value) { if (tryCatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tryCatchBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ public Builder setTryCatch( com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder builderForValue) { if (tryCatchBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tryCatchBuilder_.setMessage(builderForValue.build()); } sumCase_ = 11; return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ public Builder mergeTryCatch(com.daml.daml_lf_dev.DamlLf1.Update.TryCatch value) { if (tryCatchBuilder_ == null) { if (sumCase_ == 11 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 11) { tryCatchBuilder_.mergeFrom(value); } tryCatchBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ public Builder clearTryCatch() { if (tryCatchBuilder_ == null) { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; } tryCatchBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ public com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder getTryCatchBuilder() { return getTryCatchFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder getTryCatchOrBuilder() { if ((sumCase_ == 11) && (tryCatchBuilder_ != null)) { return tryCatchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.14*
       * 
* * .daml_lf_1.Update.TryCatch try_catch = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.TryCatch, com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder> getTryCatchFieldBuilder() { if (tryCatchBuilder_ == null) { if (!(sumCase_ == 11)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.getDefaultInstance(); } tryCatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.TryCatch, com.daml.daml_lf_dev.DamlLf1.Update.TryCatch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.TryCatchOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.TryCatch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 11; onChanged();; return tryCatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder> exerciseInterfaceBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; * @return Whether the exerciseInterface field is set. */ @java.lang.Override public boolean hasExerciseInterface() { return sumCase_ == 12; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; * @return The exerciseInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getExerciseInterface() { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } else { if (sumCase_ == 12) { return exerciseInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ public Builder setExerciseInterface(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface value) { if (exerciseInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { exerciseInterfaceBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ public Builder setExerciseInterface( com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder builderForValue) { if (exerciseInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { exerciseInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ public Builder mergeExerciseInterface(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface value) { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 12) { exerciseInterfaceBuilder_.mergeFrom(value); } exerciseInterfaceBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ public Builder clearExerciseInterface() { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } exerciseInterfaceBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder getExerciseInterfaceBuilder() { return getExerciseInterfaceFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder() { if ((sumCase_ == 12) && (exerciseInterfaceBuilder_ != null)) { return exerciseInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder> getExerciseInterfaceFieldBuilder() { if (exerciseInterfaceBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } exerciseInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged();; return exerciseInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder> fetchInterfaceBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; * @return Whether the fetchInterface field is set. */ @java.lang.Override public boolean hasFetchInterface() { return sumCase_ == 13; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; * @return The fetchInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getFetchInterface() { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } else { if (sumCase_ == 13) { return fetchInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ public Builder setFetchInterface(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface value) { if (fetchInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fetchInterfaceBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ public Builder setFetchInterface( com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder builderForValue) { if (fetchInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 13; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ public Builder mergeFetchInterface(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface value) { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 13 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 13) { fetchInterfaceBuilder_.mergeFrom(value); } fetchInterfaceBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ public Builder clearFetchInterface() { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; } fetchInterfaceBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder getFetchInterfaceBuilder() { return getFetchInterfaceFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder() { if ((sumCase_ == 13) && (fetchInterfaceBuilder_ != null)) { return fetchInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder> getFetchInterfaceFieldBuilder() { if (fetchInterfaceBuilder_ == null) { if (!(sumCase_ == 13)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } fetchInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 13; onChanged();; return fetchInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder> createInterfaceBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; * @return Whether the createInterface field is set. */ @java.lang.Override public boolean hasCreateInterface() { return sumCase_ == 14; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; * @return The createInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getCreateInterface() { if (createInterfaceBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } else { if (sumCase_ == 14) { return createInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ public Builder setCreateInterface(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface value) { if (createInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { createInterfaceBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ public Builder setCreateInterface( com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder builderForValue) { if (createInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { createInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 14; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ public Builder mergeCreateInterface(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface value) { if (createInterfaceBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 14) { createInterfaceBuilder_.mergeFrom(value); } createInterfaceBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ public Builder clearCreateInterface() { if (createInterfaceBuilder_ == null) { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; } createInterfaceBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder getCreateInterfaceBuilder() { return getCreateInterfaceFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder() { if ((sumCase_ == 14) && (createInterfaceBuilder_ != null)) { return createInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder> getCreateInterfaceFieldBuilder() { if (createInterfaceBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } createInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged();; return createInterfaceBuilder_; } @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.daml.daml_lf_dev.DamlLf1.Update DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the pure field is set. */ boolean hasPure(); /** * .daml_lf_1.Pure pure = 1; * @return The pure. */ com.daml.daml_lf_dev.DamlLf1.Pure getPure(); /** * .daml_lf_1.Pure pure = 1; */ com.daml.daml_lf_dev.DamlLf1.PureOrBuilder getPureOrBuilder(); /** * .daml_lf_1.Block block = 2; * @return Whether the block field is set. */ boolean hasBlock(); /** * .daml_lf_1.Block block = 2; * @return The block. */ com.daml.daml_lf_dev.DamlLf1.Block getBlock(); /** * .daml_lf_1.Block block = 2; */ com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getBlockOrBuilder(); /** * .daml_lf_1.Scenario.Commit commit = 3; * @return Whether the commit field is set. */ boolean hasCommit(); /** * .daml_lf_1.Scenario.Commit commit = 3; * @return The commit. */ com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getCommit(); /** * .daml_lf_1.Scenario.Commit commit = 3; */ com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder getCommitOrBuilder(); /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; * @return Whether the mustFailAt field is set. */ boolean hasMustFailAt(); /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; * @return The mustFailAt. */ com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getMustFailAt(); /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; */ com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder getMustFailAtOrBuilder(); /** * .daml_lf_1.Expr pass = 5; * @return Whether the pass field is set. */ boolean hasPass(); /** * .daml_lf_1.Expr pass = 5; * @return The pass. */ com.daml.daml_lf_dev.DamlLf1.Expr getPass(); /** * .daml_lf_1.Expr pass = 5; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPassOrBuilder(); /** * .daml_lf_1.Unit get_time = 6; * @return Whether the getTime field is set. */ boolean hasGetTime(); /** * .daml_lf_1.Unit get_time = 6; * @return The getTime. */ com.daml.daml_lf_dev.DamlLf1.Unit getGetTime(); /** * .daml_lf_1.Unit get_time = 6; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getGetTimeOrBuilder(); /** * .daml_lf_1.Expr get_party = 7; * @return Whether the getParty field is set. */ boolean hasGetParty(); /** * .daml_lf_1.Expr get_party = 7; * @return The getParty. */ com.daml.daml_lf_dev.DamlLf1.Expr getGetParty(); /** * .daml_lf_1.Expr get_party = 7; */ com.daml.daml_lf_dev.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; * @return Whether the embedExpr field is set. */ 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; * @return The embedExpr. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Pure) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Pure.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Pure) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Block.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Block) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Block) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 2; break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder subBuilder = null; if (sumCase_ == 3) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 3; break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder subBuilder = null; if (sumCase_ == 4) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 4; break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (sumCase_ == 5) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 5; break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (sumCase_ == 6) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 6; break; } case 58: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (sumCase_ == 7) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 7; break; } case 66: { com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.Builder subBuilder = null; if (sumCase_ == 8) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Scenario.class, com.daml.daml_lf_dev.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; * @return Whether the party field is set. */ boolean hasParty(); /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1; * @return The party. */ com.daml.daml_lf_dev.DamlLf1.Expr getParty(); /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPartyOrBuilder(); /** *
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** *
       * 
* * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3; * @return Whether the retType field is set. */ boolean hasRetType(); /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3; * @return The retType. */ com.daml.daml_lf_dev.DamlLf1.Type getRetType(); /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (party_ != null) { subBuilder = party_.toBuilder(); } party_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(party_); party_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (retType_ != null) { subBuilder = retType_.toBuilder(); } retType_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.class, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder.class); } public static final int PARTY_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Expr party_; /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1; * @return Whether the party field is set. */ @java.lang.Override public boolean hasParty() { return party_ != null; } /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1; * @return The party. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getParty() { return party_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : party_; } /** *
       * committing party
       * 
* * .daml_lf_1.Expr party = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPartyOrBuilder() { return getParty(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** *
       * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** *
       * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** *
       * 
* * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } public static final int RET_TYPE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Type retType_; /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3; * @return Whether the retType field is set. */ @java.lang.Override public boolean hasRetType() { return retType_ != null; } /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3; * @return The retType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getRetType() { return retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } /** *
       * type of result
       * 
* * .daml_lf_1.Type ret_type = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Scenario.Commit other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.class, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_Commit_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit build() { com.daml.daml_lf_dev.DamlLf1.Scenario.Commit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit buildPartial() { com.daml.daml_lf_dev.DamlLf1.Scenario.Commit result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Scenario.Commit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Scenario.Commit other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr party_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> partyBuilder_; /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; * @return Whether the party field is set. */ public boolean hasParty() { return partyBuilder_ != null || party_ != null; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; * @return The party. */ public com.daml.daml_lf_dev.DamlLf1.Expr getParty() { if (partyBuilder_ == null) { return party_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : party_; } else { return partyBuilder_.getMessage(); } } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; */ public Builder setParty(com.daml.daml_lf_dev.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; */ public Builder setParty( com.daml.daml_lf_dev.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; */ public Builder mergeParty(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (partyBuilder_ == null) { if (party_ != null) { party_ = com.daml.daml_lf_dev.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; */ public Builder clearParty() { if (partyBuilder_ == null) { party_ = null; onChanged(); } else { party_ = null; partyBuilder_ = null; } return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getPartyBuilder() { onChanged(); return getPartyFieldBuilder().getBuilder(); } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPartyOrBuilder() { if (partyBuilder_ != null) { return partyBuilder_.getMessageOrBuilder(); } else { return party_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : party_; } } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getPartyFieldBuilder() { if (partyBuilder_ == null) { partyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getParty(), getParentForChildren(), isClean()); party_ = null; } return partyBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** *
         * 
* * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Type retType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> retTypeBuilder_; /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; * @return Whether the retType field is set. */ public boolean hasRetType() { return retTypeBuilder_ != null || retType_ != null; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; * @return The retType. */ public com.daml.daml_lf_dev.DamlLf1.Type getRetType() { if (retTypeBuilder_ == null) { return retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } else { return retTypeBuilder_.getMessage(); } } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; */ public Builder setRetType(com.daml.daml_lf_dev.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; */ public Builder setRetType( com.daml.daml_lf_dev.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; */ public Builder mergeRetType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (retTypeBuilder_ == null) { if (retType_ != null) { retType_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getRetTypeBuilder() { onChanged(); return getRetTypeFieldBuilder().getBuilder(); } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { if (retTypeBuilder_ != null) { return retTypeBuilder_.getMessageOrBuilder(); } else { return retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getRetTypeFieldBuilder() { if (retTypeBuilder_ == null) { retTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.Commit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Scenario.Commit(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_1.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.Expr getBody(); /** * .daml_lf_1.Expr body = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr body_; /** * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** * .daml_lf_1.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } /** * .daml_lf_1.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_EmbedExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr build() { com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr buildPartial() { com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_1.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .daml_lf_1.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.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; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_1.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure getPure() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } /** * .daml_lf_1.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PureOrBuilder getPureOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** * .daml_lf_1.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getBlock() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } /** * .daml_lf_1.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 3; /** * .daml_lf_1.Scenario.Commit commit = 3; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return sumCase_ == 3; } /** * .daml_lf_1.Scenario.Commit commit = 3; * @return The commit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getCommit() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } /** * .daml_lf_1.Scenario.Commit commit = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder getCommitOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } public static final int MUSTFAILAT_FIELD_NUMBER = 4; /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; * @return Whether the mustFailAt field is set. */ @java.lang.Override public boolean hasMustFailAt() { return sumCase_ == 4; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; * @return The mustFailAt. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getMustFailAt() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder getMustFailAtOrBuilder() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } public static final int PASS_FIELD_NUMBER = 5; /** * .daml_lf_1.Expr pass = 5; * @return Whether the pass field is set. */ @java.lang.Override public boolean hasPass() { return sumCase_ == 5; } /** * .daml_lf_1.Expr pass = 5; * @return The pass. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getPass() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } /** * .daml_lf_1.Expr pass = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPassOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } public static final int GET_TIME_FIELD_NUMBER = 6; /** * .daml_lf_1.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getGetTime() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** * .daml_lf_1.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } public static final int GET_PARTY_FIELD_NUMBER = 7; /** * .daml_lf_1.Expr get_party = 7; * @return Whether the getParty field is set. */ @java.lang.Override public boolean hasGetParty() { return sumCase_ == 7; } /** * .daml_lf_1.Expr get_party = 7; * @return The getParty. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getGetParty() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } /** * .daml_lf_1.Expr get_party = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getGetPartyOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.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; * @return Whether the embedExpr field is set. */ @java.lang.Override 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; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr getEmbedExpr() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf1.Block) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf1.Expr) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf1.Expr) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf1.Block) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf1.Expr) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf1.Unit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf1.Expr) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Scenario other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Scenario parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Scenario parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ScenarioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Scenario.class, com.daml.daml_lf_dev.DamlLf1.Scenario.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Scenario_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Scenario.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario build() { com.daml.daml_lf_dev.DamlLf1.Scenario result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario buildPartial() { com.daml.daml_lf_dev.DamlLf1.Scenario result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Scenario)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Scenario other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Pure, com.daml.daml_lf_dev.DamlLf1.Pure.Builder, com.daml.daml_lf_dev.DamlLf1.PureOrBuilder> pureBuilder_; /** * .daml_lf_1.Pure pure = 1; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_1.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Pure getPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } else { if (sumCase_ == 1) { return pureBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1; */ public Builder setPure(com.daml.daml_lf_dev.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; */ public Builder setPure( com.daml.daml_lf_dev.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; */ public Builder mergePure(com.daml.daml_lf_dev.DamlLf1.Pure value) { if (pureBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Pure.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Pure.Builder getPureBuilder() { return getPureFieldBuilder().getBuilder(); } /** * .daml_lf_1.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PureOrBuilder getPureOrBuilder() { if ((sumCase_ == 1) && (pureBuilder_ != null)) { return pureBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } } /** * .daml_lf_1.Pure pure = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Pure, com.daml.daml_lf_dev.DamlLf1.Pure.Builder, com.daml.daml_lf_dev.DamlLf1.PureOrBuilder> getPureFieldBuilder() { if (pureBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Pure.getDefaultInstance(); } pureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Pure, com.daml.daml_lf_dev.DamlLf1.Pure.Builder, com.daml.daml_lf_dev.DamlLf1.PureOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Pure) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return pureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder> blockBuilder_; /** * .daml_lf_1.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_1.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Block getBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } else { if (sumCase_ == 2) { return blockBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2; */ public Builder setBlock(com.daml.daml_lf_dev.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; */ public Builder setBlock( com.daml.daml_lf_dev.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; */ public Builder mergeBlock(com.daml.daml_lf_dev.DamlLf1.Block value) { if (blockBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Block.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * .daml_lf_1.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder getBlockOrBuilder() { if ((sumCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.Block) sum_; } return com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } } /** * .daml_lf_1.Block block = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Block, com.daml.daml_lf_dev.DamlLf1.Block.Builder, com.daml.daml_lf_dev.DamlLf1.BlockOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged();; return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.Commit, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder> commitBuilder_; /** * .daml_lf_1.Scenario.Commit commit = 3; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return sumCase_ == 3; } /** * .daml_lf_1.Scenario.Commit commit = 3; * @return The commit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getCommit() { if (commitBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } else { if (sumCase_ == 3) { return commitBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit commit = 3; */ public Builder setCommit(com.daml.daml_lf_dev.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; */ public Builder setCommit( com.daml.daml_lf_dev.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; */ public Builder mergeCommit(com.daml.daml_lf_dev.DamlLf1.Scenario.Commit value) { if (commitBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** * .daml_lf_1.Scenario.Commit commit = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder getCommitOrBuilder() { if ((sumCase_ == 3) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit commit = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.Commit, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.Commit, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged();; return commitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.Commit, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder> mustFailAtBuilder_; /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; * @return Whether the mustFailAt field is set. */ @java.lang.Override public boolean hasMustFailAt() { return sumCase_ == 4; } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; * @return The mustFailAt. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit getMustFailAt() { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } else { if (sumCase_ == 4) { return mustFailAtBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; */ public Builder setMustFailAt(com.daml.daml_lf_dev.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; */ public Builder setMustFailAt( com.daml.daml_lf_dev.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; */ public Builder mergeMustFailAt(com.daml.daml_lf_dev.DamlLf1.Scenario.Commit value) { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder getMustFailAtBuilder() { return getMustFailAtFieldBuilder().getBuilder(); } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder getMustFailAtOrBuilder() { if ((sumCase_ == 4) && (mustFailAtBuilder_ != null)) { return mustFailAtBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_1.Scenario.Commit mustFailAt = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.Commit, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder> getMustFailAtFieldBuilder() { if (mustFailAtBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.getDefaultInstance(); } mustFailAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.Commit, com.daml.daml_lf_dev.DamlLf1.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.CommitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Scenario.Commit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged();; return mustFailAtBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> passBuilder_; /** * .daml_lf_1.Expr pass = 5; * @return Whether the pass field is set. */ @java.lang.Override public boolean hasPass() { return sumCase_ == 5; } /** * .daml_lf_1.Expr pass = 5; * @return The pass. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getPass() { if (passBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } else { if (sumCase_ == 5) { return passBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr pass = 5; */ public Builder setPass(com.daml.daml_lf_dev.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; */ public Builder setPass( com.daml.daml_lf_dev.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; */ public Builder mergePass(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (passBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getPassBuilder() { return getPassFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr pass = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPassOrBuilder() { if ((sumCase_ == 5) && (passBuilder_ != null)) { return passBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr pass = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getPassFieldBuilder() { if (passBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } passBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged();; return passBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getTimeBuilder_; /** * .daml_lf_1.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_1.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (sumCase_ == 6) { return getTimeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6; */ public Builder setGetTime(com.daml.daml_lf_dev.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; */ public Builder setGetTime( com.daml.daml_lf_dev.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; */ public Builder mergeGetTime(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (getTimeBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getGetTimeBuilder() { return getGetTimeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getGetTimeOrBuilder() { if ((sumCase_ == 6) && (getTimeBuilder_ != null)) { return getTimeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf1.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** * .daml_lf_1.Unit get_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getGetTimeFieldBuilder() { if (getTimeBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } getTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged();; return getTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getPartyBuilder_; /** * .daml_lf_1.Expr get_party = 7; * @return Whether the getParty field is set. */ @java.lang.Override public boolean hasGetParty() { return sumCase_ == 7; } /** * .daml_lf_1.Expr get_party = 7; * @return The getParty. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getGetParty() { if (getPartyBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } else { if (sumCase_ == 7) { return getPartyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr get_party = 7; */ public Builder setGetParty(com.daml.daml_lf_dev.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; */ public Builder setGetParty( com.daml.daml_lf_dev.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; */ public Builder mergeGetParty(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (getPartyBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getGetPartyBuilder() { return getGetPartyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr get_party = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getGetPartyOrBuilder() { if ((sumCase_ == 7) && (getPartyBuilder_ != null)) { return getPartyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr get_party = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getGetPartyFieldBuilder() { if (getPartyBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } getPartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged();; return getPartyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.Builder, com.daml.daml_lf_dev.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; * @return Whether the embedExpr field is set. */ @java.lang.Override 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; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr getEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } else { if (sumCase_ == 8) { return embedExprBuilder_.getMessage(); } return com.daml.daml_lf_dev.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; */ public Builder setEmbedExpr(com.daml.daml_lf_dev.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; */ public Builder setEmbedExpr( com.daml.daml_lf_dev.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; */ public Builder mergeEmbedExpr(com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr value) { if (embedExprBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder() { if ((sumCase_ == 8) && (embedExprBuilder_ != null)) { return embedExprBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExprOrBuilder> getEmbedExprFieldBuilder() { if (embedExprBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.getDefaultInstance(); } embedExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExprOrBuilder>( (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Scenario DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Scenario(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the nameStr field is set. */ boolean hasNameStr(); /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1; * @return The nameStr. */ java.lang.String getNameStr(); /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1; * @return The bytes for nameStr. */ com.google.protobuf.ByteString getNameStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 9; * @return Whether the nameInternedStr field is set. */ boolean hasNameInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 9; * @return The nameInternedStr. */ int getNameInternedStr(); /** *
     * Choice type
     * 
* * bool consuming = 2; * @return The consuming. */ boolean getConsuming(); /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, and 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; * @return Whether the controllers field is set. */ boolean hasControllers(); /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, and 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; * @return The controllers. */ com.daml.daml_lf_dev.DamlLf1.Expr getControllers(); /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, and 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; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getControllersOrBuilder(); /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_1.Expr observers = 11; * @return Whether the observers field is set. */ boolean hasObservers(); /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_1.Expr observers = 11; * @return The observers. */ com.daml.daml_lf_dev.DamlLf1.Expr getObservers(); /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_1.Expr observers = 11; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getObserversOrBuilder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4; * @return Whether the argBinder field is set. */ boolean hasArgBinder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4; * @return The argBinder. */ com.daml.daml_lf_dev.DamlLf1.VarWithType getArgBinder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4; */ com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getArgBinderOrBuilder(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5; * @return Whether the retType field is set. */ boolean hasRetType(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5; * @return The retType. */ com.daml.daml_lf_dev.DamlLf1.Type getRetType(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5; */ com.daml.daml_lf_dev.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; * @return Whether the update field is set. */ 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; * @return The update. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getUpdateOrBuilder(); /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7; * @return Whether the selfBinderStr field is set. */ boolean hasSelfBinderStr(); /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7; * @return The selfBinderStr. */ java.lang.String getSelfBinderStr(); /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7; * @return The bytes for selfBinderStr. */ com.google.protobuf.ByteString getSelfBinderStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10; * @return Whether the selfBinderInternedStr field is set. */ boolean hasSelfBinderInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10; * @return The selfBinderInternedStr. */ int getSelfBinderInternedStr(); /** * .daml_lf_1.Location location = 8; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 8; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 8; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.NameCase getNameCase(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (controllers_ != null) { subBuilder = controllers_.toBuilder(); } controllers_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(controllers_); controllers_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder subBuilder = null; if (argBinder_ != null) { subBuilder = argBinder_.toBuilder(); } argBinder_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.VarWithType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(argBinder_); argBinder_ = subBuilder.buildPartial(); } break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (retType_ != null) { subBuilder = retType_.toBuilder(); } retType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retType_); retType_ = subBuilder.buildPartial(); } break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 72: { name_ = input.readInt32(); nameCase_ = 9; break; } case 80: { selfBinder_ = input.readInt32(); selfBinderCase_ = 10; break; } case 90: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (observers_ != null) { subBuilder = observers_.toBuilder(); } observers_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(observers_); observers_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TemplateChoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TemplateChoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.class, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME_STR(1), NAME_INTERNED_STR(9), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SELF_BINDER_STR(7), SELF_BINDER_INTERNED_STR(10), SELFBINDER_NOT_SET(0); private final int value; private SelfBinderCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the nameStr field is set. */ public boolean hasNameStr() { return nameCase_ == 1; } /** *
     * *Available in version < 1.7*
     * 
* * string name_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the nameInternedStr field is set. */ @java.lang.Override public boolean hasNameInternedStr() { return nameCase_ == 9; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 9; * @return The nameInternedStr. */ @java.lang.Override 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; * @return The consuming. */ @java.lang.Override public boolean getConsuming() { return consuming_; } public static final int CONTROLLERS_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr controllers_; /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, and 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; * @return Whether the controllers field is set. */ @java.lang.Override public boolean hasControllers() { return controllers_ != null; } /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, and 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; * @return The controllers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getControllers() { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : controllers_; } /** *
     * The controllers of the choice. They have type `List Party` and the
     * template parameter in scope, and 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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getControllersOrBuilder() { return getControllers(); } public static final int OBSERVERS_FIELD_NUMBER = 11; private com.daml.daml_lf_dev.DamlLf1.Expr observers_; /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_1.Expr observers = 11; * @return Whether the observers field is set. */ @java.lang.Override public boolean hasObservers() { return observers_ != null; } /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_1.Expr observers = 11; * @return The observers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getObservers() { return observers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : observers_; } /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_1.Expr observers = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getObserversOrBuilder() { return getObservers(); } public static final int ARG_BINDER_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.VarWithType argBinder_; /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4; * @return Whether the argBinder field is set. */ @java.lang.Override public boolean hasArgBinder() { return argBinder_ != null; } /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4; * @return The argBinder. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithType getArgBinder() { return argBinder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : argBinder_; } /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_1.VarWithType arg_binder = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getArgBinderOrBuilder() { return getArgBinder(); } public static final int RET_TYPE_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf1.Type retType_; /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5; * @return Whether the retType field is set. */ @java.lang.Override public boolean hasRetType() { return retType_ != null; } /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5; * @return The retType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getRetType() { return retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } /** *
     * Return type of the choice.
     * 
* * .daml_lf_1.Type ret_type = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { return getRetType(); } public static final int UPDATE_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.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; * @return Whether the update field is set. */ @java.lang.Override 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; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getUpdate() { return update_ == null ? com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.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; * @return Whether the selfBinderStr field is set. */ public boolean hasSelfBinderStr() { return selfBinderCase_ == 7; } /** *
     * *Must be a valid identifier*
     * 
* * string self_binder_str = 7; * @return The 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; * @return The bytes for 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; * @return Whether the selfBinderInternedStr field is set. */ @java.lang.Override public boolean hasSelfBinderInternedStr() { return selfBinderCase_ == 10; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10; * @return The selfBinderInternedStr. */ @java.lang.Override public int getSelfBinderInternedStr() { if (selfBinderCase_ == 10) { return (java.lang.Integer) selfBinder_; } return 0; } public static final int LOCATION_FIELD_NUMBER = 8; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 8; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 8; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 8; */ @java.lang.Override public com.daml.daml_lf_dev.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_)); } if (observers_ != null) { output.writeMessage(11, getObservers()); } 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_)); } if (observers_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getObservers()); } 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.daml.daml_lf_dev.DamlLf1.TemplateChoice)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.TemplateChoice other = (com.daml.daml_lf_dev.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 (hasObservers() != other.hasObservers()) return false; if (hasObservers()) { if (!getObservers() .equals(other.getObservers())) 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 (hasObservers()) { hash = (37 * hash) + OBSERVERS_FIELD_NUMBER; hash = (53 * hash) + getObservers().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.daml.daml_lf_dev.DamlLf1.TemplateChoice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.TemplateChoice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.TemplateChoice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TemplateChoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TemplateChoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.class, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder.class); } // Construct using com.daml.daml_lf_dev.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 (observersBuilder_ == null) { observers_ = null; } else { observers_ = null; observersBuilder_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_TemplateChoice_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoice getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoice build() { com.daml.daml_lf_dev.DamlLf1.TemplateChoice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoice buildPartial() { com.daml.daml_lf_dev.DamlLf1.TemplateChoice result = new com.daml.daml_lf_dev.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 (observersBuilder_ == null) { result.observers_ = observers_; } else { result.observers_ = observersBuilder_.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.daml.daml_lf_dev.DamlLf1.TemplateChoice) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.TemplateChoice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.TemplateChoice other) { if (other == com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()) return this; if (other.getConsuming() != false) { setConsuming(other.getConsuming()); } if (other.hasControllers()) { mergeControllers(other.getControllers()); } if (other.hasObservers()) { mergeObservers(other.getObservers()); } 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.daml.daml_lf_dev.DamlLf1.TemplateChoice parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the nameStr field is set. */ @java.lang.Override public boolean hasNameStr() { return nameCase_ == 1; } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1; * @return The nameStr. */ @java.lang.Override 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; * @return The bytes for nameStr. */ @java.lang.Override 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; * @param value The nameStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearNameStr() { if (nameCase_ == 1) { nameCase_ = 0; name_ = null; onChanged(); } return this; } /** *
       * *Available in version < 1.7*
       * 
* * string name_str = 1; * @param value The bytes for nameStr to set. * @return This builder for chaining. */ 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; * @return Whether the nameInternedStr field is set. */ public boolean hasNameInternedStr() { return nameCase_ == 9; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 9; * @return The 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; * @param value The nameInternedStr to set. * @return This builder for chaining. */ public Builder setNameInternedStr(int value) { nameCase_ = 9; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 9; * @return This builder for chaining. */ public Builder clearNameInternedStr() { if (nameCase_ == 9) { nameCase_ = 0; name_ = null; onChanged(); } return this; } private boolean consuming_ ; /** *
       * Choice type
       * 
* * bool consuming = 2; * @return The consuming. */ @java.lang.Override public boolean getConsuming() { return consuming_; } /** *
       * Choice type
       * 
* * bool consuming = 2; * @param value The consuming to set. * @return This builder for chaining. */ public Builder setConsuming(boolean value) { consuming_ = value; onChanged(); return this; } /** *
       * Choice type
       * 
* * bool consuming = 2; * @return This builder for chaining. */ public Builder clearConsuming() { consuming_ = false; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr controllers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> controllersBuilder_; /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, and 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; * @return Whether the controllers field is set. */ public boolean hasControllers() { return controllersBuilder_ != null || controllers_ != null; } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, and 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; * @return The controllers. */ public com.daml.daml_lf_dev.DamlLf1.Expr getControllers() { if (controllersBuilder_ == null) { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : controllers_; } else { return controllersBuilder_.getMessage(); } } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, and 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; */ public Builder setControllers(com.daml.daml_lf_dev.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, and 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; */ public Builder setControllers( com.daml.daml_lf_dev.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, and 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; */ public Builder mergeControllers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (controllersBuilder_ == null) { if (controllers_ != null) { controllers_ = com.daml.daml_lf_dev.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, and 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; */ 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, and 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getControllersBuilder() { onChanged(); return getControllersFieldBuilder().getBuilder(); } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, and 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; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getControllersOrBuilder() { if (controllersBuilder_ != null) { return controllersBuilder_.getMessageOrBuilder(); } else { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : controllers_; } } /** *
       * The controllers of the choice. They have type `List Party` and the
       * template parameter in scope, and 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getControllersFieldBuilder() { if (controllersBuilder_ == null) { controllersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getControllers(), getParentForChildren(), isClean()); controllers_ = null; } return controllersBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr observers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> observersBuilder_; /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; * @return Whether the observers field is set. */ public boolean hasObservers() { return observersBuilder_ != null || observers_ != null; } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; * @return The observers. */ public com.daml.daml_lf_dev.DamlLf1.Expr getObservers() { if (observersBuilder_ == null) { return observers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : observers_; } else { return observersBuilder_.getMessage(); } } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public Builder setObservers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (observersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } observers_ = value; onChanged(); } else { observersBuilder_.setMessage(value); } return this; } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public Builder setObservers( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (observersBuilder_ == null) { observers_ = builderForValue.build(); onChanged(); } else { observersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public Builder mergeObservers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (observersBuilder_ == null) { if (observers_ != null) { observers_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(observers_).mergeFrom(value).buildPartial(); } else { observers_ = value; } onChanged(); } else { observersBuilder_.mergeFrom(value); } return this; } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public Builder clearObservers() { if (observersBuilder_ == null) { observers_ = null; onChanged(); } else { observers_ = null; observersBuilder_ = null; } return this; } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getObserversBuilder() { onChanged(); return getObserversFieldBuilder().getBuilder(); } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getObserversOrBuilder() { if (observersBuilder_ != null) { return observersBuilder_.getMessageOrBuilder(); } else { return observers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : observers_; } } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getObserversFieldBuilder() { if (observersBuilder_ == null) { observersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getObservers(), getParentForChildren(), isClean()); observers_ = null; } return observersBuilder_; } private com.daml.daml_lf_dev.DamlLf1.VarWithType argBinder_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder> argBinderBuilder_; /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4; * @return Whether the argBinder field is set. */ 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; * @return The argBinder. */ public com.daml.daml_lf_dev.DamlLf1.VarWithType getArgBinder() { if (argBinderBuilder_ == null) { return argBinder_ == null ? com.daml.daml_lf_dev.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; */ public Builder setArgBinder(com.daml.daml_lf_dev.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; */ public Builder setArgBinder( com.daml.daml_lf_dev.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; */ public Builder mergeArgBinder(com.daml.daml_lf_dev.DamlLf1.VarWithType value) { if (argBinderBuilder_ == null) { if (argBinder_ != null) { argBinder_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder getArgBinderOrBuilder() { if (argBinderBuilder_ != null) { return argBinderBuilder_.getMessageOrBuilder(); } else { return argBinder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : argBinder_; } } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder> getArgBinderFieldBuilder() { if (argBinderBuilder_ == null) { argBinderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.VarWithType, com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf1.VarWithTypeOrBuilder>( getArgBinder(), getParentForChildren(), isClean()); argBinder_ = null; } return argBinderBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Type retType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> retTypeBuilder_; /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; * @return Whether the retType field is set. */ public boolean hasRetType() { return retTypeBuilder_ != null || retType_ != null; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; * @return The retType. */ public com.daml.daml_lf_dev.DamlLf1.Type getRetType() { if (retTypeBuilder_ == null) { return retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } else { return retTypeBuilder_.getMessage(); } } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; */ public Builder setRetType(com.daml.daml_lf_dev.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; */ public Builder setRetType( com.daml.daml_lf_dev.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; */ public Builder mergeRetType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (retTypeBuilder_ == null) { if (retType_ != null) { retType_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getRetTypeBuilder() { onChanged(); return getRetTypeFieldBuilder().getBuilder(); } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getRetTypeOrBuilder() { if (retTypeBuilder_ != null) { return retTypeBuilder_.getMessageOrBuilder(); } else { return retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getRetTypeFieldBuilder() { if (retTypeBuilder_ == null) { retTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getRetType(), getParentForChildren(), isClean()); retType_ = null; } return retTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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; * @return Whether the update field is set. */ 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; * @return The update. */ public com.daml.daml_lf_dev.DamlLf1.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.daml.daml_lf_dev.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; */ public Builder setUpdate(com.daml.daml_lf_dev.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; */ public Builder setUpdate( com.daml.daml_lf_dev.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; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getUpdate(), getParentForChildren(), isClean()); update_ = null; } return updateBuilder_; } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7; * @return Whether the selfBinderStr field is set. */ @java.lang.Override public boolean hasSelfBinderStr() { return selfBinderCase_ == 7; } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7; * @return The selfBinderStr. */ @java.lang.Override 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; * @return The bytes for selfBinderStr. */ @java.lang.Override 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; * @param value The selfBinderStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearSelfBinderStr() { if (selfBinderCase_ == 7) { selfBinderCase_ = 0; selfBinder_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string self_binder_str = 7; * @param value The bytes for selfBinderStr to set. * @return This builder for chaining. */ 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; * @return Whether the selfBinderInternedStr field is set. */ public boolean hasSelfBinderInternedStr() { return selfBinderCase_ == 10; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10; * @return The 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; * @param value The selfBinderInternedStr to set. * @return This builder for chaining. */ public Builder setSelfBinderInternedStr(int value) { selfBinderCase_ = 10; selfBinder_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10; * @return This builder for chaining. */ public Builder clearSelfBinderInternedStr() { if (selfBinderCase_ == 10) { selfBinderCase_ = 0; selfBinder_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 8; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 8; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 8; */ public Builder setLocation(com.daml.daml_lf_dev.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; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 8; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 8; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 8; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 8; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.TemplateChoice(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the projections field is set. */ boolean hasProjections(); /** * .daml_lf_1.KeyExpr.Projections projections = 1; * @return The projections. */ com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections getProjections(); /** * .daml_lf_1.KeyExpr.Projections projections = 1; */ com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder getProjectionsOrBuilder(); /** * .daml_lf_1.KeyExpr.Record record = 2; * @return Whether the record field is set. */ boolean hasRecord(); /** * .daml_lf_1.KeyExpr.Record record = 2; * @return The record. */ com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record getRecord(); /** * .daml_lf_1.KeyExpr.Record record = 2; */ com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder getRecordOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.Builder subBuilder = null; if (sumCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_); sum_ = subBuilder.buildPartial(); } sumCase_ = 1; break; } case 18: { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder subBuilder = null; if (sumCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) sum_).toBuilder(); } sum_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.class, com.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(2), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { return getTycon(); } public static final int FIELD_STR_FIELD_NUMBER = 2; /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projection_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection build() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection buildPartial() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 2; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 2) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 2; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3; * @return The 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; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; */ java.util.List getProjectionsList(); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection getProjections(int index); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ int getProjectionsCount(); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ java.util.List getProjectionsOrBuilderList(); /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getProjectionsList() { return projections_; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ @java.lang.Override public java.util.List getProjectionsOrBuilderList() { return projections_; } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ @java.lang.Override public int getProjectionsCount() { return projections_.size(); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection getProjections(int index) { return projections_.get(index); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Projections_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections build() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections buildPartial() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionOrBuilder> projectionsBuilder_; /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ 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; */ public int getProjectionsCount() { if (projectionsBuilder_ == null) { return projections_.size(); } else { return projectionsBuilder_.getCount(); } } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ public com.daml.daml_lf_dev.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; */ public Builder setProjections( int index, com.daml.daml_lf_dev.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; */ public Builder setProjections( int index, com.daml.daml_lf_dev.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; */ public Builder addProjections(com.daml.daml_lf_dev.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; */ public Builder addProjections( int index, com.daml.daml_lf_dev.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; */ public Builder addProjections( com.daml.daml_lf_dev.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; */ public Builder addProjections( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder getProjectionsBuilder( int index) { return getProjectionsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder addProjectionsBuilder() { return getProjectionsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder addProjectionsBuilder( int index) { return getProjectionsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.Projection projections = 2; */ public java.util.List getProjectionsBuilderList() { return getProjectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionOrBuilder> getProjectionsFieldBuilder() { if (projectionsBuilder_ == null) { projectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the fieldStr field is set. */ boolean hasFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @return The fieldStr. */ java.lang.String getFieldStr(); /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @return The bytes for fieldStr. */ com.google.protobuf.ByteString getFieldStrBytes(); /** *
       * *Must be a valid identifier*
       * 
* * int32 field_interned_str = 3; * @return Whether the fieldInternedStr field is set. */ boolean hasFieldInternedStr(); /** *
       * *Must be a valid identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** * .daml_lf_1.KeyExpr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_1.KeyExpr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.KeyExpr getExpr(); /** * .daml_lf_1.KeyExpr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder getExprOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.KeyExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } break; } case 24: { field_ = input.readInt32(); fieldCase_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder.class); } private int fieldCase_ = 0; private java.lang.Object field_; public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_STR(1), FIELD_INTERNED_STR(3), FIELD_NOT_SET(0); private final int value; private FieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the fieldStr field is set. */ public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
       * *Must be a valid identifier*
       * 
* * string field_str = 1; * @return The 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; * @return The bytes for 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; * @return Whether the fieldInternedStr field is set. */ @java.lang.Override public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
       * *Must be a valid identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.KeyExpr expr_; /** * .daml_lf_1.KeyExpr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.KeyExpr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } /** * .daml_lf_1.KeyExpr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_RecordField_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField build() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField buildPartial() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return Whether the fieldStr field is set. */ @java.lang.Override public boolean hasFieldStr() { return fieldCase_ == 1; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1; * @return The fieldStr. */ @java.lang.Override 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; * @return The bytes for fieldStr. */ @java.lang.Override 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; * @param value The fieldStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearFieldStr() { if (fieldCase_ == 1) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } /** *
         * *Must be a valid identifier*
         * 
* * string field_str = 1; * @param value The bytes for fieldStr to set. * @return This builder for chaining. */ 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; * @return Whether the fieldInternedStr field is set. */ public boolean hasFieldInternedStr() { return fieldCase_ == 3; } /** *
         * *Must be a valid identifier*
         * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ public int getFieldInternedStr() { if (fieldCase_ == 3) { return (java.lang.Integer) field_; } return 0; } /** *
         * *Must be a valid identifier*
         * 
* * int32 field_interned_str = 3; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldCase_ = 3; field_ = value; onChanged(); return this; } /** *
         * *Must be a valid identifier*
         * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { if (fieldCase_ == 3) { fieldCase_ = 0; field_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.KeyExpr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder> exprBuilder_; /** * .daml_lf_1.KeyExpr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.KeyExpr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.KeyExpr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.KeyExpr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.KeyExpr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.KeyExpr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.KeyExpr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.KeyExpr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon(); /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ java.util.List getFieldsList(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField getFields(int index); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ int getFieldsCount(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ java.util.List getFieldsOrBuilderList(); /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Con.Builder subBuilder = null; if (tycon_ != null) { subBuilder = tycon_.toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder.class); } public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ @java.lang.Override public boolean hasTycon() { return tycon_ != null; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } /** *
       * Always fully applied
       * 
* * .daml_lf_1.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField getFields(int index) { return fields_.get(index); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_Record_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record build() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record buildPartial() { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> tyconBuilder_; /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return tyconBuilder_ != null || tycon_ != null; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf1.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.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; */ public Builder setTycon( com.daml.daml_lf_dev.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; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf1.Type.Con value) { if (tyconBuilder_ == null) { if (tycon_ != null) { tycon_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf1.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type.Con, com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordFieldOrBuilder> fieldsBuilder_; /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ 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; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ public com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields(com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields( com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.getDefaultInstance()); } /** * repeated .daml_lf_1.KeyExpr.RecordField fields = 2; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordFieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Record DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PROJECTIONS(1), RECORD(2), SUM_NOT_SET(0); private final int value; private SumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the projections field is set. */ @java.lang.Override public boolean hasProjections() { return sumCase_ == 1; } /** * .daml_lf_1.KeyExpr.Projections projections = 1; * @return The projections. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections getProjections() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } /** * .daml_lf_1.KeyExpr.Projections projections = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder getProjectionsOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } public static final int RECORD_FIELD_NUMBER = 2; /** * .daml_lf_1.KeyExpr.Record record = 2; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return sumCase_ == 2; } /** * .daml_lf_1.KeyExpr.Record record = 2; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record getRecord() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance(); } /** * .daml_lf_1.KeyExpr.Record record = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder getRecordOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) sum_; } return com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.KeyExpr other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.KeyExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.KeyExpr.class, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_KeyExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr build() { com.daml.daml_lf_dev.DamlLf1.KeyExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr buildPartial() { com.daml.daml_lf_dev.DamlLf1.KeyExpr result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.KeyExpr other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder> projectionsBuilder_; /** * .daml_lf_1.KeyExpr.Projections projections = 1; * @return Whether the projections field is set. */ @java.lang.Override public boolean hasProjections() { return sumCase_ == 1; } /** * .daml_lf_1.KeyExpr.Projections projections = 1; * @return The projections. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections getProjections() { if (projectionsBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } else { if (sumCase_ == 1) { return projectionsBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Projections projections = 1; */ public Builder setProjections(com.daml.daml_lf_dev.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; */ public Builder setProjections( com.daml.daml_lf_dev.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; */ public Builder mergeProjections(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections value) { if (projectionsBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.Builder getProjectionsBuilder() { return getProjectionsFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr.Projections projections = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder getProjectionsOrBuilder() { if ((sumCase_ == 1) && (projectionsBuilder_ != null)) { return projectionsBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Projections projections = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder> getProjectionsFieldBuilder() { if (projectionsBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.getDefaultInstance(); } projectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.ProjectionsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged();; return projectionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder> recordBuilder_; /** * .daml_lf_1.KeyExpr.Record record = 2; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return sumCase_ == 2; } /** * .daml_lf_1.KeyExpr.Record record = 2; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record getRecord() { if (recordBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance(); } else { if (sumCase_ == 2) { return recordBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Record record = 2; */ public Builder setRecord(com.daml.daml_lf_dev.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; */ public Builder setRecord( com.daml.daml_lf_dev.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; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record value) { if (recordBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr.Record record = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder getRecordOrBuilder() { if ((sumCase_ == 2) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record) sum_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr.Record record = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordOrBuilder>( (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.KeyExpr(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the tyconDname field is set. */ boolean hasTyconDname(); /** * .daml_lf_1.DottedName tycon_dname = 1; * @return The tyconDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getTyconDname(); /** * .daml_lf_1.DottedName tycon_dname = 1; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getTyconDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 12; * @return Whether the tyconInternedDname field is set. */ boolean hasTyconInternedDname(); /** *
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 12; * @return The tyconInternedDname. */ int getTyconInternedDname(); /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2; * @return Whether the paramStr field is set. */ boolean hasParamStr(); /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2; * @return The paramStr. */ java.lang.String getParamStr(); /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2; * @return The bytes for paramStr. */ com.google.protobuf.ByteString getParamStrBytes(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 11; * @return Whether the paramInternedStr field is set. */ boolean hasParamInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 11; * @return The 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; * @return Whether the precond field is set. */ 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; * @return The precond. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.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; * @return Whether the signatories field is set. */ boolean hasSignatories(); /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr signatories = 5; * @return The signatories. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.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; * @return Whether the agreement field is set. */ 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; * @return The agreement. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getAgreementOrBuilder(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ java.util.List getChoicesList(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ com.daml.daml_lf_dev.DamlLf1.TemplateChoice getChoices(int index); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ int getChoicesCount(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ java.util.List getChoicesOrBuilderList(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ com.daml.daml_lf_dev.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; * @return Whether the observers field is set. */ boolean hasObservers(); /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_1.Expr observers = 8; * @return The observers. */ com.daml.daml_lf_dev.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; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getObserversOrBuilder(); /** * .daml_lf_1.Location location = 9; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 9; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 9; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; * @return Whether the key field is set. */ boolean hasKey(); /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; * @return The key. */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey getKey(); /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder getKeyOrBuilder(); /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ java.util.List getImplementsList(); /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getImplements(int index); /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ int getImplementsCount(); /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ java.util.List getImplementsOrBuilderList(); /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder getImplementsOrBuilder( int index); public com.daml.daml_lf_dev.DamlLf1.DefTemplate.TyconCase getTyconCase(); public com.daml.daml_lf_dev.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(); implements_ = 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.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (tyconCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) tycon_).toBuilder(); } tycon_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (precond_ != null) { subBuilder = precond_.toBuilder(); } precond_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(precond_); precond_ = subBuilder.buildPartial(); } break; } case 42: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (signatories_ != null) { subBuilder = signatories_.toBuilder(); } signatories_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signatories_); signatories_ = subBuilder.buildPartial(); } break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (agreement_ != null) { subBuilder = agreement_.toBuilder(); } agreement_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice.parser(), extensionRegistry)); break; } case 66: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (observers_ != null) { subBuilder = observers_.toBuilder(); } observers_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(observers_); observers_ = subBuilder.buildPartial(); } break; } case 74: { com.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 82: { com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 88: { param_ = input.readInt32(); paramCase_ = 11; break; } case 96: { tycon_ = input.readInt32(); tyconCase_ = 12; break; } case 106: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { implements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } implements_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.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)) { choices_ = java.util.Collections.unmodifiableList(choices_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { implements_ = java.util.Collections.unmodifiableList(implements_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.class, com.daml.daml_lf_dev.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; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_1.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.KeyExpr key = 2; * @return Whether the key field is set. */ boolean hasKey(); /** * .daml_lf_1.KeyExpr key = 2; * @return The key. */ com.daml.daml_lf_dev.DamlLf1.KeyExpr getKey(); /** * .daml_lf_1.KeyExpr key = 2; */ com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder getKeyOrBuilder(); /** * .daml_lf_1.Expr complex_key = 4; * @return Whether the complexKey field is set. */ boolean hasComplexKey(); /** * .daml_lf_1.Expr complex_key = 4; * @return The complexKey. */ com.daml.daml_lf_dev.DamlLf1.Expr getComplexKey(); /** * .daml_lf_1.Expr complex_key = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getComplexKeyOrBuilder(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3; * @return Whether the maintainers field is set. */ boolean hasMaintainers(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3; * @return The maintainers. */ com.daml.daml_lf_dev.DamlLf1.Expr getMaintainers(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getMaintainersOrBuilder(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder subBuilder = null; if (keyExprCase_ == 2) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_).toBuilder(); } keyExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.KeyExpr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_); keyExpr_ = subBuilder.buildPartial(); } keyExprCase_ = 2; break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (maintainers_ != null) { subBuilder = maintainers_.toBuilder(); } maintainers_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maintainers_); maintainers_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (keyExprCase_ == 4) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_).toBuilder(); } keyExpr_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder.class); } private int keyExprCase_ = 0; private java.lang.Object keyExpr_; public enum KeyExprCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KEY(2), COMPLEX_KEY(4), KEYEXPR_NOT_SET(0); private final int value; private KeyExprCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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.daml.daml_lf_dev.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int KEY_FIELD_NUMBER = 2; /** * .daml_lf_1.KeyExpr key = 2; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return keyExprCase_ == 2; } /** * .daml_lf_1.KeyExpr key = 2; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr getKey() { if (keyExprCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } /** * .daml_lf_1.KeyExpr key = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder getKeyOrBuilder() { if (keyExprCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } public static final int COMPLEX_KEY_FIELD_NUMBER = 4; /** * .daml_lf_1.Expr complex_key = 4; * @return Whether the complexKey field is set. */ @java.lang.Override public boolean hasComplexKey() { return keyExprCase_ == 4; } /** * .daml_lf_1.Expr complex_key = 4; * @return The complexKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getComplexKey() { if (keyExprCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } /** * .daml_lf_1.Expr complex_key = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getComplexKeyOrBuilder() { if (keyExprCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } public static final int MAINTAINERS_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr maintainers_; /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3; * @return Whether the maintainers field is set. */ @java.lang.Override public boolean hasMaintainers() { return maintainers_ != null; } /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3; * @return The maintainers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getMaintainers() { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : maintainers_; } /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_1.Expr maintainers = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_); } if (maintainers_ != null) { output.writeMessage(3, getMaintainers()); } if (keyExprCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_DefKey_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey build() { com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder> keyBuilder_; /** * .daml_lf_1.KeyExpr key = 2; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return keyExprCase_ == 2; } /** * .daml_lf_1.KeyExpr key = 2; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExpr getKey() { if (keyBuilder_ == null) { if (keyExprCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } else { if (keyExprCase_ == 2) { return keyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr key = 2; */ public Builder setKey(com.daml.daml_lf_dev.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; */ public Builder setKey( com.daml.daml_lf_dev.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; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf1.KeyExpr value) { if (keyBuilder_ == null) { if (keyExprCase_ == 2 && keyExpr_ != com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance()) { keyExpr_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.KeyExpr key = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder getKeyOrBuilder() { if ((keyExprCase_ == 2) && (keyBuilder_ != null)) { return keyBuilder_.getMessageOrBuilder(); } else { if (keyExprCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } } /** * .daml_lf_1.KeyExpr key = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { if (!(keyExprCase_ == 2)) { keyExpr_ = com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance(); } keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.KeyExpr, com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder, com.daml.daml_lf_dev.DamlLf1.KeyExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_, getParentForChildren(), isClean()); keyExpr_ = null; } keyExprCase_ = 2; onChanged();; return keyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> complexKeyBuilder_; /** * .daml_lf_1.Expr complex_key = 4; * @return Whether the complexKey field is set. */ @java.lang.Override public boolean hasComplexKey() { return keyExprCase_ == 4; } /** * .daml_lf_1.Expr complex_key = 4; * @return The complexKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getComplexKey() { if (complexKeyBuilder_ == null) { if (keyExprCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } else { if (keyExprCase_ == 4) { return complexKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr complex_key = 4; */ public Builder setComplexKey(com.daml.daml_lf_dev.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; */ public Builder setComplexKey( com.daml.daml_lf_dev.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; */ public Builder mergeComplexKey(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (complexKeyBuilder_ == null) { if (keyExprCase_ == 4 && keyExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { keyExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getComplexKeyBuilder() { return getComplexKeyFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr complex_key = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getComplexKeyOrBuilder() { if ((keyExprCase_ == 4) && (complexKeyBuilder_ != null)) { return complexKeyBuilder_.getMessageOrBuilder(); } else { if (keyExprCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_; } return com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } } /** * .daml_lf_1.Expr complex_key = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getComplexKeyFieldBuilder() { if (complexKeyBuilder_ == null) { if (!(keyExprCase_ == 4)) { keyExpr_ = com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance(); } complexKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_, getParentForChildren(), isClean()); keyExpr_ = null; } keyExprCase_ = 4; onChanged();; return complexKeyBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr maintainers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> maintainersBuilder_; /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3; * @return Whether the maintainers field is set. */ public boolean hasMaintainers() { return maintainersBuilder_ != null || maintainers_ != null; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3; * @return The maintainers. */ public com.daml.daml_lf_dev.DamlLf1.Expr getMaintainers() { if (maintainersBuilder_ == null) { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : maintainers_; } else { return maintainersBuilder_.getMessage(); } } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3; */ public Builder setMaintainers(com.daml.daml_lf_dev.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; */ public Builder setMaintainers( com.daml.daml_lf_dev.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; */ public Builder mergeMaintainers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (maintainersBuilder_ == null) { if (maintainers_ != null) { maintainers_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getMaintainersBuilder() { onChanged(); return getMaintainersFieldBuilder().getBuilder(); } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getMaintainersOrBuilder() { if (maintainersBuilder_ != null) { return maintainersBuilder_.getMessageOrBuilder(); } else { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : maintainers_; } } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getMaintainersFieldBuilder() { if (maintainersBuilder_ == null) { maintainersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImplementsMethodOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefTemplate.ImplementsMethod) com.google.protobuf.MessageOrBuilder { /** * int32 method_interned_name = 1; * @return The methodInternedName. */ int getMethodInternedName(); /** * .daml_lf_1.Expr value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .daml_lf_1.Expr value = 2; * @return The value. */ com.daml.daml_lf_dev.DamlLf1.Expr getValue(); /** * .daml_lf_1.Expr value = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getValueOrBuilder(); } /** *
     * Implementation of an interface method.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.DefTemplate.ImplementsMethod} */ public static final class ImplementsMethod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefTemplate.ImplementsMethod) ImplementsMethodOrBuilder { private static final long serialVersionUID = 0L; // Use ImplementsMethod.newBuilder() to construct. private ImplementsMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImplementsMethod() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImplementsMethod(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ImplementsMethod( 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: { methodInternedName_ = input.readInt32(); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_ImplementsMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_ImplementsMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder.class); } public static final int METHOD_INTERNED_NAME_FIELD_NUMBER = 1; private int methodInternedName_; /** * int32 method_interned_name = 1; * @return The methodInternedName. */ @java.lang.Override public int getMethodInternedName() { return methodInternedName_; } public static final int VALUE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr value_; /** * .daml_lf_1.Expr value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** * .daml_lf_1.Expr value = 2; * @return The value. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getValue() { return value_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : value_; } /** * .daml_lf_1.Expr value = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getValueOrBuilder() { return getValue(); } 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 (methodInternedName_ != 0) { output.writeInt32(1, methodInternedName_); } if (value_ != null) { output.writeMessage(2, getValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (methodInternedName_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, methodInternedName_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod other = (com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod) obj; if (getMethodInternedName() != other.getMethodInternedName()) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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) + METHOD_INTERNED_NAME_FIELD_NUMBER; hash = (53 * hash) + getMethodInternedName(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod 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; } /** *
       * Implementation of an interface method.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.DefTemplate.ImplementsMethod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefTemplate.ImplementsMethod) com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_ImplementsMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_ImplementsMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.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(); methodInternedName_ = 0; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_ImplementsMethod_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod build() { com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod result = new com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod(this); result.methodInternedName_ = methodInternedName_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.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.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod other) { if (other == com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.getDefaultInstance()) return this; if (other.getMethodInternedName() != 0) { setMethodInternedName(other.getMethodInternedName()); } if (other.hasValue()) { mergeValue(other.getValue()); } 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.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int methodInternedName_ ; /** * int32 method_interned_name = 1; * @return The methodInternedName. */ @java.lang.Override public int getMethodInternedName() { return methodInternedName_; } /** * int32 method_interned_name = 1; * @param value The methodInternedName to set. * @return This builder for chaining. */ public Builder setMethodInternedName(int value) { methodInternedName_ = value; onChanged(); return this; } /** * int32 method_interned_name = 1; * @return This builder for chaining. */ public Builder clearMethodInternedName() { methodInternedName_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> valueBuilder_; /** * .daml_lf_1.Expr value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .daml_lf_1.Expr value = 2; * @return The value. */ public com.daml.daml_lf_dev.DamlLf1.Expr getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .daml_lf_1.Expr value = 2; */ public Builder setValue(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr value = 2; */ public Builder setValue( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr value = 2; */ public Builder mergeValue(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .daml_lf_1.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : value_; } } /** * .daml_lf_1.Expr value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.ImplementsMethod) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefTemplate.ImplementsMethod) private static final com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod(); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImplementsMethod parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImplementsMethod(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.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImplementsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefTemplate.Implements) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface(); /** * .daml_lf_1.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder(); /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ java.util.List getMethodsList(); /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod getMethods(int index); /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ int getMethodsCount(); /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ java.util.List getMethodsOrBuilderList(); /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder getMethodsOrBuilder( int index); /** *
       * ^ inherited fixed choice names as interned strings
       * 
* * repeated int32 inherited_choice_interned_names = 3; * @return A list containing the inheritedChoiceInternedNames. */ java.util.List getInheritedChoiceInternedNamesList(); /** *
       * ^ inherited fixed choice names as interned strings
       * 
* * repeated int32 inherited_choice_interned_names = 3; * @return The count of inheritedChoiceInternedNames. */ int getInheritedChoiceInternedNamesCount(); /** *
       * ^ inherited fixed choice names as interned strings
       * 
* * repeated int32 inherited_choice_interned_names = 3; * @param index The index of the element to return. * @return The inheritedChoiceInternedNames at the given index. */ int getInheritedChoiceInternedNames(int index); } /** *
     * Implementation of an interface.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.DefTemplate.Implements} */ public static final class Implements extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefTemplate.Implements) ImplementsOrBuilder { private static final long serialVersionUID = 0L; // Use Implements.newBuilder() to construct. private Implements(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Implements() { methods_ = java.util.Collections.emptyList(); inheritedChoiceInternedNames_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Implements(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Implements( 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.daml.daml_lf_dev.DamlLf1.TypeConName.Builder subBuilder = null; if (interface_ != null) { subBuilder = interface_.toBuilder(); } interface_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interface_); interface_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { methods_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } methods_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.parser(), extensionRegistry)); break; } case 24: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { inheritedChoiceInternedNames_ = newIntList(); mutable_bitField0_ |= 0x00000002; } inheritedChoiceInternedNames_.addInt(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { inheritedChoiceInternedNames_ = newIntList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { inheritedChoiceInternedNames_.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)) { methods_ = java.util.Collections.unmodifiableList(methods_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { inheritedChoiceInternedNames_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_Implements_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_Implements_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder.class); } public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; /** * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return interface_ != null; } /** * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } /** * .daml_lf_1.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { return getInterface(); } public static final int METHODS_FIELD_NUMBER = 2; private java.util.List methods_; /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ @java.lang.Override public java.util.List getMethodsOrBuilderList() { return methods_; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod getMethods(int index) { return methods_.get(index); } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder getMethodsOrBuilder( int index) { return methods_.get(index); } public static final int INHERITED_CHOICE_INTERNED_NAMES_FIELD_NUMBER = 3; private com.google.protobuf.Internal.IntList inheritedChoiceInternedNames_; /** *
       * ^ inherited fixed choice names as interned strings
       * 
* * repeated int32 inherited_choice_interned_names = 3; * @return A list containing the inheritedChoiceInternedNames. */ @java.lang.Override public java.util.List getInheritedChoiceInternedNamesList() { return inheritedChoiceInternedNames_; } /** *
       * ^ inherited fixed choice names as interned strings
       * 
* * repeated int32 inherited_choice_interned_names = 3; * @return The count of inheritedChoiceInternedNames. */ public int getInheritedChoiceInternedNamesCount() { return inheritedChoiceInternedNames_.size(); } /** *
       * ^ inherited fixed choice names as interned strings
       * 
* * repeated int32 inherited_choice_interned_names = 3; * @param index The index of the element to return. * @return The inheritedChoiceInternedNames at the given index. */ public int getInheritedChoiceInternedNames(int index) { return inheritedChoiceInternedNames_.getInt(index); } private int inheritedChoiceInternedNamesMemoizedSerializedSize = -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 (interface_ != null) { output.writeMessage(1, getInterface()); } for (int i = 0; i < methods_.size(); i++) { output.writeMessage(2, methods_.get(i)); } if (getInheritedChoiceInternedNamesList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(inheritedChoiceInternedNamesMemoizedSerializedSize); } for (int i = 0; i < inheritedChoiceInternedNames_.size(); i++) { output.writeInt32NoTag(inheritedChoiceInternedNames_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interface_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } for (int i = 0; i < methods_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, methods_.get(i)); } { int dataSize = 0; for (int i = 0; i < inheritedChoiceInternedNames_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(inheritedChoiceInternedNames_.getInt(i)); } size += dataSize; if (!getInheritedChoiceInternedNamesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } inheritedChoiceInternedNamesMemoizedSerializedSize = 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.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements other = (com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements) obj; if (hasInterface() != other.hasInterface()) return false; if (hasInterface()) { if (!getInterface() .equals(other.getInterface())) return false; } if (!getMethodsList() .equals(other.getMethodsList())) return false; if (!getInheritedChoiceInternedNamesList() .equals(other.getInheritedChoiceInternedNamesList())) 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 (hasInterface()) { hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().hashCode(); } if (getMethodsCount() > 0) { hash = (37 * hash) + METHODS_FIELD_NUMBER; hash = (53 * hash) + getMethodsList().hashCode(); } if (getInheritedChoiceInternedNamesCount() > 0) { hash = (37 * hash) + INHERITED_CHOICE_INTERNED_NAMES_FIELD_NUMBER; hash = (53 * hash) + getInheritedChoiceInternedNamesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements 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; } /** *
       * Implementation of an interface.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.DefTemplate.Implements} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefTemplate.Implements) com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_Implements_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_Implements_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMethodsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (interfaceBuilder_ == null) { interface_ = null; } else { interface_ = null; interfaceBuilder_ = null; } if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { methodsBuilder_.clear(); } inheritedChoiceInternedNames_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_Implements_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements build() { com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements result = new com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements(this); int from_bitField0_ = bitField0_; if (interfaceBuilder_ == null) { result.interface_ = interface_; } else { result.interface_ = interfaceBuilder_.build(); } if (methodsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000001); } result.methods_ = methods_; } else { result.methods_ = methodsBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { inheritedChoiceInternedNames_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.inheritedChoiceInternedNames_ = inheritedChoiceInternedNames_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements other) { if (other == com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } if (methodsBuilder_ == null) { if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } } else { if (!other.methods_.isEmpty()) { if (methodsBuilder_.isEmpty()) { methodsBuilder_.dispose(); methodsBuilder_ = null; methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000001); methodsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMethodsFieldBuilder() : null; } else { methodsBuilder_.addAllMessages(other.methods_); } } } if (!other.inheritedChoiceInternedNames_.isEmpty()) { if (inheritedChoiceInternedNames_.isEmpty()) { inheritedChoiceInternedNames_ = other.inheritedChoiceInternedNames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInheritedChoiceInternedNamesIsMutable(); inheritedChoiceInternedNames_.addAll(other.inheritedChoiceInternedNames_); } 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.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> interfaceBuilder_; /** * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return interfaceBuilder_ != null || interface_ != null; } /** * .daml_lf_1.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (interface_ != null) { interface_ = com.daml.daml_lf_dev.DamlLf1.TypeConName.newBuilder(interface_).mergeFrom(value).buildPartial(); } else { interface_ = value; } onChanged(); } else { interfaceBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { interface_ = null; onChanged(); } else { interface_ = null; interfaceBuilder_ = null; } return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } } /** * .daml_lf_1.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private java.util.List methods_ = java.util.Collections.emptyList(); private void ensureMethodsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { methods_ = new java.util.ArrayList(methods_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder> methodsBuilder_; /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public java.util.List getMethodsList() { if (methodsBuilder_ == null) { return java.util.Collections.unmodifiableList(methods_); } else { return methodsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public int getMethodsCount() { if (methodsBuilder_ == null) { return methods_.size(); } else { return methodsBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod getMethods(int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod value) { if (methodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.set(index, value); onChanged(); } else { methodsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.set(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder addMethods(com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod value) { if (methodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.add(value); onChanged(); } else { methodsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod value) { if (methodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.add(index, value); onChanged(); } else { methodsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder addMethods( com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder addAllMethods( java.lang.Iterable values) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, methods_); onChanged(); } else { methodsBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder clearMethods() { if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { methodsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public Builder removeMethods(int index) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.remove(index); onChanged(); } else { methodsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder getMethodsBuilder( int index) { return getMethodsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder getMethodsOrBuilder( int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public java.util.List getMethodsOrBuilderList() { if (methodsBuilder_ != null) { return methodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(methods_); } } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder addMethodsBuilder() { return getMethodsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.getDefaultInstance()); } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder addMethodsBuilder( int index) { return getMethodsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.getDefaultInstance()); } /** * repeated .daml_lf_1.DefTemplate.ImplementsMethod methods = 2; */ public java.util.List getMethodsBuilderList() { return getMethodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder> getMethodsFieldBuilder() { if (methodsBuilder_ == null) { methodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethod.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsMethodOrBuilder>( methods_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); methods_ = null; } return methodsBuilder_; } private com.google.protobuf.Internal.IntList inheritedChoiceInternedNames_ = emptyIntList(); private void ensureInheritedChoiceInternedNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { inheritedChoiceInternedNames_ = mutableCopy(inheritedChoiceInternedNames_); bitField0_ |= 0x00000002; } } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @return A list containing the inheritedChoiceInternedNames. */ public java.util.List getInheritedChoiceInternedNamesList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(inheritedChoiceInternedNames_) : inheritedChoiceInternedNames_; } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @return The count of inheritedChoiceInternedNames. */ public int getInheritedChoiceInternedNamesCount() { return inheritedChoiceInternedNames_.size(); } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @param index The index of the element to return. * @return The inheritedChoiceInternedNames at the given index. */ public int getInheritedChoiceInternedNames(int index) { return inheritedChoiceInternedNames_.getInt(index); } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @param index The index to set the value at. * @param value The inheritedChoiceInternedNames to set. * @return This builder for chaining. */ public Builder setInheritedChoiceInternedNames( int index, int value) { ensureInheritedChoiceInternedNamesIsMutable(); inheritedChoiceInternedNames_.setInt(index, value); onChanged(); return this; } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @param value The inheritedChoiceInternedNames to add. * @return This builder for chaining. */ public Builder addInheritedChoiceInternedNames(int value) { ensureInheritedChoiceInternedNamesIsMutable(); inheritedChoiceInternedNames_.addInt(value); onChanged(); return this; } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @param values The inheritedChoiceInternedNames to add. * @return This builder for chaining. */ public Builder addAllInheritedChoiceInternedNames( java.lang.Iterable values) { ensureInheritedChoiceInternedNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inheritedChoiceInternedNames_); onChanged(); return this; } /** *
         * ^ inherited fixed choice names as interned strings
         * 
* * repeated int32 inherited_choice_interned_names = 3; * @return This builder for chaining. */ public Builder clearInheritedChoiceInternedNames() { inheritedChoiceInternedNames_ = 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.DefTemplate.Implements) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefTemplate.Implements) private static final com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements(); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Implements parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Implements(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.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int tyconCase_ = 0; private java.lang.Object tycon_; public enum TyconCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TYCON_DNAME(1), TYCON_INTERNED_DNAME(12), TYCON_NOT_SET(0); private final int value; private TyconCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PARAM_STR(2), PARAM_INTERNED_STR(11), PARAM_NOT_SET(0); private final int value; private ParamCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the tyconDname field is set. */ @java.lang.Override public boolean hasTyconDname() { return tyconCase_ == 1; } /** * .daml_lf_1.DottedName tycon_dname = 1; * @return The tyconDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getTyconDname() { if (tyconCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) tycon_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName tycon_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getTyconDnameOrBuilder() { if (tyconCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) tycon_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } public static final int TYCON_INTERNED_DNAME_FIELD_NUMBER = 12; /** *
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 12; * @return Whether the tyconInternedDname field is set. */ @java.lang.Override public boolean hasTyconInternedDname() { return tyconCase_ == 12; } /** *
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 12; * @return The tyconInternedDname. */ @java.lang.Override 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; * @return Whether the paramStr field is set. */ public boolean hasParamStr() { return paramCase_ == 2; } /** *
     * *Must be a valid identifier*
     * 
* * string param_str = 2; * @return The 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; * @return The bytes for 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; * @return Whether the paramInternedStr field is set. */ @java.lang.Override public boolean hasParamInternedStr() { return paramCase_ == 11; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 11; * @return The paramInternedStr. */ @java.lang.Override public int getParamInternedStr() { if (paramCase_ == 11) { return (java.lang.Integer) param_; } return 0; } public static final int PRECOND_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.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; * @return Whether the precond field is set. */ @java.lang.Override 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; * @return The precond. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getPrecond() { return precond_ == null ? com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPrecondOrBuilder() { return getPrecond(); } public static final int SIGNATORIES_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.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; * @return Whether the signatories field is set. */ @java.lang.Override 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; * @return The signatories. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getSignatories() { return signatories_ == null ? com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getSignatoriesOrBuilder() { return getSignatories(); } public static final int AGREEMENT_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.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; * @return Whether the agreement field is set. */ @java.lang.Override 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; * @return The agreement. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getAgreement() { return agreement_ == null ? com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getChoicesList() { return choices_; } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ @java.lang.Override public java.util.List getChoicesOrBuilderList() { return choices_; } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ @java.lang.Override public int getChoicesCount() { return choices_.size(); } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoice getChoices(int index) { return choices_.get(index); } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { return choices_.get(index); } public static final int OBSERVERS_FIELD_NUMBER = 8; private com.daml.daml_lf_dev.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; * @return Whether the observers field is set. */ @java.lang.Override 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; * @return The observers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getObservers() { return observers_ == null ? com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getObserversOrBuilder() { return getObservers(); } public static final int LOCATION_FIELD_NUMBER = 9; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 9; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 9; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int KEY_FIELD_NUMBER = 10; private com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey key_; /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey getKey() { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder getKeyOrBuilder() { return getKey(); } public static final int IMPLEMENTS_FIELD_NUMBER = 13; private java.util.List implements_; /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public java.util.List getImplementsList() { return implements_; } /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public java.util.List getImplementsOrBuilderList() { return implements_; } /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public int getImplementsCount() { return implements_.size(); } /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getImplements(int index) { return implements_.get(index); } /** *
     * Interfaces that this template implements.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder getImplementsOrBuilder( int index) { return implements_.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 (tyconCase_ == 1) { output.writeMessage(1, (com.daml.daml_lf_dev.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_)); } for (int i = 0; i < implements_.size(); i++) { output.writeMessage(13, implements_.get(i)); } 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.daml.daml_lf_dev.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_)); } for (int i = 0; i < implements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, implements_.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.daml.daml_lf_dev.DamlLf1.DefTemplate)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefTemplate other = (com.daml.daml_lf_dev.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 (!getImplementsList() .equals(other.getImplementsList())) 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(); } if (getImplementsCount() > 0) { hash = (37 * hash) + IMPLEMENTS_FIELD_NUMBER; hash = (53 * hash) + getImplementsList().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.daml.daml_lf_dev.DamlLf1.DefTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTemplate.class, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder.class); } // Construct using com.daml.daml_lf_dev.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(); getImplementsFieldBuilder(); } } @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; } if (implementsBuilder_ == null) { implements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { implementsBuilder_.clear(); } tyconCase_ = 0; tycon_ = null; paramCase_ = 0; param_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTemplate_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefTemplate.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate build() { com.daml.daml_lf_dev.DamlLf1.DefTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefTemplate result = new com.daml.daml_lf_dev.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(); } if (implementsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { implements_ = java.util.Collections.unmodifiableList(implements_); bitField0_ = (bitField0_ & ~0x00000002); } result.implements_ = implements_; } else { result.implements_ = implementsBuilder_.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.daml.daml_lf_dev.DamlLf1.DefTemplate) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefTemplate other) { if (other == com.daml.daml_lf_dev.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()); } if (implementsBuilder_ == null) { if (!other.implements_.isEmpty()) { if (implements_.isEmpty()) { implements_ = other.implements_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureImplementsIsMutable(); implements_.addAll(other.implements_); } onChanged(); } } else { if (!other.implements_.isEmpty()) { if (implementsBuilder_.isEmpty()) { implementsBuilder_.dispose(); implementsBuilder_ = null; implements_ = other.implements_; bitField0_ = (bitField0_ & ~0x00000002); implementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImplementsFieldBuilder() : null; } else { implementsBuilder_.addAllMessages(other.implements_); } } } 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.daml.daml_lf_dev.DamlLf1.DefTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> tyconDnameBuilder_; /** * .daml_lf_1.DottedName tycon_dname = 1; * @return Whether the tyconDname field is set. */ @java.lang.Override public boolean hasTyconDname() { return tyconCase_ == 1; } /** * .daml_lf_1.DottedName tycon_dname = 1; * @return The tyconDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getTyconDname() { if (tyconDnameBuilder_ == null) { if (tyconCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) tycon_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (tyconCase_ == 1) { return tyconDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName tycon_dname = 1; */ public Builder setTyconDname(com.daml.daml_lf_dev.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; */ public Builder setTyconDname( com.daml.daml_lf_dev.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; */ public Builder mergeTyconDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (tyconDnameBuilder_ == null) { if (tyconCase_ == 1 && tycon_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { tycon_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getTyconDnameBuilder() { return getTyconDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName tycon_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getTyconDnameOrBuilder() { if ((tyconCase_ == 1) && (tyconDnameBuilder_ != null)) { return tyconDnameBuilder_.getMessageOrBuilder(); } else { if (tyconCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) tycon_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName tycon_dname = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getTyconDnameFieldBuilder() { if (tyconDnameBuilder_ == null) { if (!(tyconCase_ == 1)) { tycon_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } tyconDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) tycon_, getParentForChildren(), isClean()); tycon_ = null; } tyconCase_ = 1; onChanged();; return tyconDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 12; * @return Whether the tyconInternedDname field is set. */ public boolean hasTyconInternedDname() { return tyconCase_ == 12; } /** *
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 12; * @return The 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; * @param value The tyconInternedDname to set. * @return This builder for chaining. */ public Builder setTyconInternedDname(int value) { tyconCase_ = 12; tycon_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 12; * @return This builder for chaining. */ public Builder clearTyconInternedDname() { if (tyconCase_ == 12) { tyconCase_ = 0; tycon_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2; * @return Whether the paramStr field is set. */ @java.lang.Override public boolean hasParamStr() { return paramCase_ == 2; } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2; * @return The paramStr. */ @java.lang.Override 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; * @return The bytes for paramStr. */ @java.lang.Override 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; * @param value The paramStr to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearParamStr() { if (paramCase_ == 2) { paramCase_ = 0; param_ = null; onChanged(); } return this; } /** *
       * *Must be a valid identifier*
       * 
* * string param_str = 2; * @param value The bytes for paramStr to set. * @return This builder for chaining. */ 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; * @return Whether the paramInternedStr field is set. */ public boolean hasParamInternedStr() { return paramCase_ == 11; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 11; * @return The 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; * @param value The paramInternedStr to set. * @return This builder for chaining. */ public Builder setParamInternedStr(int value) { paramCase_ = 11; param_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 11; * @return This builder for chaining. */ public Builder clearParamInternedStr() { if (paramCase_ == 11) { paramCase_ = 0; param_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.Expr precond_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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; * @return Whether the precond field is set. */ 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; * @return The precond. */ public com.daml.daml_lf_dev.DamlLf1.Expr getPrecond() { if (precondBuilder_ == null) { return precond_ == null ? com.daml.daml_lf_dev.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; */ public Builder setPrecond(com.daml.daml_lf_dev.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; */ public Builder setPrecond( com.daml.daml_lf_dev.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; */ public Builder mergePrecond(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (precondBuilder_ == null) { if (precond_ != null) { precond_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPrecondOrBuilder() { if (precondBuilder_ != null) { return precondBuilder_.getMessageOrBuilder(); } else { return precond_ == null ? com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getPrecondFieldBuilder() { if (precondBuilder_ == null) { precondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getPrecond(), getParentForChildren(), isClean()); precond_ = null; } return precondBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr signatories_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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; * @return Whether the signatories field is set. */ 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; * @return The signatories. */ public com.daml.daml_lf_dev.DamlLf1.Expr getSignatories() { if (signatoriesBuilder_ == null) { return signatories_ == null ? com.daml.daml_lf_dev.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; */ public Builder setSignatories(com.daml.daml_lf_dev.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; */ public Builder setSignatories( com.daml.daml_lf_dev.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; */ public Builder mergeSignatories(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (signatoriesBuilder_ == null) { if (signatories_ != null) { signatories_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getSignatoriesOrBuilder() { if (signatoriesBuilder_ != null) { return signatoriesBuilder_.getMessageOrBuilder(); } else { return signatories_ == null ? com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getSignatoriesFieldBuilder() { if (signatoriesBuilder_ == null) { signatoriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getSignatories(), getParentForChildren(), isClean()); signatories_ = null; } return signatoriesBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr agreement_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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; * @return Whether the agreement field is set. */ 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; * @return The agreement. */ public com.daml.daml_lf_dev.DamlLf1.Expr getAgreement() { if (agreementBuilder_ == null) { return agreement_ == null ? com.daml.daml_lf_dev.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; */ public Builder setAgreement(com.daml.daml_lf_dev.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; */ public Builder setAgreement( com.daml.daml_lf_dev.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; */ public Builder mergeAgreement(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (agreementBuilder_ == null) { if (agreement_ != null) { agreement_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getAgreementOrBuilder() { if (agreementBuilder_ != null) { return agreementBuilder_.getMessageOrBuilder(); } else { return agreement_ == null ? com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getAgreementFieldBuilder() { if (agreementBuilder_ == null) { agreementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TemplateChoice, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder> choicesBuilder_; /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setChoices( int index, com.daml.daml_lf_dev.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; */ public Builder setChoices( int index, com.daml.daml_lf_dev.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; */ public Builder addChoices(com.daml.daml_lf_dev.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; */ public Builder addChoices( int index, com.daml.daml_lf_dev.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; */ public Builder addChoices( com.daml.daml_lf_dev.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; */ public Builder addChoices( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder getChoicesBuilder( int index) { return getChoicesFieldBuilder().getBuilder(index); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder addChoicesBuilder() { return getChoicesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder addChoicesBuilder( int index) { return getChoicesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_1.TemplateChoice choices = 7; */ public java.util.List getChoicesBuilderList() { return getChoicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TemplateChoice, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder> getChoicesFieldBuilder() { if (choicesBuilder_ == null) { choicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TemplateChoice, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder>( choices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); choices_ = null; } return choicesBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr observers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.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; * @return Whether the observers field is set. */ 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; * @return The observers. */ public com.daml.daml_lf_dev.DamlLf1.Expr getObservers() { if (observersBuilder_ == null) { return observers_ == null ? com.daml.daml_lf_dev.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; */ public Builder setObservers(com.daml.daml_lf_dev.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; */ public Builder setObservers( com.daml.daml_lf_dev.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; */ public Builder mergeObservers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (observersBuilder_ == null) { if (observers_ != null) { observers_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getObserversOrBuilder() { if (observersBuilder_ != null) { return observersBuilder_.getMessageOrBuilder(); } else { return observers_ == null ? com.daml.daml_lf_dev.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; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getObserversFieldBuilder() { if (observersBuilder_ == null) { observersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getObservers(), getParentForChildren(), isClean()); observers_ = null; } return observersBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 9; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 9; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 9; */ public Builder setLocation(com.daml.daml_lf_dev.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; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 9; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 9; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 9; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 9; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder> keyBuilder_; /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; * @return The key. */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public Builder setKey(com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public Builder setKey( com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private java.util.List implements_ = java.util.Collections.emptyList(); private void ensureImplementsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { implements_ = new java.util.ArrayList(implements_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder> implementsBuilder_; /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public java.util.List getImplementsList() { if (implementsBuilder_ == null) { return java.util.Collections.unmodifiableList(implements_); } else { return implementsBuilder_.getMessageList(); } } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public int getImplementsCount() { if (implementsBuilder_ == null) { return implements_.size(); } else { return implementsBuilder_.getCount(); } } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getImplements(int index) { if (implementsBuilder_ == null) { return implements_.get(index); } else { return implementsBuilder_.getMessage(index); } } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder setImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements value) { if (implementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImplementsIsMutable(); implements_.set(index, value); onChanged(); } else { implementsBuilder_.setMessage(index, value); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder setImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder builderForValue) { if (implementsBuilder_ == null) { ensureImplementsIsMutable(); implements_.set(index, builderForValue.build()); onChanged(); } else { implementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder addImplements(com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements value) { if (implementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImplementsIsMutable(); implements_.add(value); onChanged(); } else { implementsBuilder_.addMessage(value); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder addImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements value) { if (implementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImplementsIsMutable(); implements_.add(index, value); onChanged(); } else { implementsBuilder_.addMessage(index, value); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder addImplements( com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder builderForValue) { if (implementsBuilder_ == null) { ensureImplementsIsMutable(); implements_.add(builderForValue.build()); onChanged(); } else { implementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder addImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder builderForValue) { if (implementsBuilder_ == null) { ensureImplementsIsMutable(); implements_.add(index, builderForValue.build()); onChanged(); } else { implementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder addAllImplements( java.lang.Iterable values) { if (implementsBuilder_ == null) { ensureImplementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, implements_); onChanged(); } else { implementsBuilder_.addAllMessages(values); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder clearImplements() { if (implementsBuilder_ == null) { implements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { implementsBuilder_.clear(); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder removeImplements(int index) { if (implementsBuilder_ == null) { ensureImplementsIsMutable(); implements_.remove(index); onChanged(); } else { implementsBuilder_.remove(index); } return this; } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder getImplementsBuilder( int index) { return getImplementsFieldBuilder().getBuilder(index); } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder getImplementsOrBuilder( int index) { if (implementsBuilder_ == null) { return implements_.get(index); } else { return implementsBuilder_.getMessageOrBuilder(index); } } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public java.util.List getImplementsOrBuilderList() { if (implementsBuilder_ != null) { return implementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(implements_); } } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder addImplementsBuilder() { return getImplementsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.getDefaultInstance()); } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder addImplementsBuilder( int index) { return getImplementsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.getDefaultInstance()); } /** *
       * Interfaces that this template implements.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public java.util.List getImplementsBuilderList() { return getImplementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder> getImplementsFieldBuilder() { if (implementsBuilder_ == null) { implementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder>( implements_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); implements_ = null; } return implementsBuilder_; } @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.daml.daml_lf_dev.DamlLf1.DefTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefTemplate(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceMethodOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.InterfaceMethod) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 1; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** * int32 method_interned_name = 2; * @return The methodInternedName. */ int getMethodInternedName(); /** * .daml_lf_1.Type type = 3; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_1.Type type = 3; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 3; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); } /** *
   * Interface method definition.
   * *Available in versions >= 1.dev*
   * 
* * Protobuf type {@code daml_lf_1.InterfaceMethod} */ public static final class InterfaceMethod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.InterfaceMethod) InterfaceMethodOrBuilder { private static final long serialVersionUID = 0L; // Use InterfaceMethod.newBuilder() to construct. private InterfaceMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterfaceMethod() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterfaceMethod(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InterfaceMethod( 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.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 16: { methodInternedName_ = input.readInt32(); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.class, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int METHOD_INTERNED_NAME_FIELD_NUMBER = 2; private int methodInternedName_; /** * int32 method_interned_name = 2; * @return The methodInternedName. */ @java.lang.Override public int getMethodInternedName() { return methodInternedName_; } public static final int TYPE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 3; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 3; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 3; */ @java.lang.Override public com.daml.daml_lf_dev.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 (location_ != null) { output.writeMessage(1, getLocation()); } if (methodInternedName_ != 0) { output.writeInt32(2, methodInternedName_); } if (type_ != null) { output.writeMessage(3, getType()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } if (methodInternedName_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, methodInternedName_); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, 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.daml.daml_lf_dev.DamlLf1.InterfaceMethod)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.InterfaceMethod other = (com.daml.daml_lf_dev.DamlLf1.InterfaceMethod) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (getMethodInternedName() != other.getMethodInternedName()) 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 (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + METHOD_INTERNED_NAME_FIELD_NUMBER; hash = (53 * hash) + getMethodInternedName(); 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.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.InterfaceMethod 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; } /** *
     * Interface method definition.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.InterfaceMethod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.InterfaceMethod) com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.class, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.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; } methodInternedName_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceMethod_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod build() { com.daml.daml_lf_dev.DamlLf1.InterfaceMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod buildPartial() { com.daml.daml_lf_dev.DamlLf1.InterfaceMethod result = new com.daml.daml_lf_dev.DamlLf1.InterfaceMethod(this); if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.methodInternedName_ = methodInternedName_; 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.daml.daml_lf_dev.DamlLf1.InterfaceMethod) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.InterfaceMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.InterfaceMethod other) { if (other == com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.getMethodInternedName() != 0) { setMethodInternedName(other.getMethodInternedName()); } 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.daml.daml_lf_dev.DamlLf1.InterfaceMethod parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.InterfaceMethod) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.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 = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 1; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private int methodInternedName_ ; /** * int32 method_interned_name = 2; * @return The methodInternedName. */ @java.lang.Override public int getMethodInternedName() { return methodInternedName_; } /** * int32 method_interned_name = 2; * @param value The methodInternedName to set. * @return This builder for chaining. */ public Builder setMethodInternedName(int value) { methodInternedName_ = value; onChanged(); return this; } /** * int32 method_interned_name = 2; * @return This builder for chaining. */ public Builder clearMethodInternedName() { methodInternedName_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 3; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 3; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 3; */ public Builder setType(com.daml.daml_lf_dev.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 = 3; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 3; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 3; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.InterfaceMethod) } // @@protoc_insertion_point(class_scope:daml_lf_1.InterfaceMethod) private static final com.daml.daml_lf_dev.DamlLf1.InterfaceMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.InterfaceMethod(); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterfaceMethod parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InterfaceMethod(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.daml.daml_lf_dev.DamlLf1.InterfaceMethod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 1; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** * int32 tycon_interned_dname = 2; * @return The tyconInternedDname. */ int getTyconInternedDname(); /** * repeated .daml_lf_1.TypeConName requires = 3; */ java.util.List getRequiresList(); /** * repeated .daml_lf_1.TypeConName requires = 3; */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequires(int index); /** * repeated .daml_lf_1.TypeConName requires = 3; */ int getRequiresCount(); /** * repeated .daml_lf_1.TypeConName requires = 3; */ java.util.List getRequiresOrBuilderList(); /** * repeated .daml_lf_1.TypeConName requires = 3; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiresOrBuilder( int index); /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ java.util.List getMethodsList(); /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getMethods(int index); /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ int getMethodsCount(); /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ java.util.List getMethodsOrBuilderList(); /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder getMethodsOrBuilder( int index); /** *
     * Binder for interface value ("this") in precond and fixed choices.
     * 
* * int32 param_interned_str = 5; * @return The paramInternedStr. */ int getParamInternedStr(); /** * .daml_lf_1.Expr precond = 6; * @return Whether the precond field is set. */ boolean hasPrecond(); /** * .daml_lf_1.Expr precond = 6; * @return The precond. */ com.daml.daml_lf_dev.DamlLf1.Expr getPrecond(); /** * .daml_lf_1.Expr precond = 6; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPrecondOrBuilder(); /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ java.util.List getFixedChoicesList(); /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ com.daml.daml_lf_dev.DamlLf1.TemplateChoice getFixedChoices(int index); /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ int getFixedChoicesCount(); /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ java.util.List getFixedChoicesOrBuilderList(); /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getFixedChoicesOrBuilder( int index); } /** *
   * Interface definition.
   * *Available in versions >= 1.dev*
   * 
* * Protobuf type {@code daml_lf_1.DefInterface} */ public static final class DefInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefInterface) DefInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use DefInterface.newBuilder() to construct. private DefInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefInterface() { requires_ = java.util.Collections.emptyList(); methods_ = java.util.Collections.emptyList(); fixedChoices_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefInterface( 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.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 16: { tyconInternedDname_ = input.readInt32(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { requires_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } requires_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { methods_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } methods_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.parser(), extensionRegistry)); break; } case 40: { paramInternedStr_ = input.readInt32(); break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (precond_ != null) { subBuilder = precond_.toBuilder(); } precond_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(precond_); precond_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { fixedChoices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } fixedChoices_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.TemplateChoice.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)) { requires_ = java.util.Collections.unmodifiableList(requires_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { methods_ = java.util.Collections.unmodifiableList(methods_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { fixedChoices_ = java.util.Collections.unmodifiableList(fixedChoices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefInterface.class, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int TYCON_INTERNED_DNAME_FIELD_NUMBER = 2; private int tyconInternedDname_; /** * int32 tycon_interned_dname = 2; * @return The tyconInternedDname. */ @java.lang.Override public int getTyconInternedDname() { return tyconInternedDname_; } public static final int REQUIRES_FIELD_NUMBER = 3; private java.util.List requires_; /** * repeated .daml_lf_1.TypeConName requires = 3; */ @java.lang.Override public java.util.List getRequiresList() { return requires_; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ @java.lang.Override public java.util.List getRequiresOrBuilderList() { return requires_; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ @java.lang.Override public int getRequiresCount() { return requires_.size(); } /** * repeated .daml_lf_1.TypeConName requires = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequires(int index) { return requires_.get(index); } /** * repeated .daml_lf_1.TypeConName requires = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiresOrBuilder( int index) { return requires_.get(index); } public static final int METHODS_FIELD_NUMBER = 4; private java.util.List methods_; /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ @java.lang.Override public java.util.List getMethodsOrBuilderList() { return methods_; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getMethods(int index) { return methods_.get(index); } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder getMethodsOrBuilder( int index) { return methods_.get(index); } public static final int PARAM_INTERNED_STR_FIELD_NUMBER = 5; private int paramInternedStr_; /** *
     * Binder for interface value ("this") in precond and fixed choices.
     * 
* * int32 param_interned_str = 5; * @return The paramInternedStr. */ @java.lang.Override public int getParamInternedStr() { return paramInternedStr_; } public static final int PRECOND_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.DamlLf1.Expr precond_; /** * .daml_lf_1.Expr precond = 6; * @return Whether the precond field is set. */ @java.lang.Override public boolean hasPrecond() { return precond_ != null; } /** * .daml_lf_1.Expr precond = 6; * @return The precond. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getPrecond() { return precond_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : precond_; } /** * .daml_lf_1.Expr precond = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPrecondOrBuilder() { return getPrecond(); } public static final int FIXED_CHOICES_FIELD_NUMBER = 7; private java.util.List fixedChoices_; /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ @java.lang.Override public java.util.List getFixedChoicesList() { return fixedChoices_; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ @java.lang.Override public java.util.List getFixedChoicesOrBuilderList() { return fixedChoices_; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ @java.lang.Override public int getFixedChoicesCount() { return fixedChoices_.size(); } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoice getFixedChoices(int index) { return fixedChoices_.get(index); } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getFixedChoicesOrBuilder( int index) { return fixedChoices_.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 (location_ != null) { output.writeMessage(1, getLocation()); } if (tyconInternedDname_ != 0) { output.writeInt32(2, tyconInternedDname_); } for (int i = 0; i < requires_.size(); i++) { output.writeMessage(3, requires_.get(i)); } for (int i = 0; i < methods_.size(); i++) { output.writeMessage(4, methods_.get(i)); } if (paramInternedStr_ != 0) { output.writeInt32(5, paramInternedStr_); } if (precond_ != null) { output.writeMessage(6, getPrecond()); } for (int i = 0; i < fixedChoices_.size(); i++) { output.writeMessage(7, fixedChoices_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } if (tyconInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, tyconInternedDname_); } for (int i = 0; i < requires_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, requires_.get(i)); } for (int i = 0; i < methods_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, methods_.get(i)); } if (paramInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, paramInternedStr_); } if (precond_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPrecond()); } for (int i = 0; i < fixedChoices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, fixedChoices_.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.daml.daml_lf_dev.DamlLf1.DefInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefInterface other = (com.daml.daml_lf_dev.DamlLf1.DefInterface) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (getTyconInternedDname() != other.getTyconInternedDname()) return false; if (!getRequiresList() .equals(other.getRequiresList())) return false; if (!getMethodsList() .equals(other.getMethodsList())) return false; if (getParamInternedStr() != other.getParamInternedStr()) return false; if (hasPrecond() != other.hasPrecond()) return false; if (hasPrecond()) { if (!getPrecond() .equals(other.getPrecond())) return false; } if (!getFixedChoicesList() .equals(other.getFixedChoicesList())) 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 (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + TYCON_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getTyconInternedDname(); if (getRequiresCount() > 0) { hash = (37 * hash) + REQUIRES_FIELD_NUMBER; hash = (53 * hash) + getRequiresList().hashCode(); } if (getMethodsCount() > 0) { hash = (37 * hash) + METHODS_FIELD_NUMBER; hash = (53 * hash) + getMethodsList().hashCode(); } hash = (37 * hash) + PARAM_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getParamInternedStr(); if (hasPrecond()) { hash = (37 * hash) + PRECOND_FIELD_NUMBER; hash = (53 * hash) + getPrecond().hashCode(); } if (getFixedChoicesCount() > 0) { hash = (37 * hash) + FIXED_CHOICES_FIELD_NUMBER; hash = (53 * hash) + getFixedChoicesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.DefInterface 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; } /** *
     * Interface definition.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.DefInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefInterface) com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefInterface.class, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.DefInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequiresFieldBuilder(); getMethodsFieldBuilder(); getFixedChoicesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } tyconInternedDname_ = 0; if (requiresBuilder_ == null) { requires_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requiresBuilder_.clear(); } if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { methodsBuilder_.clear(); } paramInternedStr_ = 0; if (precondBuilder_ == null) { precond_ = null; } else { precond_ = null; precondBuilder_ = null; } if (fixedChoicesBuilder_ == null) { fixedChoices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { fixedChoicesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface build() { com.daml.daml_lf_dev.DamlLf1.DefInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefInterface result = new com.daml.daml_lf_dev.DamlLf1.DefInterface(this); int from_bitField0_ = bitField0_; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.tyconInternedDname_ = tyconInternedDname_; if (requiresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { requires_ = java.util.Collections.unmodifiableList(requires_); bitField0_ = (bitField0_ & ~0x00000001); } result.requires_ = requires_; } else { result.requires_ = requiresBuilder_.build(); } if (methodsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000002); } result.methods_ = methods_; } else { result.methods_ = methodsBuilder_.build(); } result.paramInternedStr_ = paramInternedStr_; if (precondBuilder_ == null) { result.precond_ = precond_; } else { result.precond_ = precondBuilder_.build(); } if (fixedChoicesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { fixedChoices_ = java.util.Collections.unmodifiableList(fixedChoices_); bitField0_ = (bitField0_ & ~0x00000004); } result.fixedChoices_ = fixedChoices_; } else { result.fixedChoices_ = fixedChoicesBuilder_.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.daml.daml_lf_dev.DamlLf1.DefInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.DefInterface.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.getTyconInternedDname() != 0) { setTyconInternedDname(other.getTyconInternedDname()); } if (requiresBuilder_ == null) { if (!other.requires_.isEmpty()) { if (requires_.isEmpty()) { requires_ = other.requires_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequiresIsMutable(); requires_.addAll(other.requires_); } onChanged(); } } else { if (!other.requires_.isEmpty()) { if (requiresBuilder_.isEmpty()) { requiresBuilder_.dispose(); requiresBuilder_ = null; requires_ = other.requires_; bitField0_ = (bitField0_ & ~0x00000001); requiresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequiresFieldBuilder() : null; } else { requiresBuilder_.addAllMessages(other.requires_); } } } if (methodsBuilder_ == null) { if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } } else { if (!other.methods_.isEmpty()) { if (methodsBuilder_.isEmpty()) { methodsBuilder_.dispose(); methodsBuilder_ = null; methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000002); methodsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMethodsFieldBuilder() : null; } else { methodsBuilder_.addAllMessages(other.methods_); } } } if (other.getParamInternedStr() != 0) { setParamInternedStr(other.getParamInternedStr()); } if (other.hasPrecond()) { mergePrecond(other.getPrecond()); } if (fixedChoicesBuilder_ == null) { if (!other.fixedChoices_.isEmpty()) { if (fixedChoices_.isEmpty()) { fixedChoices_ = other.fixedChoices_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFixedChoicesIsMutable(); fixedChoices_.addAll(other.fixedChoices_); } onChanged(); } } else { if (!other.fixedChoices_.isEmpty()) { if (fixedChoicesBuilder_.isEmpty()) { fixedChoicesBuilder_.dispose(); fixedChoicesBuilder_ = null; fixedChoices_ = other.fixedChoices_; bitField0_ = (bitField0_ & ~0x00000004); fixedChoicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFixedChoicesFieldBuilder() : null; } else { fixedChoicesBuilder_.addAllMessages(other.fixedChoices_); } } } 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.daml.daml_lf_dev.DamlLf1.DefInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.DefInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.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 = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 1; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private int tyconInternedDname_ ; /** * int32 tycon_interned_dname = 2; * @return The tyconInternedDname. */ @java.lang.Override public int getTyconInternedDname() { return tyconInternedDname_; } /** * int32 tycon_interned_dname = 2; * @param value The tyconInternedDname to set. * @return This builder for chaining. */ public Builder setTyconInternedDname(int value) { tyconInternedDname_ = value; onChanged(); return this; } /** * int32 tycon_interned_dname = 2; * @return This builder for chaining. */ public Builder clearTyconInternedDname() { tyconInternedDname_ = 0; onChanged(); return this; } private java.util.List requires_ = java.util.Collections.emptyList(); private void ensureRequiresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { requires_ = new java.util.ArrayList(requires_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> requiresBuilder_; /** * repeated .daml_lf_1.TypeConName requires = 3; */ public java.util.List getRequiresList() { if (requiresBuilder_ == null) { return java.util.Collections.unmodifiableList(requires_); } else { return requiresBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public int getRequiresCount() { if (requiresBuilder_ == null) { return requires_.size(); } else { return requiresBuilder_.getCount(); } } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequires(int index) { if (requiresBuilder_ == null) { return requires_.get(index); } else { return requiresBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder setRequires( int index, com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiresIsMutable(); requires_.set(index, value); onChanged(); } else { requiresBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder setRequires( int index, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.set(index, builderForValue.build()); onChanged(); } else { requiresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder addRequires(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiresIsMutable(); requires_.add(value); onChanged(); } else { requiresBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder addRequires( int index, com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiresIsMutable(); requires_.add(index, value); onChanged(); } else { requiresBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder addRequires( com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.add(builderForValue.build()); onChanged(); } else { requiresBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder addRequires( int index, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder builderForValue) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.add(index, builderForValue.build()); onChanged(); } else { requiresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder addAllRequires( java.lang.Iterable values) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requires_); onChanged(); } else { requiresBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder clearRequires() { if (requiresBuilder_ == null) { requires_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requiresBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public Builder removeRequires(int index) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.remove(index); onChanged(); } else { requiresBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiresBuilder( int index) { return getRequiresFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiresOrBuilder( int index) { if (requiresBuilder_ == null) { return requires_.get(index); } else { return requiresBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public java.util.List getRequiresOrBuilderList() { if (requiresBuilder_ != null) { return requiresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requires_); } } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder addRequiresBuilder() { return getRequiresFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()); } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder addRequiresBuilder( int index) { return getRequiresFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()); } /** * repeated .daml_lf_1.TypeConName requires = 3; */ public java.util.List getRequiresBuilderList() { return getRequiresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder> getRequiresFieldBuilder() { if (requiresBuilder_ == null) { requiresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeConName, com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder>( requires_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); requires_ = null; } return requiresBuilder_; } private java.util.List methods_ = java.util.Collections.emptyList(); private void ensureMethodsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { methods_ = new java.util.ArrayList(methods_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceMethod, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder> methodsBuilder_; /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public java.util.List getMethodsList() { if (methodsBuilder_ == null) { return java.util.Collections.unmodifiableList(methods_); } else { return methodsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public int getMethodsCount() { if (methodsBuilder_ == null) { return methods_.size(); } else { return methodsBuilder_.getCount(); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getMethods(int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod value) { if (methodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.set(index, value); onChanged(); } else { methodsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.set(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder addMethods(com.daml.daml_lf_dev.DamlLf1.InterfaceMethod value) { if (methodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.add(value); onChanged(); } else { methodsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod value) { if (methodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMethodsIsMutable(); methods_.add(index, value); onChanged(); } else { methodsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder addMethods( com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder addAllMethods( java.lang.Iterable values) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, methods_); onChanged(); } else { methodsBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder clearMethods() { if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { methodsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public Builder removeMethods(int index) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.remove(index); onChanged(); } else { methodsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder getMethodsBuilder( int index) { return getMethodsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder getMethodsOrBuilder( int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public java.util.List getMethodsOrBuilderList() { if (methodsBuilder_ != null) { return methodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(methods_); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder addMethodsBuilder() { return getMethodsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.getDefaultInstance()); } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder addMethodsBuilder( int index) { return getMethodsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.getDefaultInstance()); } /** * repeated .daml_lf_1.InterfaceMethod methods = 4; */ public java.util.List getMethodsBuilderList() { return getMethodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceMethod, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder> getMethodsFieldBuilder() { if (methodsBuilder_ == null) { methodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceMethod, com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder>( methods_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); methods_ = null; } return methodsBuilder_; } private int paramInternedStr_ ; /** *
       * Binder for interface value ("this") in precond and fixed choices.
       * 
* * int32 param_interned_str = 5; * @return The paramInternedStr. */ @java.lang.Override public int getParamInternedStr() { return paramInternedStr_; } /** *
       * Binder for interface value ("this") in precond and fixed choices.
       * 
* * int32 param_interned_str = 5; * @param value The paramInternedStr to set. * @return This builder for chaining. */ public Builder setParamInternedStr(int value) { paramInternedStr_ = value; onChanged(); return this; } /** *
       * Binder for interface value ("this") in precond and fixed choices.
       * 
* * int32 param_interned_str = 5; * @return This builder for chaining. */ public Builder clearParamInternedStr() { paramInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr precond_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> precondBuilder_; /** * .daml_lf_1.Expr precond = 6; * @return Whether the precond field is set. */ public boolean hasPrecond() { return precondBuilder_ != null || precond_ != null; } /** * .daml_lf_1.Expr precond = 6; * @return The precond. */ public com.daml.daml_lf_dev.DamlLf1.Expr getPrecond() { if (precondBuilder_ == null) { return precond_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : precond_; } else { return precondBuilder_.getMessage(); } } /** * .daml_lf_1.Expr precond = 6; */ public Builder setPrecond(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (precondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } precond_ = value; onChanged(); } else { precondBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr precond = 6; */ public Builder setPrecond( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (precondBuilder_ == null) { precond_ = builderForValue.build(); onChanged(); } else { precondBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr precond = 6; */ public Builder mergePrecond(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (precondBuilder_ == null) { if (precond_ != null) { precond_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(precond_).mergeFrom(value).buildPartial(); } else { precond_ = value; } onChanged(); } else { precondBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr precond = 6; */ public Builder clearPrecond() { if (precondBuilder_ == null) { precond_ = null; onChanged(); } else { precond_ = null; precondBuilder_ = null; } return this; } /** * .daml_lf_1.Expr precond = 6; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getPrecondBuilder() { onChanged(); return getPrecondFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr precond = 6; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getPrecondOrBuilder() { if (precondBuilder_ != null) { return precondBuilder_.getMessageOrBuilder(); } else { return precond_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : precond_; } } /** * .daml_lf_1.Expr precond = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getPrecondFieldBuilder() { if (precondBuilder_ == null) { precondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getPrecond(), getParentForChildren(), isClean()); precond_ = null; } return precondBuilder_; } private java.util.List fixedChoices_ = java.util.Collections.emptyList(); private void ensureFixedChoicesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fixedChoices_ = new java.util.ArrayList(fixedChoices_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TemplateChoice, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder> fixedChoicesBuilder_; /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public java.util.List getFixedChoicesList() { if (fixedChoicesBuilder_ == null) { return java.util.Collections.unmodifiableList(fixedChoices_); } else { return fixedChoicesBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public int getFixedChoicesCount() { if (fixedChoicesBuilder_ == null) { return fixedChoices_.size(); } else { return fixedChoicesBuilder_.getCount(); } } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice getFixedChoices(int index) { if (fixedChoicesBuilder_ == null) { return fixedChoices_.get(index); } else { return fixedChoicesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder setFixedChoices( int index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice value) { if (fixedChoicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixedChoicesIsMutable(); fixedChoices_.set(index, value); onChanged(); } else { fixedChoicesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder setFixedChoices( int index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder builderForValue) { if (fixedChoicesBuilder_ == null) { ensureFixedChoicesIsMutable(); fixedChoices_.set(index, builderForValue.build()); onChanged(); } else { fixedChoicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder addFixedChoices(com.daml.daml_lf_dev.DamlLf1.TemplateChoice value) { if (fixedChoicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixedChoicesIsMutable(); fixedChoices_.add(value); onChanged(); } else { fixedChoicesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder addFixedChoices( int index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice value) { if (fixedChoicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixedChoicesIsMutable(); fixedChoices_.add(index, value); onChanged(); } else { fixedChoicesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder addFixedChoices( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder builderForValue) { if (fixedChoicesBuilder_ == null) { ensureFixedChoicesIsMutable(); fixedChoices_.add(builderForValue.build()); onChanged(); } else { fixedChoicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder addFixedChoices( int index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder builderForValue) { if (fixedChoicesBuilder_ == null) { ensureFixedChoicesIsMutable(); fixedChoices_.add(index, builderForValue.build()); onChanged(); } else { fixedChoicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder addAllFixedChoices( java.lang.Iterable values) { if (fixedChoicesBuilder_ == null) { ensureFixedChoicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fixedChoices_); onChanged(); } else { fixedChoicesBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder clearFixedChoices() { if (fixedChoicesBuilder_ == null) { fixedChoices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { fixedChoicesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public Builder removeFixedChoices(int index) { if (fixedChoicesBuilder_ == null) { ensureFixedChoicesIsMutable(); fixedChoices_.remove(index); onChanged(); } else { fixedChoicesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder getFixedChoicesBuilder( int index) { return getFixedChoicesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getFixedChoicesOrBuilder( int index) { if (fixedChoicesBuilder_ == null) { return fixedChoices_.get(index); } else { return fixedChoicesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public java.util.List getFixedChoicesOrBuilderList() { if (fixedChoicesBuilder_ != null) { return fixedChoicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fixedChoices_); } } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder addFixedChoicesBuilder() { return getFixedChoicesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()); } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder addFixedChoicesBuilder( int index) { return getFixedChoicesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()); } /** * repeated .daml_lf_1.TemplateChoice fixed_choices = 7; */ public java.util.List getFixedChoicesBuilderList() { return getFixedChoicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TemplateChoice, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder> getFixedChoicesFieldBuilder() { if (fixedChoicesBuilder_ == null) { fixedChoicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TemplateChoice, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder>( fixedChoices_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); fixedChoices_ = null; } return fixedChoicesBuilder_; } @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.DefInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefInterface) private static final com.daml.daml_lf_dev.DamlLf1.DefInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefInterface(); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefInterface(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.daml.daml_lf_dev.DamlLf1.DefInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefExceptionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefException) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid interned dotted name*
     * 
* * int32 name_interned_dname = 1; * @return The nameInternedDname. */ int getNameInternedDname(); /** * .daml_lf_1.Location location = 2; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 2; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 2; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); /** * .daml_lf_1.Expr message = 3; * @return Whether the message field is set. */ boolean hasMessage(); /** * .daml_lf_1.Expr message = 3; * @return The message. */ com.daml.daml_lf_dev.DamlLf1.Expr getMessage(); /** * .daml_lf_1.Expr message = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getMessageOrBuilder(); } /** *
   * Exception definition
   * *Available in versions >= 1.14*
   * 
* * Protobuf type {@code daml_lf_1.DefException} */ public static final class DefException extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefException) DefExceptionOrBuilder { private static final long serialVersionUID = 0L; // Use DefException.newBuilder() to construct. private DefException(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefException() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefException(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefException( 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: { nameInternedDname_ = input.readInt32(); break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (message_ != null) { subBuilder = message_.toBuilder(); } message_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(message_); message_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefException.class, com.daml.daml_lf_dev.DamlLf1.DefException.Builder.class); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 1; private int nameInternedDname_; /** *
     * *Must be a valid interned dotted name*
     * 
* * int32 name_interned_dname = 1; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } public static final int LOCATION_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 2; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 2; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int MESSAGE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr message_; /** * .daml_lf_1.Expr message = 3; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return message_ != null; } /** * .daml_lf_1.Expr message = 3; * @return The message. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getMessage() { return message_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : message_; } /** * .daml_lf_1.Expr message = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getMessageOrBuilder() { return getMessage(); } 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 (nameInternedDname_ != 0) { output.writeInt32(1, nameInternedDname_); } if (location_ != null) { output.writeMessage(2, getLocation()); } if (message_ != null) { output.writeMessage(3, getMessage()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, nameInternedDname_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocation()); } if (message_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMessage()); } 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.daml.daml_lf_dev.DamlLf1.DefException)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefException other = (com.daml.daml_lf_dev.DamlLf1.DefException) obj; if (getNameInternedDname() != other.getNameInternedDname()) return false; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) 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) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefException parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.DefException 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; } /** *
     * Exception definition
     * *Available in versions >= 1.14*
     * 
* * Protobuf type {@code daml_lf_1.DefException} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefException) com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefException.class, com.daml.daml_lf_dev.DamlLf1.DefException.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.DefException.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(); nameInternedDname_ = 0; if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } if (messageBuilder_ == null) { message_ = null; } else { message_ = null; messageBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefException_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefException getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefException.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefException build() { com.daml.daml_lf_dev.DamlLf1.DefException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefException buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefException result = new com.daml.daml_lf_dev.DamlLf1.DefException(this); result.nameInternedDname_ = nameInternedDname_; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (messageBuilder_ == null) { result.message_ = message_; } else { result.message_ = messageBuilder_.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.daml.daml_lf_dev.DamlLf1.DefException) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefException other) { if (other == com.daml.daml_lf_dev.DamlLf1.DefException.getDefaultInstance()) return this; if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.hasMessage()) { mergeMessage(other.getMessage()); } 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.daml.daml_lf_dev.DamlLf1.DefException parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.DefException) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int nameInternedDname_ ; /** *
       * *Must be a valid interned dotted name*
       * 
* * int32 name_interned_dname = 1; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * *Must be a valid interned dotted name*
       * 
* * int32 name_interned_dname = 1; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned dotted name*
       * 
* * int32 name_interned_dname = 1; * @return This builder for chaining. */ public Builder clearNameInternedDname() { nameInternedDname_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 2; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 2; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 2; */ public Builder setLocation(com.daml.daml_lf_dev.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 = 2; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 2; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 2; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 2; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 2; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr message_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> messageBuilder_; /** * .daml_lf_1.Expr message = 3; * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** * .daml_lf_1.Expr message = 3; * @return The message. */ public com.daml.daml_lf_dev.DamlLf1.Expr getMessage() { if (messageBuilder_ == null) { return message_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** * .daml_lf_1.Expr message = 3; */ public Builder setMessage(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { messageBuilder_.setMessage(value); } return this; } /** * .daml_lf_1.Expr message = 3; */ public Builder setMessage( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr message = 3; */ public Builder mergeMessage(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { messageBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr message = 3; */ public Builder clearMessage() { if (messageBuilder_ == null) { message_ = null; onChanged(); } else { message_ = null; messageBuilder_ = null; } return this; } /** * .daml_lf_1.Expr message = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getMessageBuilder() { onChanged(); return getMessageFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr message = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { return message_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : message_; } } /** * .daml_lf_1.Expr message = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } @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.DefException) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefException) private static final com.daml.daml_lf_dev.DamlLf1.DefException DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefException(); } public static com.daml.daml_lf_dev.DamlLf1.DefException getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefException parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefException(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.daml.daml_lf_dev.DamlLf1.DefException 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; * @return Whether the nameDname field is set. */ boolean hasNameDname(); /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname(); /** * .daml_lf_1.DottedName name_dname = 1; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ boolean hasNameInternedDname(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ int getNameInternedDname(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ java.util.List getParamsList(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getParams(int index); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ int getParamsCount(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ java.util.List getParamsOrBuilderList(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3; * @return Whether the record field is set. */ boolean hasRecord(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3; * @return The record. */ com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getRecord(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3; */ com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder getRecordOrBuilder(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4; * @return Whether the variant field is set. */ boolean hasVariant(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4; * @return The variant. */ com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getVariant(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4; */ com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder getVariantOrBuilder(); /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; * @return Whether the enum field is set. */ boolean hasEnum(); /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; * @return The enum. */ com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors getEnum(); /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder(); /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_1.Unit interface = 9; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_1.Unit interface = 9; * @return The interface. */ com.daml.daml_lf_dev.DamlLf1.Unit getInterface(); /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_1.Unit interface = 9; */ com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getInterfaceOrBuilder(); /** *
     * 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; * @return The serializable. */ boolean getSerializable(); /** * .daml_lf_1.Location location = 6; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 6; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 6; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); public com.daml.daml_lf_dev.DamlLf1.DefDataType.NameCase getNameCase(); public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder subBuilder = null; if (dataConsCase_ == 3) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 3; break; } case 34: { com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder subBuilder = null; if (dataConsCase_ == 4) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 4; break; } case 40: { serializable_ = input.readBool(); break; } case 50: { com.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 58: { com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder subBuilder = null; if (dataConsCase_ == 7) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 7; break; } case 64: { name_ = input.readInt32(); nameCase_ = 8; break; } case 74: { com.daml.daml_lf_dev.DamlLf1.Unit.Builder subBuilder = null; if (dataConsCase_ == 9) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_).toBuilder(); } dataCons_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Unit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_); dataCons_ = subBuilder.buildPartial(); } dataConsCase_ = 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 { 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefDataType.class, com.daml.daml_lf_dev.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; */ java.util.List getFieldsList(); /** * repeated .daml_lf_1.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf1.FieldWithType getFields(int index); /** * repeated .daml_lf_1.FieldWithType fields = 1; */ int getFieldsCount(); /** * repeated .daml_lf_1.FieldWithType fields = 1; */ java.util.List getFieldsOrBuilderList(); /** * repeated .daml_lf_1.FieldWithType fields = 1; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.class, com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FieldWithType getFields(int index) { return fields_.get(index); } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.class, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_Fields_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields build() { com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FieldWithType, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder> fieldsBuilder_; /** * repeated .daml_lf_1.FieldWithType fields = 1; */ 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; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder setFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields(com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ public Builder addFields( com.daml.daml_lf_dev.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; */ public Builder addFields( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.FieldWithType.getDefaultInstance()); } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.FieldWithType.getDefaultInstance()); } /** * repeated .daml_lf_1.FieldWithType fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithType, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf1.FieldWithTypeOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FieldWithType, com.daml.daml_lf_dev.DamlLf1.FieldWithType.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return A list containing the constructorsStr. */ java.util.List getConstructorsStrList(); /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1; * @return The count of constructorsStr. */ int getConstructorsStrCount(); /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1; * @param index The index of the element to return. * @return The constructorsStr at the given index. */ java.lang.String getConstructorsStr(int index); /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1; * @param index The index of the value to return. * @return The bytes of the constructorsStr at the given index. */ com.google.protobuf.ByteString getConstructorsStrBytes(int index); /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2; * @return A list containing the constructorsInternedStr. */ java.util.List getConstructorsInternedStrList(); /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2; * @return The count of constructorsInternedStr. */ int getConstructorsInternedStrCount(); /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2; * @param index The index of the element to return. * @return The constructorsInternedStr at the given index. */ int getConstructorsInternedStr(int index); } /** * 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.class, com.daml.daml_lf_dev.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; * @return A list containing the constructorsStr. */ public com.google.protobuf.ProtocolStringList getConstructorsStrList() { return constructorsStr_; } /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1; * @return The count of constructorsStr. */ public int getConstructorsStrCount() { return constructorsStr_.size(); } /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1; * @param index The index of the element to return. * @return The constructorsStr at the given index. */ public java.lang.String getConstructorsStr(int index) { return constructorsStr_.get(index); } /** *
       * *Must be a list of valid identifiers*
       * 
* * repeated string constructors_str = 1; * @param index The index of the value to return. * @return The bytes of the constructorsStr at the given index. */ 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; * @return A list containing the constructorsInternedStr. */ @java.lang.Override public java.util.List getConstructorsInternedStrList() { return constructorsInternedStr_; } /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2; * @return The count of constructorsInternedStr. */ public int getConstructorsInternedStrCount() { return constructorsInternedStr_.size(); } /** *
       * *Must be a list of valid interned identifiers*
       * 
* * repeated int32 constructors_interned_str = 2; * @param index The index of the element to return. * @return The constructorsInternedStr at the given index. */ 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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; } /** * 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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.class, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_EnumConstructors_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors build() { com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return A list containing the constructorsStr. */ public com.google.protobuf.ProtocolStringList getConstructorsStrList() { return constructorsStr_.getUnmodifiableView(); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1; * @return The count of constructorsStr. */ public int getConstructorsStrCount() { return constructorsStr_.size(); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1; * @param index The index of the element to return. * @return The constructorsStr at the given index. */ public java.lang.String getConstructorsStr(int index) { return constructorsStr_.get(index); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1; * @param index The index of the value to return. * @return The bytes of the constructorsStr at the given index. */ public com.google.protobuf.ByteString getConstructorsStrBytes(int index) { return constructorsStr_.getByteString(index); } /** *
         * *Must be a list of valid identifiers*
         * 
* * repeated string constructors_str = 1; * @param index The index to set the value at. * @param value The constructorsStr to set. * @return This builder for chaining. */ 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; * @param value The constructorsStr to add. * @return This builder for chaining. */ 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; * @param values The constructorsStr to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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; * @param value The bytes of the constructorsStr to add. * @return This builder for chaining. */ 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; * @return A list containing the 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; * @return The count of constructorsInternedStr. */ public int getConstructorsInternedStrCount() { return constructorsInternedStr_.size(); } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2; * @param index The index of the element to return. * @return The constructorsInternedStr at the given index. */ public int getConstructorsInternedStr(int index) { return constructorsInternedStr_.getInt(index); } /** *
         * *Must be a list of valid interned identifiers*
         * 
* * repeated int32 constructors_interned_str = 2; * @param index The index to set the value at. * @param value The constructorsInternedStr to set. * @return This builder for chaining. */ 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; * @param value The constructorsInternedStr to add. * @return This builder for chaining. */ 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; * @param values The constructorsInternedStr to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME_DNAME(1), NAME_INTERNED_DNAME(8), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECORD(3), VARIANT(4), ENUM(7), INTERFACE(9), DATACONS_NOT_SET(0); private final int value; private DataConsCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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 9: return INTERFACE; 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; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName name_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 8; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ @java.lang.Override public boolean hasNameInternedDname() { return nameCase_ == 8; } /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ @java.lang.Override 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; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public com.daml.daml_lf_dev.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; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return dataConsCase_ == 3; } /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getRecord() { if (dataConsCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields record = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder getRecordOrBuilder() { if (dataConsCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.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; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return dataConsCase_ == 4; } /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getVariant() { if (dataConsCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_1.DefDataType.Fields variant = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder getVariantOrBuilder() { if (dataConsCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 7; /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return dataConsCase_ == 7; } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors getEnum() { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder() { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } public static final int INTERFACE_FIELD_NUMBER = 9; /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_1.Unit interface = 9; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return dataConsCase_ == 9; } /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_1.Unit interface = 9; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getInterface() { if (dataConsCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_1.Unit interface = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getInterfaceOrBuilder() { if (dataConsCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.Unit.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; * @return The serializable. */ @java.lang.Override public boolean getSerializable() { return serializable_; } public static final int LOCATION_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 6; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 6; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 6; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName) name_); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(2, params_.get(i)); } if (dataConsCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_); } if (nameCase_ == 8) { output.writeInt32( 8, (int)((java.lang.Integer) name_)); } if (dataConsCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_); } 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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_); } if (nameCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 8, (int)((java.lang.Integer) name_)); } if (dataConsCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_); } 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.daml.daml_lf_dev.DamlLf1.DefDataType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefDataType other = (com.daml.daml_lf_dev.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 9: if (!getInterface() .equals(other.getInterface())) 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 9: hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefDataType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefDataType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefDataType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefDataType.class, com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefDataType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefDataType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType build() { com.daml.daml_lf_dev.DamlLf1.DefDataType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefDataType result = new com.daml.daml_lf_dev.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(); } } if (dataConsCase_ == 9) { if (interfaceBuilder_ == null) { result.dataCons_ = dataCons_; } else { result.dataCons_ = interfaceBuilder_.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.daml.daml_lf_dev.DamlLf1.DefDataType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefDataType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefDataType other) { if (other == com.daml.daml_lf_dev.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 INTERFACE: { mergeInterface(other.getInterface()); 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.daml.daml_lf_dev.DamlLf1.DefDataType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** * .daml_lf_1.DottedName name_dname = 1; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 1) { return nameDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1; */ public Builder setNameDname(com.daml.daml_lf_dev.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; */ public Builder setNameDname( com.daml.daml_lf_dev.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; */ public Builder mergeNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 1 && name_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName name_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 1) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 1)) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 1; onChanged();; return nameDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ public boolean hasNameInternedDname() { return nameCase_ == 8; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8; * @return The 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; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameCase_ = 8; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> paramsBuilder_; /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setParams( int index, com.daml.daml_lf_dev.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; */ public Builder setParams( int index, com.daml.daml_lf_dev.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; */ public Builder addParams(com.daml.daml_lf_dev.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; */ public Builder addParams( int index, com.daml.daml_lf_dev.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; */ public Builder addParams( com.daml.daml_lf_dev.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; */ public Builder addParams( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder> recordBuilder_; /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return dataConsCase_ == 3; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getRecord() { if (recordBuilder_ == null) { if (dataConsCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } else { if (dataConsCase_ == 3) { return recordBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3; */ public Builder setRecord(com.daml.daml_lf_dev.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; */ public Builder setRecord( com.daml.daml_lf_dev.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; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields value) { if (recordBuilder_ == null) { if (dataConsCase_ == 3 && dataCons_ != com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder getRecordOrBuilder() { if ((dataConsCase_ == 3) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(dataConsCase_ == 3)) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 3; onChanged();; return recordBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder> variantBuilder_; /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return dataConsCase_ == 4; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields getVariant() { if (variantBuilder_ == null) { if (dataConsCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } else { if (dataConsCase_ == 4) { return variantBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4; */ public Builder setVariant(com.daml.daml_lf_dev.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; */ public Builder setVariant( com.daml.daml_lf_dev.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; */ public Builder mergeVariant(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields value) { if (variantBuilder_ == null) { if (dataConsCase_ == 4 && dataCons_ != com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder getVariantOrBuilder() { if ((dataConsCase_ == 4) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_1.DefDataType.Fields variant = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(dataConsCase_ == 4)) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.FieldsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 4; onChanged();; return variantBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder> enumBuilder_; /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return dataConsCase_ == 7; } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors getEnum() { if (enumBuilder_ == null) { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } else { if (dataConsCase_ == 7) { return enumBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ public Builder setEnum(com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors value) { if (enumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { enumBuilder_.setMessage(value); } dataConsCase_ = 7; return this; } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ public Builder setEnum( com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder builderForValue) { if (enumBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 7; return this; } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ public Builder mergeEnum(com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors value) { if (enumBuilder_ == null) { if (dataConsCase_ == 7 && dataCons_ != com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.newBuilder((com.daml.daml_lf_dev.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; } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ 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; } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder() { if ((dataConsCase_ == 7) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } } /** * .daml_lf_1.DefDataType.EnumConstructors enum = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(dataConsCase_ == 7)) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructorsOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 7; onChanged();; return enumBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> interfaceBuilder_; /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return dataConsCase_ == 9; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Unit getInterface() { if (interfaceBuilder_ == null) { if (dataConsCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } else { if (dataConsCase_ == 9) { return interfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } dataConsCase_ = 9; return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf1.Unit.Builder builderForValue) { if (interfaceBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 9; return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.Unit value) { if (interfaceBuilder_ == null) { if (dataConsCase_ == 9 && dataCons_ != com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 9) { interfaceBuilder_.mergeFrom(value); } interfaceBuilder_.setMessage(value); } dataConsCase_ = 9; return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { if (dataConsCase_ == 9) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 9) { dataConsCase_ = 0; dataCons_ = null; } interfaceBuilder_.clear(); } return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ public com.daml.daml_lf_dev.DamlLf1.Unit.Builder getInterfaceBuilder() { return getInterfaceFieldBuilder().getBuilder(); } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder getInterfaceOrBuilder() { if ((dataConsCase_ == 9) && (interfaceBuilder_ != null)) { return interfaceBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_1.Unit interface = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { if (!(dataConsCase_ == 9)) { dataCons_ = com.daml.daml_lf_dev.DamlLf1.Unit.getDefaultInstance(); } interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Unit, com.daml.daml_lf_dev.DamlLf1.Unit.Builder, com.daml.daml_lf_dev.DamlLf1.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Unit) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 9; onChanged();; return interfaceBuilder_; } 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; * @return The serializable. */ @java.lang.Override 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; * @param value The serializable to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearSerializable() { serializable_ = false; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 6; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 6; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 6; */ public Builder setLocation(com.daml.daml_lf_dev.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; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 6; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 6; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 6; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 6; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefDataType(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefDataType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefTypeSynOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefTypeSyn) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_1.DottedName name_dname = 1; * @return Whether the nameDname field is set. */ boolean hasNameDname(); /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname(); /** * .daml_lf_1.DottedName name_dname = 1; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ boolean hasNameInternedDname(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ int getNameInternedDname(); /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ java.util.List getParamsList(); /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getParams(int index); /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ int getParamsCount(); /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ java.util.List getParamsOrBuilderList(); /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index); /** * .daml_lf_1.Type type = 3; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_1.Type type = 3; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** * .daml_lf_1.Type type = 3; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_1.Location location = 4; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 4; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 4; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.NameCase getNameCase(); } /** *
   * Type synonym definition
   * *Available in versions >= 1.8*
   * 
* * Protobuf type {@code daml_lf_1.DefTypeSyn} */ public static final class DefTypeSyn extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefTypeSyn) DefTypeSynOrBuilder { private static final long serialVersionUID = 0L; // Use DefTypeSyn.newBuilder() to construct. private DefTypeSyn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DefTypeSyn() { params_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefTypeSyn(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DefTypeSyn( 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.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry)); break; } case 26: { com.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 34: { com.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 64: { name_ = input.readInt32(); nameCase_ = 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 { 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTypeSyn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTypeSyn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.class, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME_DNAME(1), NAME_INTERNED_DNAME(8), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName name_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 8; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ @java.lang.Override public boolean hasNameInternedDname() { return nameCase_ == 8; } /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ @java.lang.Override 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
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getParams(int index) { return params_.get(index); } /** *
     * type parameters
     * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int TYPE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** * .daml_lf_1.Type type = 3; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** * .daml_lf_1.Type type = 3; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** * .daml_lf_1.Type type = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int LOCATION_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 4; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 4; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 4; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName) name_); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(2, params_.get(i)); } if (type_ != null) { output.writeMessage(3, getType()); } if (location_ != null) { output.writeMessage(4, getLocation()); } 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.daml.daml_lf_dev.DamlLf1.DottedName) name_); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, params_.get(i)); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getType()); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLocation()); } 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.daml.daml_lf_dev.DamlLf1.DefTypeSyn)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefTypeSyn other = (com.daml.daml_lf_dev.DamlLf1.DefTypeSyn) obj; if (!getParamsList() .equals(other.getParamsList())) return false; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) 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 (!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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } 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: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn 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 synonym definition
     * *Available in versions >= 1.8*
     * 
* * Protobuf type {@code daml_lf_1.DefTypeSyn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefTypeSyn) com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTypeSyn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTypeSyn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.class, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.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 (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } nameCase_ = 0; name_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefTypeSyn_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn build() { com.daml.daml_lf_dev.DamlLf1.DefTypeSyn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefTypeSyn result = new com.daml.daml_lf_dev.DamlLf1.DefTypeSyn(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 (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.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.daml.daml_lf_dev.DamlLf1.DefTypeSyn) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefTypeSyn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn other) { if (other == com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.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.hasType()) { mergeType(other.getType()); } 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; } } 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.daml.daml_lf_dev.DamlLf1.DefTypeSyn parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.DefTypeSyn) 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.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** * .daml_lf_1.DottedName name_dname = 1; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 1) { return nameDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1; */ public Builder setNameDname(com.daml.daml_lf_dev.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; */ public Builder setNameDname( com.daml.daml_lf_dev.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; */ public Builder mergeNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 1 && name_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName name_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 1) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 1)) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 1; onChanged();; return nameDnameBuilder_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ public boolean hasNameInternedDname() { return nameCase_ == 8; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8; * @return The 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; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameCase_ = 8; name_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 8; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> paramsBuilder_; /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder setParams( int index, com.daml.daml_lf_dev.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
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder addParams(com.daml.daml_lf_dev.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
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder addParams( int index, com.daml.daml_lf_dev.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
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder addParams( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ 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
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * 
* * repeated .daml_lf_1.TypeVarWithKind params = 2; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf1.TypeVarWithKindOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** * .daml_lf_1.Type type = 3; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * .daml_lf_1.Type type = 3; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_1.Type type = 3; */ public Builder setType(com.daml.daml_lf_dev.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 = 3; */ public Builder setType( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Type type = 3; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Type type = 3; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * .daml_lf_1.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** * .daml_lf_1.Type type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 4; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 4; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 4; */ public Builder setLocation(com.daml.daml_lf_dev.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 = 4; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 4; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 4; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 4; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 4; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.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.DefTypeSyn) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefTypeSyn) private static final com.daml.daml_lf_dev.DamlLf1.DefTypeSyn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefTypeSyn(); } public static com.daml.daml_lf_dev.DamlLf1.DefTypeSyn getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DefTypeSyn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DefTypeSyn(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.daml.daml_lf_dev.DamlLf1.DefTypeSyn 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; * @return Whether the nameWithType field is set. */ boolean hasNameWithType(); /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; * @return The nameWithType. */ com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType getNameWithType(); /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder(); /** * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_1.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf1.Expr getExpr(); /** * .daml_lf_1.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder(); /** *
     * Always true for SDK > 1.18. Setting it to false
     * will result in the package being rejected.
     * 
* * bool no_party_literals = 3; * @return The noPartyLiterals. */ boolean getNoPartyLiterals(); /** * bool is_test = 4; * @return The isTest. */ boolean getIsTest(); /** * .daml_lf_1.Location location = 5; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 5; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 5; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder subBuilder = null; if (nameWithType_ != null) { subBuilder = nameWithType_.toBuilder(); } nameWithType_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nameWithType_); nameWithType_ = subBuilder.buildPartial(); } break; } case 18: { com.daml.daml_lf_dev.DamlLf1.Expr.Builder subBuilder = null; if (expr_ != null) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefValue.class, com.daml.daml_lf_dev.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; * @return A list containing the nameDname. */ java.util.List getNameDnameList(); /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1; * @return The count of nameDname. */ int getNameDnameCount(); /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1; * @param index The index of the element to return. * @return The nameDname at the given index. */ java.lang.String getNameDname(int index); /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1; * @param index The index of the value to return. * @return The bytes of the nameDname at the given index. */ com.google.protobuf.ByteString getNameDnameBytes(int index); /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return The nameInternedDname. */ int getNameInternedDname(); /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf1.Type getType(); /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2; */ com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Type.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.class, com.daml.daml_lf_dev.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; * @return A list containing the nameDname. */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_; } /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1; * @return The count of nameDname. */ public int getNameDnameCount() { return nameDname_.size(); } /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1; * @param index The index of the element to return. * @return The nameDname at the given index. */ public java.lang.String getNameDname(int index) { return nameDname_.get(index); } /** *
       * *Must a non-empty list a valid identifier*
       * 
* * repeated string name_dname = 1; * @param index The index of the value to return. * @return The bytes of the nameDname at the given index. */ 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; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } public static final int TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Type type_; /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } /** *
       * Type of the value
       * 
* * .daml_lf_1.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.class, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_NameWithType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType build() { com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return A list containing the nameDname. */ public com.google.protobuf.ProtocolStringList getNameDnameList() { return nameDname_.getUnmodifiableView(); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1; * @return The count of nameDname. */ public int getNameDnameCount() { return nameDname_.size(); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1; * @param index The index of the element to return. * @return The nameDname at the given index. */ public java.lang.String getNameDname(int index) { return nameDname_.get(index); } /** *
         * *Must a non-empty list a valid identifier*
         * 
* * repeated string name_dname = 1; * @param index The index of the value to return. * @return The bytes of the nameDname at the given index. */ 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; * @param index The index to set the value at. * @param value The nameDname to set. * @return This builder for chaining. */ 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; * @param value The nameDname to add. * @return This builder for chaining. */ 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; * @param values The nameDname to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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; * @param value The bytes of the nameDname to add. * @return This builder for chaining. */ 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; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 3; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; onChanged(); return this; } /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 3; * @return This builder for chaining. */ public Builder clearNameInternedDname() { nameInternedDname_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> typeBuilder_; /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf1.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.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; */ public Builder setType( com.daml.daml_lf_dev.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; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NAME_WITH_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType nameWithType_; /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; * @return Whether the nameWithType field is set. */ @java.lang.Override public boolean hasNameWithType() { return nameWithType_ != null; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; * @return The nameWithType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType getNameWithType() { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder() { return getNameWithType(); } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr expr_; /** * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return expr_ != null; } /** * .daml_lf_1.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_1.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { return getExpr(); } public static final int NO_PARTY_LITERALS_FIELD_NUMBER = 3; private boolean noPartyLiterals_; /** *
     * Always true for SDK > 1.18. Setting it to false
     * will result in the package being rejected.
     * 
* * bool no_party_literals = 3; * @return The noPartyLiterals. */ @java.lang.Override public boolean getNoPartyLiterals() { return noPartyLiterals_; } public static final int IS_TEST_FIELD_NUMBER = 4; private boolean isTest_; /** * bool is_test = 4; * @return The isTest. */ @java.lang.Override public boolean getIsTest() { return isTest_; } public static final int LOCATION_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 5; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** * .daml_lf_1.Location location = 5; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } /** * .daml_lf_1.Location location = 5; */ @java.lang.Override public com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefValue other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.DefValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefValue.class, com.daml.daml_lf_dev.DamlLf1.DefValue.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefValue_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefValue.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue build() { com.daml.daml_lf_dev.DamlLf1.DefValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefValue result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefValue other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.DefValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType nameWithType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder> nameWithTypeBuilder_; /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; * @return Whether the nameWithType field is set. */ public boolean hasNameWithType() { return nameWithTypeBuilder_ != null || nameWithType_ != null; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; * @return The nameWithType. */ public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType getNameWithType() { if (nameWithTypeBuilder_ == null) { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } else { return nameWithTypeBuilder_.getMessage(); } } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ public Builder setNameWithType(com.daml.daml_lf_dev.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; */ public Builder setNameWithType( com.daml.daml_lf_dev.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; */ public Builder mergeNameWithType(com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType value) { if (nameWithTypeBuilder_ == null) { if (nameWithType_ != null) { nameWithType_ = com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder getNameWithTypeBuilder() { onChanged(); return getNameWithTypeFieldBuilder().getBuilder(); } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder() { if (nameWithTypeBuilder_ != null) { return nameWithTypeBuilder_.getMessageOrBuilder(); } else { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder> getNameWithTypeFieldBuilder() { if (nameWithTypeBuilder_ == null) { nameWithTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder, com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithTypeOrBuilder>( getNameWithType(), getParentForChildren(), isClean()); nameWithType_ = null; } return nameWithTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> exprBuilder_; /** * .daml_lf_1.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return exprBuilder_ != null || expr_ != null; } /** * .daml_lf_1.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.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; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (expr_ != null) { expr_ = com.daml.daml_lf_dev.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { expr_ = null; exprBuilder_ = null; } return this; } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_1.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr, com.daml.daml_lf_dev.DamlLf1.Expr.Builder, com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private boolean noPartyLiterals_ ; /** *
       * Always true for SDK > 1.18. Setting it to false
       * will result in the package being rejected.
       * 
* * bool no_party_literals = 3; * @return The noPartyLiterals. */ @java.lang.Override public boolean getNoPartyLiterals() { return noPartyLiterals_; } /** *
       * Always true for SDK > 1.18. Setting it to false
       * will result in the package being rejected.
       * 
* * bool no_party_literals = 3; * @param value The noPartyLiterals to set. * @return This builder for chaining. */ public Builder setNoPartyLiterals(boolean value) { noPartyLiterals_ = value; onChanged(); return this; } /** *
       * Always true for SDK > 1.18. Setting it to false
       * will result in the package being rejected.
       * 
* * bool no_party_literals = 3; * @return This builder for chaining. */ public Builder clearNoPartyLiterals() { noPartyLiterals_ = false; onChanged(); return this; } private boolean isTest_ ; /** * bool is_test = 4; * @return The isTest. */ @java.lang.Override public boolean getIsTest() { return isTest_; } /** * bool is_test = 4; * @param value The isTest to set. * @return This builder for chaining. */ public Builder setIsTest(boolean value) { isTest_ = value; onChanged(); return this; } /** * bool is_test = 4; * @return This builder for chaining. */ public Builder clearIsTest() { isTest_ = false; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> locationBuilder_; /** * .daml_lf_1.Location location = 5; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** * .daml_lf_1.Location location = 5; * @return The location. */ public com.daml.daml_lf_dev.DamlLf1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_1.Location location = 5; */ public Builder setLocation(com.daml.daml_lf_dev.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; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.Location location = 5; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.daml.daml_lf_dev.DamlLf1.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.Location location = 5; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** * .daml_lf_1.Location location = 5; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 5; */ public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } } /** * .daml_lf_1.Location location = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Location, com.daml.daml_lf_dev.DamlLf1.Location.Builder, com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DefValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefValue(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return The forbidPartyLiterals. */ boolean getForbidPartyLiterals(); /** * bool dontDivulgeContractIdsInCreateArguments = 2; * @return The dontDivulgeContractIdsInCreateArguments. */ boolean getDontDivulgeContractIdsInCreateArguments(); /** * bool dontDiscloseNonConsumingChoicesToObservers = 3; * @return The 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FeatureFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FeatureFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.FeatureFlags.class, com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder.class); } public static final int FORBIDPARTYLITERALS_FIELD_NUMBER = 1; private boolean forbidPartyLiterals_; /** * bool forbidPartyLiterals = 1; * @return The forbidPartyLiterals. */ @java.lang.Override public boolean getForbidPartyLiterals() { return forbidPartyLiterals_; } public static final int DONTDIVULGECONTRACTIDSINCREATEARGUMENTS_FIELD_NUMBER = 2; private boolean dontDivulgeContractIdsInCreateArguments_; /** * bool dontDivulgeContractIdsInCreateArguments = 2; * @return The dontDivulgeContractIdsInCreateArguments. */ @java.lang.Override public boolean getDontDivulgeContractIdsInCreateArguments() { return dontDivulgeContractIdsInCreateArguments_; } public static final int DONTDISCLOSENONCONSUMINGCHOICESTOOBSERVERS_FIELD_NUMBER = 3; private boolean dontDiscloseNonConsumingChoicesToObservers_; /** * bool dontDiscloseNonConsumingChoicesToObservers = 3; * @return The dontDiscloseNonConsumingChoicesToObservers. */ @java.lang.Override 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.daml.daml_lf_dev.DamlLf1.FeatureFlags)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.FeatureFlags other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.FeatureFlags parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.FeatureFlags parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FeatureFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FeatureFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.FeatureFlags.class, com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_FeatureFlags_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FeatureFlags getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.FeatureFlags.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FeatureFlags build() { com.daml.daml_lf_dev.DamlLf1.FeatureFlags result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FeatureFlags buildPartial() { com.daml.daml_lf_dev.DamlLf1.FeatureFlags result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.FeatureFlags)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.FeatureFlags other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.FeatureFlags parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.FeatureFlags) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean forbidPartyLiterals_ ; /** * bool forbidPartyLiterals = 1; * @return The forbidPartyLiterals. */ @java.lang.Override public boolean getForbidPartyLiterals() { return forbidPartyLiterals_; } /** * bool forbidPartyLiterals = 1; * @param value The forbidPartyLiterals to set. * @return This builder for chaining. */ public Builder setForbidPartyLiterals(boolean value) { forbidPartyLiterals_ = value; onChanged(); return this; } /** * bool forbidPartyLiterals = 1; * @return This builder for chaining. */ public Builder clearForbidPartyLiterals() { forbidPartyLiterals_ = false; onChanged(); return this; } private boolean dontDivulgeContractIdsInCreateArguments_ ; /** * bool dontDivulgeContractIdsInCreateArguments = 2; * @return The dontDivulgeContractIdsInCreateArguments. */ @java.lang.Override public boolean getDontDivulgeContractIdsInCreateArguments() { return dontDivulgeContractIdsInCreateArguments_; } /** * bool dontDivulgeContractIdsInCreateArguments = 2; * @param value The dontDivulgeContractIdsInCreateArguments to set. * @return This builder for chaining. */ public Builder setDontDivulgeContractIdsInCreateArguments(boolean value) { dontDivulgeContractIdsInCreateArguments_ = value; onChanged(); return this; } /** * bool dontDivulgeContractIdsInCreateArguments = 2; * @return This builder for chaining. */ public Builder clearDontDivulgeContractIdsInCreateArguments() { dontDivulgeContractIdsInCreateArguments_ = false; onChanged(); return this; } private boolean dontDiscloseNonConsumingChoicesToObservers_ ; /** * bool dontDiscloseNonConsumingChoicesToObservers = 3; * @return The dontDiscloseNonConsumingChoicesToObservers. */ @java.lang.Override public boolean getDontDiscloseNonConsumingChoicesToObservers() { return dontDiscloseNonConsumingChoicesToObservers_; } /** * bool dontDiscloseNonConsumingChoicesToObservers = 3; * @param value The dontDiscloseNonConsumingChoicesToObservers to set. * @return This builder for chaining. */ public Builder setDontDiscloseNonConsumingChoicesToObservers(boolean value) { dontDiscloseNonConsumingChoicesToObservers_ = value; onChanged(); return this; } /** * bool dontDiscloseNonConsumingChoicesToObservers = 3; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.FeatureFlags DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.FeatureFlags(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return Whether the nameDname field is set. */ boolean hasNameDname(); /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname(); /** * .daml_lf_1.DottedName name_dname = 1; */ com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder(); /** *
     * *Available in versions >= 1.7*
     * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ boolean hasNameInternedDname(); /** *
     * *Available in versions >= 1.7*
     * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ int getNameInternedDname(); /** * .daml_lf_1.FeatureFlags flags = 4; * @return Whether the flags field is set. */ boolean hasFlags(); /** * .daml_lf_1.FeatureFlags flags = 4; * @return The flags. */ com.daml.daml_lf_dev.DamlLf1.FeatureFlags getFlags(); /** * .daml_lf_1.FeatureFlags flags = 4; */ com.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder getFlagsOrBuilder(); /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ java.util.List getSynonymsList(); /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ com.daml.daml_lf_dev.DamlLf1.DefTypeSyn getSynonyms(int index); /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ int getSynonymsCount(); /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ java.util.List getSynonymsOrBuilderList(); /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder getSynonymsOrBuilder( int index); /** * repeated .daml_lf_1.DefDataType data_types = 5; */ java.util.List getDataTypesList(); /** * repeated .daml_lf_1.DefDataType data_types = 5; */ com.daml.daml_lf_dev.DamlLf1.DefDataType getDataTypes(int index); /** * repeated .daml_lf_1.DefDataType data_types = 5; */ int getDataTypesCount(); /** * repeated .daml_lf_1.DefDataType data_types = 5; */ java.util.List getDataTypesOrBuilderList(); /** * repeated .daml_lf_1.DefDataType data_types = 5; */ com.daml.daml_lf_dev.DamlLf1.DefDataTypeOrBuilder getDataTypesOrBuilder( int index); /** * repeated .daml_lf_1.DefValue values = 6; */ java.util.List getValuesList(); /** * repeated .daml_lf_1.DefValue values = 6; */ com.daml.daml_lf_dev.DamlLf1.DefValue getValues(int index); /** * repeated .daml_lf_1.DefValue values = 6; */ int getValuesCount(); /** * repeated .daml_lf_1.DefValue values = 6; */ java.util.List getValuesOrBuilderList(); /** * repeated .daml_lf_1.DefValue values = 6; */ com.daml.daml_lf_dev.DamlLf1.DefValueOrBuilder getValuesOrBuilder( int index); /** * repeated .daml_lf_1.DefTemplate templates = 7; */ java.util.List getTemplatesList(); /** * repeated .daml_lf_1.DefTemplate templates = 7; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate getTemplates(int index); /** * repeated .daml_lf_1.DefTemplate templates = 7; */ int getTemplatesCount(); /** * repeated .daml_lf_1.DefTemplate templates = 7; */ java.util.List getTemplatesOrBuilderList(); /** * repeated .daml_lf_1.DefTemplate templates = 7; */ com.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder getTemplatesOrBuilder( int index); /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ java.util.List getExceptionsList(); /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ com.daml.daml_lf_dev.DamlLf1.DefException getExceptions(int index); /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ int getExceptionsCount(); /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ java.util.List getExceptionsOrBuilderList(); /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder getExceptionsOrBuilder( int index); /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ java.util.List getInterfacesList(); /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ com.daml.daml_lf_dev.DamlLf1.DefInterface getInterfaces(int index); /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ int getInterfacesCount(); /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ java.util.List getInterfacesOrBuilderList(); /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder getInterfacesOrBuilder( int index); public com.daml.daml_lf_dev.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() { synonyms_ = java.util.Collections.emptyList(); dataTypes_ = java.util.Collections.emptyList(); values_ = java.util.Collections.emptyList(); templates_ = java.util.Collections.emptyList(); exceptions_ = java.util.Collections.emptyList(); interfaces_ = 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.daml.daml_lf_dev.DamlLf1.DottedName.Builder subBuilder = null; if (nameCase_ == 1) { subBuilder = ((com.daml.daml_lf_dev.DamlLf1.DottedName) name_).toBuilder(); } name_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.DottedName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.daml.daml_lf_dev.DamlLf1.DottedName) name_); name_ = subBuilder.buildPartial(); } nameCase_ = 1; break; } case 34: { com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder subBuilder = null; if (flags_ != null) { subBuilder = flags_.toBuilder(); } flags_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.FeatureFlags.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flags_); flags_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { dataTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } dataTypes_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefDataType.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } values_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefValue.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { templates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } templates_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefTemplate.parser(), extensionRegistry)); break; } case 64: { name_ = input.readInt32(); nameCase_ = 8; break; } case 74: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { synonyms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } synonyms_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.parser(), extensionRegistry)); break; } case 82: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { exceptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } exceptions_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefException.parser(), extensionRegistry)); break; } case 90: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { interfaces_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } interfaces_.add( input.readMessage(com.daml.daml_lf_dev.DamlLf1.DefInterface.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_ & 0x00000002) != 0)) { dataTypes_ = java.util.Collections.unmodifiableList(dataTypes_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { templates_ = java.util.Collections.unmodifiableList(templates_); } if (((mutable_bitField0_ & 0x00000001) != 0)) { synonyms_ = java.util.Collections.unmodifiableList(synonyms_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { exceptions_ = java.util.Collections.unmodifiableList(exceptions_); } if (((mutable_bitField0_ & 0x00000020) != 0)) { interfaces_ = java.util.Collections.unmodifiableList(interfaces_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Module_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Module_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Module.class, com.daml.daml_lf_dev.DamlLf1.Module.Builder.class); } private int nameCase_ = 0; private java.lang.Object name_; public enum NameCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME_DNAME(1), NAME_INTERNED_DNAME(8), NAME_NOT_SET(0); private final int value; private NameCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } /** * .daml_lf_1.DottedName name_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 8; /** *
     * *Available in versions >= 1.7*
     * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ @java.lang.Override public boolean hasNameInternedDname() { return nameCase_ == 8; } /** *
     * *Available in versions >= 1.7*
     * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { if (nameCase_ == 8) { return (java.lang.Integer) name_; } return 0; } public static final int FLAGS_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.FeatureFlags flags_; /** * .daml_lf_1.FeatureFlags flags = 4; * @return Whether the flags field is set. */ @java.lang.Override public boolean hasFlags() { return flags_ != null; } /** * .daml_lf_1.FeatureFlags flags = 4; * @return The flags. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FeatureFlags getFlags() { return flags_ == null ? com.daml.daml_lf_dev.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } /** * .daml_lf_1.FeatureFlags flags = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder getFlagsOrBuilder() { return getFlags(); } public static final int SYNONYMS_FIELD_NUMBER = 9; private java.util.List synonyms_; /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ @java.lang.Override public java.util.List getSynonymsList() { return synonyms_; } /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ @java.lang.Override public java.util.List getSynonymsOrBuilderList() { return synonyms_; } /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ @java.lang.Override public int getSynonymsCount() { return synonyms_.size(); } /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn getSynonyms(int index) { return synonyms_.get(index); } /** *
     * *Available in versions >= 1.8*
     * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder getSynonymsOrBuilder( int index) { return synonyms_.get(index); } public static final int DATA_TYPES_FIELD_NUMBER = 5; private java.util.List dataTypes_; /** * repeated .daml_lf_1.DefDataType data_types = 5; */ @java.lang.Override public java.util.List getDataTypesList() { return dataTypes_; } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ @java.lang.Override public java.util.List getDataTypesOrBuilderList() { return dataTypes_; } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ @java.lang.Override public int getDataTypesCount() { return dataTypes_.size(); } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefDataType getDataTypes(int index) { return dataTypes_.get(index); } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getValuesList() { return values_; } /** * repeated .daml_lf_1.DefValue values = 6; */ @java.lang.Override public java.util.List getValuesOrBuilderList() { return values_; } /** * repeated .daml_lf_1.DefValue values = 6; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** * repeated .daml_lf_1.DefValue values = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefValue getValues(int index) { return values_.get(index); } /** * repeated .daml_lf_1.DefValue values = 6; */ @java.lang.Override public com.daml.daml_lf_dev.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; */ @java.lang.Override public java.util.List getTemplatesList() { return templates_; } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ @java.lang.Override public java.util.List getTemplatesOrBuilderList() { return templates_; } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ @java.lang.Override public int getTemplatesCount() { return templates_.size(); } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplate getTemplates(int index) { return templates_.get(index); } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder getTemplatesOrBuilder( int index) { return templates_.get(index); } public static final int EXCEPTIONS_FIELD_NUMBER = 10; private java.util.List exceptions_; /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ @java.lang.Override public java.util.List getExceptionsList() { return exceptions_; } /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ @java.lang.Override public java.util.List getExceptionsOrBuilderList() { return exceptions_; } /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ @java.lang.Override public int getExceptionsCount() { return exceptions_.size(); } /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefException getExceptions(int index) { return exceptions_.get(index); } /** *
     * *Available in versions >= 1.14*
     * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder getExceptionsOrBuilder( int index) { return exceptions_.get(index); } public static final int INTERFACES_FIELD_NUMBER = 11; private java.util.List interfaces_; /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public java.util.List getInterfacesList() { return interfaces_; } /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public java.util.List getInterfacesOrBuilderList() { return interfaces_; } /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public int getInterfacesCount() { return interfaces_.size(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface getInterfaces(int index) { return interfaces_.get(index); } /** *
     * *Available in versions >= 1.dev*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder getInterfacesOrBuilder( int index) { return interfaces_.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.daml.daml_lf_dev.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_)); } for (int i = 0; i < synonyms_.size(); i++) { output.writeMessage(9, synonyms_.get(i)); } for (int i = 0; i < exceptions_.size(); i++) { output.writeMessage(10, exceptions_.get(i)); } for (int i = 0; i < interfaces_.size(); i++) { output.writeMessage(11, interfaces_.get(i)); } 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.daml.daml_lf_dev.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_)); } for (int i = 0; i < synonyms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, synonyms_.get(i)); } for (int i = 0; i < exceptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, exceptions_.get(i)); } for (int i = 0; i < interfaces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, interfaces_.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.daml.daml_lf_dev.DamlLf1.Module)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Module other = (com.daml.daml_lf_dev.DamlLf1.Module) obj; if (hasFlags() != other.hasFlags()) return false; if (hasFlags()) { if (!getFlags() .equals(other.getFlags())) return false; } if (!getSynonymsList() .equals(other.getSynonymsList())) return false; if (!getDataTypesList() .equals(other.getDataTypesList())) return false; if (!getValuesList() .equals(other.getValuesList())) return false; if (!getTemplatesList() .equals(other.getTemplatesList())) return false; if (!getExceptionsList() .equals(other.getExceptionsList())) return false; if (!getInterfacesList() .equals(other.getInterfacesList())) 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 (getSynonymsCount() > 0) { hash = (37 * hash) + SYNONYMS_FIELD_NUMBER; hash = (53 * hash) + getSynonymsList().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(); } if (getExceptionsCount() > 0) { hash = (37 * hash) + EXCEPTIONS_FIELD_NUMBER; hash = (53 * hash) + getExceptionsList().hashCode(); } if (getInterfacesCount() > 0) { hash = (37 * hash) + INTERFACES_FIELD_NUMBER; hash = (53 * hash) + getInterfacesList().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.daml.daml_lf_dev.DamlLf1.Module parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Module parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Module parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Module parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Module parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Module parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Module parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.ModuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Module_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Module_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Module.class, com.daml.daml_lf_dev.DamlLf1.Module.Builder.class); } // Construct using com.daml.daml_lf_dev.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) { getSynonymsFieldBuilder(); getDataTypesFieldBuilder(); getValuesFieldBuilder(); getTemplatesFieldBuilder(); getExceptionsFieldBuilder(); getInterfacesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (flagsBuilder_ == null) { flags_ = null; } else { flags_ = null; flagsBuilder_ = null; } if (synonymsBuilder_ == null) { synonyms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { synonymsBuilder_.clear(); } if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dataTypesBuilder_.clear(); } if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { valuesBuilder_.clear(); } if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { templatesBuilder_.clear(); } if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { exceptionsBuilder_.clear(); } if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { interfacesBuilder_.clear(); } nameCase_ = 0; name_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Module_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Module getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Module.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Module build() { com.daml.daml_lf_dev.DamlLf1.Module result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Module buildPartial() { com.daml.daml_lf_dev.DamlLf1.Module result = new com.daml.daml_lf_dev.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 (synonymsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { synonyms_ = java.util.Collections.unmodifiableList(synonyms_); bitField0_ = (bitField0_ & ~0x00000001); } result.synonyms_ = synonyms_; } else { result.synonyms_ = synonymsBuilder_.build(); } if (dataTypesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { dataTypes_ = java.util.Collections.unmodifiableList(dataTypes_); bitField0_ = (bitField0_ & ~0x00000002); } result.dataTypes_ = dataTypes_; } else { result.dataTypes_ = dataTypesBuilder_.build(); } if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } if (templatesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { templates_ = java.util.Collections.unmodifiableList(templates_); bitField0_ = (bitField0_ & ~0x00000008); } result.templates_ = templates_; } else { result.templates_ = templatesBuilder_.build(); } if (exceptionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { exceptions_ = java.util.Collections.unmodifiableList(exceptions_); bitField0_ = (bitField0_ & ~0x00000010); } result.exceptions_ = exceptions_; } else { result.exceptions_ = exceptionsBuilder_.build(); } if (interfacesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { interfaces_ = java.util.Collections.unmodifiableList(interfaces_); bitField0_ = (bitField0_ & ~0x00000020); } result.interfaces_ = interfaces_; } else { result.interfaces_ = interfacesBuilder_.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.daml.daml_lf_dev.DamlLf1.Module) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Module)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Module other) { if (other == com.daml.daml_lf_dev.DamlLf1.Module.getDefaultInstance()) return this; if (other.hasFlags()) { mergeFlags(other.getFlags()); } if (synonymsBuilder_ == null) { if (!other.synonyms_.isEmpty()) { if (synonyms_.isEmpty()) { synonyms_ = other.synonyms_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSynonymsIsMutable(); synonyms_.addAll(other.synonyms_); } onChanged(); } } else { if (!other.synonyms_.isEmpty()) { if (synonymsBuilder_.isEmpty()) { synonymsBuilder_.dispose(); synonymsBuilder_ = null; synonyms_ = other.synonyms_; bitField0_ = (bitField0_ & ~0x00000001); synonymsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSynonymsFieldBuilder() : null; } else { synonymsBuilder_.addAllMessages(other.synonyms_); } } } if (dataTypesBuilder_ == null) { if (!other.dataTypes_.isEmpty()) { if (dataTypes_.isEmpty()) { dataTypes_ = other.dataTypes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataTypesIsMutable(); dataTypes_.addAll(other.dataTypes_); } onChanged(); } } else { if (!other.dataTypes_.isEmpty()) { if (dataTypesBuilder_.isEmpty()) { dataTypesBuilder_.dispose(); dataTypesBuilder_ = null; dataTypes_ = other.dataTypes_; bitField0_ = (bitField0_ & ~0x00000002); 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_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); 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_ & ~0x00000008); } else { ensureTemplatesIsMutable(); templates_.addAll(other.templates_); } onChanged(); } } else { if (!other.templates_.isEmpty()) { if (templatesBuilder_.isEmpty()) { templatesBuilder_.dispose(); templatesBuilder_ = null; templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000008); templatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTemplatesFieldBuilder() : null; } else { templatesBuilder_.addAllMessages(other.templates_); } } } if (exceptionsBuilder_ == null) { if (!other.exceptions_.isEmpty()) { if (exceptions_.isEmpty()) { exceptions_ = other.exceptions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureExceptionsIsMutable(); exceptions_.addAll(other.exceptions_); } onChanged(); } } else { if (!other.exceptions_.isEmpty()) { if (exceptionsBuilder_.isEmpty()) { exceptionsBuilder_.dispose(); exceptionsBuilder_ = null; exceptions_ = other.exceptions_; bitField0_ = (bitField0_ & ~0x00000010); exceptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExceptionsFieldBuilder() : null; } else { exceptionsBuilder_.addAllMessages(other.exceptions_); } } } if (interfacesBuilder_ == null) { if (!other.interfaces_.isEmpty()) { if (interfaces_.isEmpty()) { interfaces_ = other.interfaces_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureInterfacesIsMutable(); interfaces_.addAll(other.interfaces_); } onChanged(); } } else { if (!other.interfaces_.isEmpty()) { if (interfacesBuilder_.isEmpty()) { interfacesBuilder_.dispose(); interfacesBuilder_ = null; interfaces_ = other.interfaces_; bitField0_ = (bitField0_ & ~0x00000020); interfacesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInterfacesFieldBuilder() : null; } else { interfacesBuilder_.addAllMessages(other.interfaces_); } } } 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.daml.daml_lf_dev.DamlLf1.Module parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_; /** * .daml_lf_1.DottedName name_dname = 1; * @return Whether the nameDname field is set. */ @java.lang.Override public boolean hasNameDname() { return nameCase_ == 1; } /** * .daml_lf_1.DottedName name_dname = 1; * @return The nameDname. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedName getNameDname() { if (nameDnameBuilder_ == null) { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } else { if (nameCase_ == 1) { return nameDnameBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1; */ public Builder setNameDname(com.daml.daml_lf_dev.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; */ public Builder setNameDname( com.daml.daml_lf_dev.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; */ public Builder mergeNameDname(com.daml.daml_lf_dev.DamlLf1.DottedName value) { if (nameDnameBuilder_ == null) { if (nameCase_ == 1 && name_ != com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance()) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.newBuilder((com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DottedName.Builder getNameDnameBuilder() { return getNameDnameFieldBuilder().getBuilder(); } /** * .daml_lf_1.DottedName name_dname = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() { if ((nameCase_ == 1) && (nameDnameBuilder_ != null)) { return nameDnameBuilder_.getMessageOrBuilder(); } else { if (nameCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf1.DottedName) name_; } return com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } } /** * .daml_lf_1.DottedName name_dname = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder> getNameDnameFieldBuilder() { if (nameDnameBuilder_ == null) { if (!(nameCase_ == 1)) { name_ = com.daml.daml_lf_dev.DamlLf1.DottedName.getDefaultInstance(); } nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DottedName, com.daml.daml_lf_dev.DamlLf1.DottedName.Builder, com.daml.daml_lf_dev.DamlLf1.DottedNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.DottedName) name_, getParentForChildren(), isClean()); name_ = null; } nameCase_ = 1; onChanged();; return nameDnameBuilder_; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8; * @return Whether the nameInternedDname field is set. */ public boolean hasNameInternedDname() { return nameCase_ == 8; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8; * @return The nameInternedDname. */ public int getNameInternedDname() { if (nameCase_ == 8) { return (java.lang.Integer) name_; } return 0; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameCase_ = 8; name_ = value; onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * int32 name_interned_dname = 8; * @return This builder for chaining. */ public Builder clearNameInternedDname() { if (nameCase_ == 8) { nameCase_ = 0; name_ = null; onChanged(); } return this; } private com.daml.daml_lf_dev.DamlLf1.FeatureFlags flags_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FeatureFlags, com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder, com.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder> flagsBuilder_; /** * .daml_lf_1.FeatureFlags flags = 4; * @return Whether the flags field is set. */ public boolean hasFlags() { return flagsBuilder_ != null || flags_ != null; } /** * .daml_lf_1.FeatureFlags flags = 4; * @return The flags. */ public com.daml.daml_lf_dev.DamlLf1.FeatureFlags getFlags() { if (flagsBuilder_ == null) { return flags_ == null ? com.daml.daml_lf_dev.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } else { return flagsBuilder_.getMessage(); } } /** * .daml_lf_1.FeatureFlags flags = 4; */ public Builder setFlags(com.daml.daml_lf_dev.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; */ public Builder setFlags( com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder builderForValue) { if (flagsBuilder_ == null) { flags_ = builderForValue.build(); onChanged(); } else { flagsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .daml_lf_1.FeatureFlags flags = 4; */ public Builder mergeFlags(com.daml.daml_lf_dev.DamlLf1.FeatureFlags value) { if (flagsBuilder_ == null) { if (flags_ != null) { flags_ = com.daml.daml_lf_dev.DamlLf1.FeatureFlags.newBuilder(flags_).mergeFrom(value).buildPartial(); } else { flags_ = value; } onChanged(); } else { flagsBuilder_.mergeFrom(value); } return this; } /** * .daml_lf_1.FeatureFlags flags = 4; */ public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = null; onChanged(); } else { flags_ = null; flagsBuilder_ = null; } return this; } /** * .daml_lf_1.FeatureFlags flags = 4; */ public com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder getFlagsBuilder() { onChanged(); return getFlagsFieldBuilder().getBuilder(); } /** * .daml_lf_1.FeatureFlags flags = 4; */ public com.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder getFlagsOrBuilder() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilder(); } else { return flags_ == null ? com.daml.daml_lf_dev.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } } /** * .daml_lf_1.FeatureFlags flags = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FeatureFlags, com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder, com.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.FeatureFlags, com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder, com.daml.daml_lf_dev.DamlLf1.FeatureFlagsOrBuilder>( getFlags(), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } private java.util.List synonyms_ = java.util.Collections.emptyList(); private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { synonyms_ = new java.util.ArrayList(synonyms_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTypeSyn, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder, com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder> synonymsBuilder_; /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public java.util.List getSynonymsList() { if (synonymsBuilder_ == null) { return java.util.Collections.unmodifiableList(synonyms_); } else { return synonymsBuilder_.getMessageList(); } } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public int getSynonymsCount() { if (synonymsBuilder_ == null) { return synonyms_.size(); } else { return synonymsBuilder_.getCount(); } } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn getSynonyms(int index) { if (synonymsBuilder_ == null) { return synonyms_.get(index); } else { return synonymsBuilder_.getMessage(index); } } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder setSynonyms( int index, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn value) { if (synonymsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSynonymsIsMutable(); synonyms_.set(index, value); onChanged(); } else { synonymsBuilder_.setMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder setSynonyms( int index, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.set(index, builderForValue.build()); onChanged(); } else { synonymsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder addSynonyms(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn value) { if (synonymsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSynonymsIsMutable(); synonyms_.add(value); onChanged(); } else { synonymsBuilder_.addMessage(value); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder addSynonyms( int index, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn value) { if (synonymsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSynonymsIsMutable(); synonyms_.add(index, value); onChanged(); } else { synonymsBuilder_.addMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder addSynonyms( com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(builderForValue.build()); onChanged(); } else { synonymsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder addSynonyms( int index, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(index, builderForValue.build()); onChanged(); } else { synonymsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder addAllSynonyms( java.lang.Iterable values) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, synonyms_); onChanged(); } else { synonymsBuilder_.addAllMessages(values); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder clearSynonyms() { if (synonymsBuilder_ == null) { synonyms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { synonymsBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public Builder removeSynonyms(int index) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.remove(index); onChanged(); } else { synonymsBuilder_.remove(index); } return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder getSynonymsBuilder( int index) { return getSynonymsFieldBuilder().getBuilder(index); } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder getSynonymsOrBuilder( int index) { if (synonymsBuilder_ == null) { return synonyms_.get(index); } else { return synonymsBuilder_.getMessageOrBuilder(index); } } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public java.util.List getSynonymsOrBuilderList() { if (synonymsBuilder_ != null) { return synonymsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(synonyms_); } } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder addSynonymsBuilder() { return getSynonymsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.getDefaultInstance()); } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder addSynonymsBuilder( int index) { return getSynonymsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.getDefaultInstance()); } /** *
       * *Available in versions >= 1.8*
       * 
* * repeated .daml_lf_1.DefTypeSyn synonyms = 9; */ public java.util.List getSynonymsBuilderList() { return getSynonymsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTypeSyn, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder, com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder> getSynonymsFieldBuilder() { if (synonymsBuilder_ == null) { synonymsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTypeSyn, com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.Builder, com.daml.daml_lf_dev.DamlLf1.DefTypeSynOrBuilder>( synonyms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); synonyms_ = null; } return synonymsBuilder_; } private java.util.List dataTypes_ = java.util.Collections.emptyList(); private void ensureDataTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { dataTypes_ = new java.util.ArrayList(dataTypes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType, com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataTypeOrBuilder> dataTypesBuilder_; /** * repeated .daml_lf_1.DefDataType data_types = 5; */ 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; */ public int getDataTypesCount() { if (dataTypesBuilder_ == null) { return dataTypes_.size(); } else { return dataTypesBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ public com.daml.daml_lf_dev.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; */ public Builder setDataTypes( int index, com.daml.daml_lf_dev.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; */ public Builder setDataTypes( int index, com.daml.daml_lf_dev.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; */ public Builder addDataTypes(com.daml.daml_lf_dev.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; */ public Builder addDataTypes( int index, com.daml.daml_lf_dev.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; */ public Builder addDataTypes( com.daml.daml_lf_dev.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; */ public Builder addDataTypes( int index, com.daml.daml_lf_dev.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; */ 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; */ public Builder clearDataTypes() { if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataTypesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder getDataTypesBuilder( int index) { return getDataTypesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder addDataTypesBuilder() { return getDataTypesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefDataType.getDefaultInstance()); } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ public com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder addDataTypesBuilder( int index) { return getDataTypesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefDataType.getDefaultInstance()); } /** * repeated .daml_lf_1.DefDataType data_types = 5; */ public java.util.List getDataTypesBuilderList() { return getDataTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType, com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataTypeOrBuilder> getDataTypesFieldBuilder() { if (dataTypesBuilder_ == null) { dataTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefDataType, com.daml.daml_lf_dev.DamlLf1.DefDataType.Builder, com.daml.daml_lf_dev.DamlLf1.DefDataTypeOrBuilder>( dataTypes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); dataTypes_ = null; } return dataTypesBuilder_; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefValue, com.daml.daml_lf_dev.DamlLf1.DefValue.Builder, com.daml.daml_lf_dev.DamlLf1.DefValueOrBuilder> valuesBuilder_; /** * repeated .daml_lf_1.DefValue values = 6; */ 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; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefValue values = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.DefValue values = 6; */ public Builder setValues( int index, com.daml.daml_lf_dev.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; */ public Builder setValues( int index, com.daml.daml_lf_dev.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; */ public Builder addValues(com.daml.daml_lf_dev.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; */ public Builder addValues( int index, com.daml.daml_lf_dev.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; */ public Builder addValues( com.daml.daml_lf_dev.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; */ public Builder addValues( int index, com.daml.daml_lf_dev.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; */ 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; */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefValue values = 6; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefValue.Builder getValuesBuilder( int index) { return getValuesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefValue values = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.DefValue values = 6; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefValue.Builder addValuesBuilder() { return getValuesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefValue.getDefaultInstance()); } /** * repeated .daml_lf_1.DefValue values = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefValue.Builder addValuesBuilder( int index) { return getValuesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefValue.getDefaultInstance()); } /** * repeated .daml_lf_1.DefValue values = 6; */ public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefValue, com.daml.daml_lf_dev.DamlLf1.DefValue.Builder, com.daml.daml_lf_dev.DamlLf1.DefValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefValue, com.daml.daml_lf_dev.DamlLf1.DefValue.Builder, com.daml.daml_lf_dev.DamlLf1.DefValueOrBuilder>( values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } private java.util.List templates_ = java.util.Collections.emptyList(); private void ensureTemplatesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { templates_ = new java.util.ArrayList(templates_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder> templatesBuilder_; /** * repeated .daml_lf_1.DefTemplate templates = 7; */ 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; */ public int getTemplatesCount() { if (templatesBuilder_ == null) { return templates_.size(); } else { return templatesBuilder_.getCount(); } } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate getTemplates(int index) { if (templatesBuilder_ == null) { return templates_.get(index); } else { return templatesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ public Builder setTemplates( int index, com.daml.daml_lf_dev.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; */ public Builder setTemplates( int index, com.daml.daml_lf_dev.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; */ public Builder addTemplates(com.daml.daml_lf_dev.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; */ public Builder addTemplates( int index, com.daml.daml_lf_dev.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; */ public Builder addTemplates( com.daml.daml_lf_dev.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; */ public Builder addTemplates( int index, com.daml.daml_lf_dev.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; */ 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; */ public Builder clearTemplates() { if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { templatesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder getTemplatesBuilder( int index) { return getTemplatesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder getTemplatesOrBuilder( int index) { if (templatesBuilder_ == null) { return templates_.get(index); } else { return templatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder addTemplatesBuilder() { return getTemplatesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefTemplate.getDefaultInstance()); } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ public com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder addTemplatesBuilder( int index) { return getTemplatesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefTemplate.getDefaultInstance()); } /** * repeated .daml_lf_1.DefTemplate templates = 7; */ public java.util.List getTemplatesBuilderList() { return getTemplatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder> getTemplatesFieldBuilder() { if (templatesBuilder_ == null) { templatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefTemplate, com.daml.daml_lf_dev.DamlLf1.DefTemplate.Builder, com.daml.daml_lf_dev.DamlLf1.DefTemplateOrBuilder>( templates_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); templates_ = null; } return templatesBuilder_; } private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { exceptions_ = new java.util.ArrayList(exceptions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefException, com.daml.daml_lf_dev.DamlLf1.DefException.Builder, com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder> exceptionsBuilder_; /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public java.util.List getExceptionsList() { if (exceptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(exceptions_); } else { return exceptionsBuilder_.getMessageList(); } } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public int getExceptionsCount() { if (exceptionsBuilder_ == null) { return exceptions_.size(); } else { return exceptionsBuilder_.getCount(); } } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefException getExceptions(int index) { if (exceptionsBuilder_ == null) { return exceptions_.get(index); } else { return exceptionsBuilder_.getMessage(index); } } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder setExceptions( int index, com.daml.daml_lf_dev.DamlLf1.DefException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.set(index, value); onChanged(); } else { exceptionsBuilder_.setMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder setExceptions( int index, com.daml.daml_lf_dev.DamlLf1.DefException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.set(index, builderForValue.build()); onChanged(); } else { exceptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder addExceptions(com.daml.daml_lf_dev.DamlLf1.DefException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.add(value); onChanged(); } else { exceptionsBuilder_.addMessage(value); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder addExceptions( int index, com.daml.daml_lf_dev.DamlLf1.DefException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.add(index, value); onChanged(); } else { exceptionsBuilder_.addMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder addExceptions( com.daml.daml_lf_dev.DamlLf1.DefException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(builderForValue.build()); onChanged(); } else { exceptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder addExceptions( int index, com.daml.daml_lf_dev.DamlLf1.DefException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(index, builderForValue.build()); onChanged(); } else { exceptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder addAllExceptions( java.lang.Iterable values) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exceptions_); onChanged(); } else { exceptionsBuilder_.addAllMessages(values); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder clearExceptions() { if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { exceptionsBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public Builder removeExceptions(int index) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.remove(index); onChanged(); } else { exceptionsBuilder_.remove(index); } return this; } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefException.Builder getExceptionsBuilder( int index) { return getExceptionsFieldBuilder().getBuilder(index); } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder getExceptionsOrBuilder( int index) { if (exceptionsBuilder_ == null) { return exceptions_.get(index); } else { return exceptionsBuilder_.getMessageOrBuilder(index); } } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public java.util.List getExceptionsOrBuilderList() { if (exceptionsBuilder_ != null) { return exceptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exceptions_); } } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefException.Builder addExceptionsBuilder() { return getExceptionsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefException.getDefaultInstance()); } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public com.daml.daml_lf_dev.DamlLf1.DefException.Builder addExceptionsBuilder( int index) { return getExceptionsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefException.getDefaultInstance()); } /** *
       * *Available in versions >= 1.14*
       * 
* * repeated .daml_lf_1.DefException exceptions = 10; */ public java.util.List getExceptionsBuilderList() { return getExceptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefException, com.daml.daml_lf_dev.DamlLf1.DefException.Builder, com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder> getExceptionsFieldBuilder() { if (exceptionsBuilder_ == null) { exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefException, com.daml.daml_lf_dev.DamlLf1.DefException.Builder, com.daml.daml_lf_dev.DamlLf1.DefExceptionOrBuilder>( exceptions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); exceptions_ = null; } return exceptionsBuilder_; } private java.util.List interfaces_ = java.util.Collections.emptyList(); private void ensureInterfacesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { interfaces_ = new java.util.ArrayList(interfaces_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefInterface, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder, com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder> interfacesBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public java.util.List getInterfacesList() { if (interfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(interfaces_); } else { return interfacesBuilder_.getMessageList(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public int getInterfacesCount() { if (interfacesBuilder_ == null) { return interfaces_.size(); } else { return interfacesBuilder_.getCount(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface getInterfaces(int index) { if (interfacesBuilder_ == null) { return interfaces_.get(index); } else { return interfacesBuilder_.getMessage(index); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder setInterfaces( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.set(index, value); onChanged(); } else { interfacesBuilder_.setMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder setInterfaces( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.set(index, builderForValue.build()); onChanged(); } else { interfacesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder addInterfaces(com.daml.daml_lf_dev.DamlLf1.DefInterface value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.add(value); onChanged(); } else { interfacesBuilder_.addMessage(value); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder addInterfaces( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.add(index, value); onChanged(); } else { interfacesBuilder_.addMessage(index, value); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder addInterfaces( com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(builderForValue.build()); onChanged(); } else { interfacesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder addInterfaces( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(index, builderForValue.build()); onChanged(); } else { interfacesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder addAllInterfaces( java.lang.Iterable values) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, interfaces_); onChanged(); } else { interfacesBuilder_.addAllMessages(values); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder clearInterfaces() { if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { interfacesBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder removeInterfaces(int index) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.remove(index); onChanged(); } else { interfacesBuilder_.remove(index); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder getInterfacesBuilder( int index) { return getInterfacesFieldBuilder().getBuilder(index); } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder getInterfacesOrBuilder( int index) { if (interfacesBuilder_ == null) { return interfaces_.get(index); } else { return interfacesBuilder_.getMessageOrBuilder(index); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public java.util.List getInterfacesOrBuilderList() { if (interfacesBuilder_ != null) { return interfacesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(interfaces_); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder addInterfacesBuilder() { return getInterfacesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefInterface.getDefaultInstance()); } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder addInterfacesBuilder( int index) { return getInterfacesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefInterface.getDefaultInstance()); } /** *
       * *Available in versions >= 1.dev*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public java.util.List getInterfacesBuilderList() { return getInterfacesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefInterface, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder, com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder> getInterfacesFieldBuilder() { if (interfacesBuilder_ == null) { interfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefInterface, com.daml.daml_lf_dev.DamlLf1.DefInterface.Builder, com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder>( interfaces_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); interfaces_ = null; } return interfacesBuilder_; } @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.daml.daml_lf_dev.DamlLf1.Module DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Module(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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; * @return A list containing the segmentsInternedStr. */ java.util.List getSegmentsInternedStrList(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1; * @return The count of segmentsInternedStr. */ int getSegmentsInternedStrCount(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1; * @param index The index of the element to return. * @return The segmentsInternedStr at the given index. */ 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InternedDottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InternedDottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InternedDottedName.class, com.daml.daml_lf_dev.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; * @return A list containing the segmentsInternedStr. */ @java.lang.Override public java.util.List getSegmentsInternedStrList() { return segmentsInternedStr_; } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1; * @return The count of segmentsInternedStr. */ public int getSegmentsInternedStrCount() { return segmentsInternedStr_.size(); } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated int32 segments_interned_str = 1; * @param index The index of the element to return. * @return The segmentsInternedStr at the given index. */ 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.daml.daml_lf_dev.DamlLf1.InternedDottedName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.InternedDottedName other = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InternedDottedName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.InternedDottedName parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InternedDottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InternedDottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InternedDottedName.class, com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder.class); } // Construct using com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InternedDottedName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InternedDottedName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.InternedDottedName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InternedDottedName build() { com.daml.daml_lf_dev.DamlLf1.InternedDottedName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InternedDottedName buildPartial() { com.daml.daml_lf_dev.DamlLf1.InternedDottedName result = new com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.InternedDottedName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.InternedDottedName other) { if (other == com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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; * @return A list containing the 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; * @return The count of segmentsInternedStr. */ public int getSegmentsInternedStrCount() { return segmentsInternedStr_.size(); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1; * @param index The index of the element to return. * @return The segmentsInternedStr at the given index. */ public int getSegmentsInternedStr(int index) { return segmentsInternedStr_.getInt(index); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1; * @param index The index to set the value at. * @param value The segmentsInternedStr to set. * @return This builder for chaining. */ 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; * @param value The segmentsInternedStr to add. * @return This builder for chaining. */ public Builder addSegmentsInternedStr(int value) { ensureSegmentsInternedStrIsMutable(); segmentsInternedStr_.addInt(value); onChanged(); return this; } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated int32 segments_interned_str = 1; * @param values The segmentsInternedStr to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.InternedDottedName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.InternedDottedName(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.PackageMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * *Available in versions >= 1.8*
     * 
* * int32 name_interned_str = 1; * @return The nameInternedStr. */ int getNameInternedStr(); /** *
     * *Available in versions >= 1.8*
     * 
* * int32 version_interned_str = 2; * @return The versionInternedStr. */ int getVersionInternedStr(); } /** * Protobuf type {@code daml_lf_1.PackageMetadata} */ public static final class PackageMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.PackageMetadata) PackageMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use PackageMetadata.newBuilder() to construct. private PackageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PackageMetadata() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PackageMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PackageMetadata( 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: { nameInternedStr_ = input.readInt32(); break; } case 16: { versionInternedStr_ = 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.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.PackageMetadata.class, com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder.class); } public static final int NAME_INTERNED_STR_FIELD_NUMBER = 1; private int nameInternedStr_; /** *
     * *Available in versions >= 1.8*
     * 
* * int32 name_interned_str = 1; * @return The nameInternedStr. */ @java.lang.Override public int getNameInternedStr() { return nameInternedStr_; } public static final int VERSION_INTERNED_STR_FIELD_NUMBER = 2; private int versionInternedStr_; /** *
     * *Available in versions >= 1.8*
     * 
* * int32 version_interned_str = 2; * @return The versionInternedStr. */ @java.lang.Override public int getVersionInternedStr() { return versionInternedStr_; } 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 (nameInternedStr_ != 0) { output.writeInt32(1, nameInternedStr_); } if (versionInternedStr_ != 0) { output.writeInt32(2, versionInternedStr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nameInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, nameInternedStr_); } if (versionInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, versionInternedStr_); } 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.daml.daml_lf_dev.DamlLf1.PackageMetadata)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.PackageMetadata other = (com.daml.daml_lf_dev.DamlLf1.PackageMetadata) obj; if (getNameInternedStr() != other.getNameInternedStr()) return false; if (getVersionInternedStr() != other.getVersionInternedStr()) 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) + NAME_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getNameInternedStr(); hash = (37 * hash) + VERSION_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVersionInternedStr(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.daml.daml_lf_dev.DamlLf1.PackageMetadata 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.PackageMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.PackageMetadata) com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.PackageMetadata.class, com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.PackageMetadata.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(); nameInternedStr_ = 0; versionInternedStr_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_PackageMetadata_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageMetadata getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageMetadata build() { com.daml.daml_lf_dev.DamlLf1.PackageMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageMetadata buildPartial() { com.daml.daml_lf_dev.DamlLf1.PackageMetadata result = new com.daml.daml_lf_dev.DamlLf1.PackageMetadata(this); result.nameInternedStr_ = nameInternedStr_; result.versionInternedStr_ = versionInternedStr_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.daml.daml_lf_dev.DamlLf1.PackageMetadata) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.PackageMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.PackageMetadata other) { if (other == com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance()) return this; if (other.getNameInternedStr() != 0) { setNameInternedStr(other.getNameInternedStr()); } if (other.getVersionInternedStr() != 0) { setVersionInternedStr(other.getVersionInternedStr()); } 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.daml.daml_lf_dev.DamlLf1.PackageMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.DamlLf1.PackageMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int nameInternedStr_ ; /** *
       * *Available in versions >= 1.8*
       * 
* * int32 name_interned_str = 1; * @return The nameInternedStr. */ @java.lang.Override public int getNameInternedStr() { return nameInternedStr_; } /** *
       * *Available in versions >= 1.8*
       * 
* * int32 name_interned_str = 1; * @param value The nameInternedStr to set. * @return This builder for chaining. */ public Builder setNameInternedStr(int value) { nameInternedStr_ = value; onChanged(); return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * int32 name_interned_str = 1; * @return This builder for chaining. */ public Builder clearNameInternedStr() { nameInternedStr_ = 0; onChanged(); return this; } private int versionInternedStr_ ; /** *
       * *Available in versions >= 1.8*
       * 
* * int32 version_interned_str = 2; * @return The versionInternedStr. */ @java.lang.Override public int getVersionInternedStr() { return versionInternedStr_; } /** *
       * *Available in versions >= 1.8*
       * 
* * int32 version_interned_str = 2; * @param value The versionInternedStr to set. * @return This builder for chaining. */ public Builder setVersionInternedStr(int value) { versionInternedStr_ = value; onChanged(); return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * int32 version_interned_str = 2; * @return This builder for chaining. */ public Builder clearVersionInternedStr() { versionInternedStr_ = 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.PackageMetadata) } // @@protoc_insertion_point(class_scope:daml_lf_1.PackageMetadata) private static final com.daml.daml_lf_dev.DamlLf1.PackageMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.PackageMetadata(); } public static com.daml.daml_lf_dev.DamlLf1.PackageMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackageMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PackageMetadata(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.daml.daml_lf_dev.DamlLf1.PackageMetadata 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; */ java.util.List getModulesList(); /** * repeated .daml_lf_1.Module modules = 1; */ com.daml.daml_lf_dev.DamlLf1.Module getModules(int index); /** * repeated .daml_lf_1.Module modules = 1; */ int getModulesCount(); /** * repeated .daml_lf_1.Module modules = 1; */ java.util.List getModulesOrBuilderList(); /** * repeated .daml_lf_1.Module modules = 1; */ com.daml.daml_lf_dev.DamlLf1.ModuleOrBuilder getModulesOrBuilder( int index); /** * repeated string interned_strings = 2; * @return A list containing the internedStrings. */ java.util.List getInternedStringsList(); /** * repeated string interned_strings = 2; * @return The count of internedStrings. */ int getInternedStringsCount(); /** * repeated string interned_strings = 2; * @param index The index of the element to return. * @return The internedStrings at the given index. */ java.lang.String getInternedStrings(int index); /** * repeated string interned_strings = 2; * @param index The index of the value to return. * @return The bytes of the internedStrings at the given index. */ com.google.protobuf.ByteString getInternedStringsBytes(int index); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ java.util.List getInternedDottedNamesList(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ com.daml.daml_lf_dev.DamlLf1.InternedDottedName getInternedDottedNames(int index); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ int getInternedDottedNamesCount(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ java.util.List getInternedDottedNamesOrBuilderList(); /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ com.daml.daml_lf_dev.DamlLf1.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index); /** *
     * *Available and required in versions >= 1.8*
     * 
* * .daml_lf_1.PackageMetadata metadata = 4; * @return Whether the metadata field is set. */ boolean hasMetadata(); /** *
     * *Available and required in versions >= 1.8*
     * 
* * .daml_lf_1.PackageMetadata metadata = 4; * @return The metadata. */ com.daml.daml_lf_dev.DamlLf1.PackageMetadata getMetadata(); /** *
     * *Available and required in versions >= 1.8*
     * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder getMetadataOrBuilder(); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ java.util.List getInternedTypesList(); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ com.daml.daml_lf_dev.DamlLf1.Type getInternedTypes(int index); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ int getInternedTypesCount(); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ java.util.List getInternedTypesOrBuilderList(); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getInternedTypesOrBuilder( 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(); internedTypes_ = 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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.InternedDottedName.parser(), extensionRegistry)); break; } case 34: { com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.daml.daml_lf_dev.DamlLf1.PackageMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { internedTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } internedTypes_.add( input.readMessage(com.daml.daml_lf_dev.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)) { 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_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { internedTypes_ = java.util.Collections.unmodifiableList(internedTypes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Package.class, com.daml.daml_lf_dev.DamlLf1.Package.Builder.class); } public static final int MODULES_FIELD_NUMBER = 1; private java.util.List modules_; /** * repeated .daml_lf_1.Module modules = 1; */ @java.lang.Override public java.util.List getModulesList() { return modules_; } /** * repeated .daml_lf_1.Module modules = 1; */ @java.lang.Override public java.util.List getModulesOrBuilderList() { return modules_; } /** * repeated .daml_lf_1.Module modules = 1; */ @java.lang.Override public int getModulesCount() { return modules_.size(); } /** * repeated .daml_lf_1.Module modules = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Module getModules(int index) { return modules_.get(index); } /** * repeated .daml_lf_1.Module modules = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ModuleOrBuilder getModulesOrBuilder( int index) { return modules_.get(index); } public static final int INTERNED_STRINGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList internedStrings_; /** * repeated string interned_strings = 2; * @return A list containing the internedStrings. */ public com.google.protobuf.ProtocolStringList getInternedStringsList() { return internedStrings_; } /** * repeated string interned_strings = 2; * @return The count of internedStrings. */ public int getInternedStringsCount() { return internedStrings_.size(); } /** * repeated string interned_strings = 2; * @param index The index of the element to return. * @return The internedStrings at the given index. */ public java.lang.String getInternedStrings(int index) { return internedStrings_.get(index); } /** * repeated string interned_strings = 2; * @param index The index of the value to return. * @return The bytes of the internedStrings at the given index. */ 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; */ @java.lang.Override public java.util.List getInternedDottedNamesList() { return internedDottedNames_; } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public java.util.List getInternedDottedNamesOrBuilderList() { return internedDottedNames_; } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public int getInternedDottedNamesCount() { return internedDottedNames_.size(); } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InternedDottedName getInternedDottedNames(int index) { return internedDottedNames_.get(index); } /** *
     * *Available in versions >= 1.7*
     * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index) { return internedDottedNames_.get(index); } public static final int METADATA_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.PackageMetadata metadata_; /** *
     * *Available and required in versions >= 1.8*
     * 
* * .daml_lf_1.PackageMetadata metadata = 4; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return metadata_ != null; } /** *
     * *Available and required in versions >= 1.8*
     * 
* * .daml_lf_1.PackageMetadata metadata = 4; * @return The metadata. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageMetadata getMetadata() { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance() : metadata_; } /** *
     * *Available and required in versions >= 1.8*
     * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int INTERNED_TYPES_FIELD_NUMBER = 5; private java.util.List internedTypes_; /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ @java.lang.Override public java.util.List getInternedTypesList() { return internedTypes_; } /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ @java.lang.Override public java.util.List getInternedTypesOrBuilderList() { return internedTypes_; } /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ @java.lang.Override public int getInternedTypesCount() { return internedTypes_.size(); } /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getInternedTypes(int index) { return internedTypes_.get(index); } /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_1.Type interned_types = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getInternedTypesOrBuilder( int index) { return internedTypes_.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)); } if (metadata_ != null) { output.writeMessage(4, getMetadata()); } for (int i = 0; i < internedTypes_.size(); i++) { output.writeMessage(5, internedTypes_.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)); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMetadata()); } for (int i = 0; i < internedTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, internedTypes_.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.daml.daml_lf_dev.DamlLf1.Package)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Package other = (com.daml.daml_lf_dev.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 (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (!getInternedTypesList() .equals(other.getInternedTypesList())) 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(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getInternedTypesCount() > 0) { hash = (37 * hash) + INTERNED_TYPES_FIELD_NUMBER; hash = (53 * hash) + getInternedTypesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Package parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Package parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Package parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Package parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.daml.daml_lf_dev.DamlLf1.Package parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Package parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Package parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.PackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Package.class, com.daml.daml_lf_dev.DamlLf1.Package.Builder.class); } // Construct using com.daml.daml_lf_dev.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(); getInternedTypesFieldBuilder(); } } @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(); } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } if (internedTypesBuilder_ == null) { internedTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { internedTypesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Package_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Package getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Package.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Package build() { com.daml.daml_lf_dev.DamlLf1.Package result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Package buildPartial() { com.daml.daml_lf_dev.DamlLf1.Package result = new com.daml.daml_lf_dev.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(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (internedTypesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { internedTypes_ = java.util.Collections.unmodifiableList(internedTypes_); bitField0_ = (bitField0_ & ~0x00000008); } result.internedTypes_ = internedTypes_; } else { result.internedTypes_ = internedTypesBuilder_.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.daml.daml_lf_dev.DamlLf1.Package) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Package)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Package other) { if (other == com.daml.daml_lf_dev.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_); } } } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (internedTypesBuilder_ == null) { if (!other.internedTypes_.isEmpty()) { if (internedTypes_.isEmpty()) { internedTypes_ = other.internedTypes_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureInternedTypesIsMutable(); internedTypes_.addAll(other.internedTypes_); } onChanged(); } } else { if (!other.internedTypes_.isEmpty()) { if (internedTypesBuilder_.isEmpty()) { internedTypesBuilder_.dispose(); internedTypesBuilder_ = null; internedTypes_ = other.internedTypes_; bitField0_ = (bitField0_ & ~0x00000008); internedTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInternedTypesFieldBuilder() : null; } else { internedTypesBuilder_.addAllMessages(other.internedTypes_); } } } 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.daml.daml_lf_dev.DamlLf1.Package parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.daml.daml_lf_dev.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.daml.daml_lf_dev.DamlLf1.Module, com.daml.daml_lf_dev.DamlLf1.Module.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleOrBuilder> modulesBuilder_; /** * repeated .daml_lf_1.Module modules = 1; */ 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; */ public int getModulesCount() { if (modulesBuilder_ == null) { return modules_.size(); } else { return modulesBuilder_.getCount(); } } /** * repeated .daml_lf_1.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf1.Module getModules(int index) { if (modulesBuilder_ == null) { return modules_.get(index); } else { return modulesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.Module modules = 1; */ public Builder setModules( int index, com.daml.daml_lf_dev.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; */ public Builder setModules( int index, com.daml.daml_lf_dev.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; */ public Builder addModules(com.daml.daml_lf_dev.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; */ public Builder addModules( int index, com.daml.daml_lf_dev.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; */ public Builder addModules( com.daml.daml_lf_dev.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; */ public Builder addModules( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Module.Builder getModulesBuilder( int index) { return getModulesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleOrBuilder getModulesOrBuilder( int index) { if (modulesBuilder_ == null) { return modules_.get(index); } else { return modulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.Module modules = 1; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.Module.Builder addModulesBuilder() { return getModulesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Module.getDefaultInstance()); } /** * repeated .daml_lf_1.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf1.Module.Builder addModulesBuilder( int index) { return getModulesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Module.getDefaultInstance()); } /** * repeated .daml_lf_1.Module modules = 1; */ public java.util.List getModulesBuilderList() { return getModulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Module, com.daml.daml_lf_dev.DamlLf1.Module.Builder, com.daml.daml_lf_dev.DamlLf1.ModuleOrBuilder> getModulesFieldBuilder() { if (modulesBuilder_ == null) { modulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Module, com.daml.daml_lf_dev.DamlLf1.Module.Builder, com.daml.daml_lf_dev.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; } } /** * repeated string interned_strings = 2; * @return A list containing the internedStrings. */ public com.google.protobuf.ProtocolStringList getInternedStringsList() { return internedStrings_.getUnmodifiableView(); } /** * repeated string interned_strings = 2; * @return The count of internedStrings. */ public int getInternedStringsCount() { return internedStrings_.size(); } /** * repeated string interned_strings = 2; * @param index The index of the element to return. * @return The internedStrings at the given index. */ public java.lang.String getInternedStrings(int index) { return internedStrings_.get(index); } /** * repeated string interned_strings = 2; * @param index The index of the value to return. * @return The bytes of the internedStrings at the given index. */ public com.google.protobuf.ByteString getInternedStringsBytes(int index) { return internedStrings_.getByteString(index); } /** * repeated string interned_strings = 2; * @param index The index to set the value at. * @param value The internedStrings to set. * @return This builder for chaining. */ public Builder setInternedStrings( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInternedStringsIsMutable(); internedStrings_.set(index, value); onChanged(); return this; } /** * repeated string interned_strings = 2; * @param value The internedStrings to add. * @return This builder for chaining. */ public Builder addInternedStrings( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInternedStringsIsMutable(); internedStrings_.add(value); onChanged(); return this; } /** * repeated string interned_strings = 2; * @param values The internedStrings to add. * @return This builder for chaining. */ public Builder addAllInternedStrings( java.lang.Iterable values) { ensureInternedStringsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, internedStrings_); onChanged(); return this; } /** * repeated string interned_strings = 2; * @return This builder for chaining. */ public Builder clearInternedStrings() { internedStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string interned_strings = 2; * @param value The bytes of the internedStrings to add. * @return This builder for chaining. */ 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.daml.daml_lf_dev.DamlLf1.InternedDottedName, com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder, com.daml.daml_lf_dev.DamlLf1.InternedDottedNameOrBuilder> internedDottedNamesBuilder_; /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ 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; */ 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; */ public com.daml.daml_lf_dev.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; */ public Builder setInternedDottedNames( int index, com.daml.daml_lf_dev.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; */ public Builder setInternedDottedNames( int index, com.daml.daml_lf_dev.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; */ public Builder addInternedDottedNames(com.daml.daml_lf_dev.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; */ public Builder addInternedDottedNames( int index, com.daml.daml_lf_dev.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; */ public Builder addInternedDottedNames( com.daml.daml_lf_dev.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; */ public Builder addInternedDottedNames( int index, com.daml.daml_lf_dev.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; */ 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; */ 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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder getInternedDottedNamesBuilder( int index) { return getInternedDottedNamesFieldBuilder().getBuilder(index); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.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; */ 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; */ public com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder addInternedDottedNamesBuilder() { return getInternedDottedNamesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.InternedDottedName.getDefaultInstance()); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder addInternedDottedNamesBuilder( int index) { return getInternedDottedNamesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.InternedDottedName.getDefaultInstance()); } /** *
       * *Available in versions >= 1.7*
       * 
* * repeated .daml_lf_1.InternedDottedName interned_dotted_names = 3; */ public java.util.List getInternedDottedNamesBuilderList() { return getInternedDottedNamesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InternedDottedName, com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder, com.daml.daml_lf_dev.DamlLf1.InternedDottedNameOrBuilder> getInternedDottedNamesFieldBuilder() { if (internedDottedNamesBuilder_ == null) { internedDottedNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InternedDottedName, com.daml.daml_lf_dev.DamlLf1.InternedDottedName.Builder, com.daml.daml_lf_dev.DamlLf1.InternedDottedNameOrBuilder>( internedDottedNames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); internedDottedNames_ = null; } return internedDottedNamesBuilder_; } private com.daml.daml_lf_dev.DamlLf1.PackageMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PackageMetadata, com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder, com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder> metadataBuilder_; /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; * @return The metadata. */ public com.daml.daml_lf_dev.DamlLf1.PackageMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public Builder setMetadata(com.daml.daml_lf_dev.DamlLf1.PackageMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public Builder setMetadata( com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public Builder mergeMetadata(com.daml.daml_lf_dev.DamlLf1.PackageMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.daml.daml_lf_dev.DamlLf1.PackageMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance() : metadata_; } } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PackageMetadata, com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder, com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.PackageMetadata, com.daml.daml_lf_dev.DamlLf1.PackageMetadata.Builder, com.daml.daml_lf_dev.DamlLf1.PackageMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List internedTypes_ = java.util.Collections.emptyList(); private void ensureInternedTypesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { internedTypes_ = new java.util.ArrayList(internedTypes_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> internedTypesBuilder_; /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public java.util.List getInternedTypesList() { if (internedTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(internedTypes_); } else { return internedTypesBuilder_.getMessageList(); } } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public int getInternedTypesCount() { if (internedTypesBuilder_ == null) { return internedTypes_.size(); } else { return internedTypesBuilder_.getCount(); } } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf1.Type getInternedTypes(int index) { if (internedTypesBuilder_ == null) { return internedTypes_.get(index); } else { return internedTypesBuilder_.getMessage(index); } } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder setInternedTypes( int index, com.daml.daml_lf_dev.DamlLf1.Type value) { if (internedTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedTypesIsMutable(); internedTypes_.set(index, value); onChanged(); } else { internedTypesBuilder_.setMessage(index, value); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder setInternedTypes( int index, com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (internedTypesBuilder_ == null) { ensureInternedTypesIsMutable(); internedTypes_.set(index, builderForValue.build()); onChanged(); } else { internedTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder addInternedTypes(com.daml.daml_lf_dev.DamlLf1.Type value) { if (internedTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedTypesIsMutable(); internedTypes_.add(value); onChanged(); } else { internedTypesBuilder_.addMessage(value); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder addInternedTypes( int index, com.daml.daml_lf_dev.DamlLf1.Type value) { if (internedTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedTypesIsMutable(); internedTypes_.add(index, value); onChanged(); } else { internedTypesBuilder_.addMessage(index, value); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder addInternedTypes( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (internedTypesBuilder_ == null) { ensureInternedTypesIsMutable(); internedTypes_.add(builderForValue.build()); onChanged(); } else { internedTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder addInternedTypes( int index, com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (internedTypesBuilder_ == null) { ensureInternedTypesIsMutable(); internedTypes_.add(index, builderForValue.build()); onChanged(); } else { internedTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder addAllInternedTypes( java.lang.Iterable values) { if (internedTypesBuilder_ == null) { ensureInternedTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, internedTypes_); onChanged(); } else { internedTypesBuilder_.addAllMessages(values); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder clearInternedTypes() { if (internedTypesBuilder_ == null) { internedTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { internedTypesBuilder_.clear(); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public Builder removeInternedTypes(int index) { if (internedTypesBuilder_ == null) { ensureInternedTypesIsMutable(); internedTypes_.remove(index); onChanged(); } else { internedTypesBuilder_.remove(index); } return this; } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getInternedTypesBuilder( int index) { return getInternedTypesFieldBuilder().getBuilder(index); } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getInternedTypesOrBuilder( int index) { if (internedTypesBuilder_ == null) { return internedTypes_.get(index); } else { return internedTypesBuilder_.getMessageOrBuilder(index); } } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public java.util.List getInternedTypesOrBuilderList() { if (internedTypesBuilder_ != null) { return internedTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(internedTypes_); } } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addInternedTypesBuilder() { return getInternedTypesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder addInternedTypesBuilder( int index) { return getInternedTypesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()); } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_1.Type interned_types = 5; */ public java.util.List getInternedTypesBuilderList() { return getInternedTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder> getInternedTypesFieldBuilder() { if (internedTypesBuilder_ == null) { internedTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Type, com.daml.daml_lf_dev.DamlLf1.Type.Builder, com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder>( internedTypes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); internedTypes_ = null; } return internedTypesBuilder_; } @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.daml.daml_lf_dev.DamlLf1.Package DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Package(); } public static com.daml.daml_lf_dev.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.daml.daml_lf_dev.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_TypeSynName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_TypeSynName_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_Syn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Syn_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_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_Struct_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Type_Struct_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_StructCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_StructCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_StructProj_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_StructProj_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_StructUpd_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_StructUpd_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_Expr_ToAnyException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ToAnyException_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_FromAnyException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_FromAnyException_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_Throw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_Throw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_ToInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ToInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_FromInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_FromInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_UnsafeFromInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_UnsafeFromInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_ToRequiredInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ToRequiredInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_FromRequiredInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_FromRequiredInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_CallInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_CallInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_SignatoryInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_ObserverInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ObserverInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_Experimental_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_Experimental_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_CreateInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_CreateInterface_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_ExerciseInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_ExerciseInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_ExerciseByKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_ExerciseByKey_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_FetchInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_FetchInterface_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_Update_TryCatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_TryCatch_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_DefTemplate_ImplementsMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefTemplate_ImplementsMethod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefTemplate_Implements_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefTemplate_Implements_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_InterfaceMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_InterfaceMethod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_DefException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefException_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_DefTypeSyn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefTypeSyn_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_PackageMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_PackageMetadata_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/daml/daml_lf_dev/daml_lf_1.proto\022\t" + "daml_lf_1\"\006\n\004Unit\"q\n\nPackageRef\022\037\n\004self\030" + "\001 \001(\0132\017.daml_lf_1.UnitH\000\022\030\n\016package_id_s" + "tr\030\002 \001(\tH\000\022!\n\027package_id_interned_str\030\003 " + "\001(\005H\000B\005\n\003Sum\"\036\n\nDottedName\022\020\n\010segments\030\001" + " \003(\t\"\240\001\n\tModuleRef\022*\n\013package_ref\030\001 \001(\0132" + "\025.daml_lf_1.PackageRef\0222\n\021module_name_dn" + "ame\030\002 \001(\0132\025.daml_lf_1.DottedNameH\000\022$\n\032mo" + "dule_name_interned_dname\030\003 \001(\005H\000B\r\n\013modu" + "le_name\"\207\001\n\013TypeConName\022$\n\006module\030\001 \001(\0132" + "\024.daml_lf_1.ModuleRef\022+\n\nname_dname\030\002 \001(" + "\0132\025.daml_lf_1.DottedNameH\000\022\035\n\023name_inter" + "ned_dname\030\003 \001(\005H\000B\006\n\004name\"\207\001\n\013TypeSynNam" + "e\022$\n\006module\030\001 \001(\0132\024.daml_lf_1.ModuleRef\022" + "+\n\nname_dname\030\002 \001(\0132\025.daml_lf_1.DottedNa" + "meH\000\022\035\n\023name_interned_dname\030\003 \001(\005H\000B\006\n\004n" + "ame\"`\n\007ValName\022$\n\006module\030\001 \001(\0132\024.daml_lf" + "_1.ModuleRef\022\022\n\nname_dname\030\002 \003(\t\022\033\n\023name" + "_interned_dname\030\003 \001(\005\"j\n\rFieldWithType\022\023" + "\n\tfield_str\030\001 \001(\tH\000\022\034\n\022field_interned_st" + "r\030\003 \001(\005H\000\022\035\n\004type\030\002 \001(\0132\017.daml_lf_1.Type" + "B\007\n\005field\"b\n\013VarWithType\022\021\n\007var_str\030\001 \001(" + "\tH\000\022\032\n\020var_interned_str\030\003 \001(\005H\000\022\035\n\004type\030" + "\002 \001(\0132\017.daml_lf_1.TypeB\005\n\003var\"f\n\017TypeVar" + "WithKind\022\021\n\007var_str\030\001 \001(\tH\000\022\032\n\020var_inter" + "ned_str\030\003 \001(\005H\000\022\035\n\004kind\030\002 \001(\0132\017.daml_lf_" + "1.KindB\005\n\003var\"j\n\rFieldWithExpr\022\023\n\tfield_" + "str\030\001 \001(\tH\000\022\034\n\022field_interned_str\030\003 \001(\005H" + "\000\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.ExprB\007\n\005fiel" + "d\"Q\n\007Binding\022&\n\006binder\030\001 \001(\0132\026.daml_lf_1" + ".VarWithType\022\036\n\005bound\030\002 \001(\0132\017.daml_lf_1." + "Expr\"\301\001\n\004Kind\022\037\n\004star\030\001 \001(\0132\017.daml_lf_1." + "UnitH\000\022&\n\005arrow\030\002 \001(\0132\025.daml_lf_1.Kind.A" + "rrowH\000\022\036\n\003nat\030\003 \001(\0132\017.daml_lf_1.UnitH\000\032I" + "\n\005Arrow\022\037\n\006params\030\001 \003(\0132\017.daml_lf_1.Kind" + "\022\037\n\006result\030\002 \001(\0132\017.daml_lf_1.KindB\005\n\003Sum" + "\"\373\005\n\004Type\022\"\n\003var\030\001 \001(\0132\023.daml_lf_1.Type." + "VarH\000\022\"\n\003con\030\002 \001(\0132\023.daml_lf_1.Type.ConH" + "\000\022$\n\004prim\030\003 \001(\0132\024.daml_lf_1.Type.PrimH\000\022" + "(\n\006forall\030\005 \001(\0132\026.daml_lf_1.Type.ForallH" + "\000\022(\n\006struct\030\007 \001(\0132\026.daml_lf_1.Type.Struc" + "tH\000\022\r\n\003nat\030\013 \001(\022H\000\022\"\n\003syn\030\014 \001(\0132\023.daml_l" + "f_1.Type.SynH\000\022\022\n\010interned\030\r \001(\005H\000\032Z\n\003Va" + "r\022\021\n\007var_str\030\001 \001(\tH\000\022\032\n\020var_interned_str" + "\030\003 \001(\005H\000\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.TypeB" + "\005\n\003var\032K\n\003Con\022%\n\005tycon\030\001 \001(\0132\026.daml_lf_1" + ".TypeConName\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.T" + "ype\032K\n\003Syn\022%\n\005tysyn\030\001 \001(\0132\026.daml_lf_1.Ty" + "peSynName\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.Type" + "\032H\n\004Prim\022!\n\004prim\030\001 \001(\0162\023.daml_lf_1.PrimT" + "ype\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.Type\032Q\n\006Fo" + "rall\022(\n\004vars\030\001 \003(\0132\032.daml_lf_1.TypeVarWi" + "thKind\022\035\n\004body\030\002 \001(\0132\017.daml_lf_1.Type\0322\n" + "\006Struct\022(\n\006fields\030\001 \003(\0132\030.daml_lf_1.Fiel" + "dWithTypeB\005\n\003SumJ\004\010\004\020\005J\004\010\006\020\007J\004\010\010\020\tJ\004\010\t\020\n" + "J\004\010\n\020\013\"\235\003\n\007PrimLit\022\017\n\005int64\030\001 \001(\022H\000\022\025\n\013d" + "ecimal_str\030\002 \001(\tH\000\022\036\n\024numeric_interned_s" + "tr\030\n \001(\005H\000\022\022\n\010text_str\030\004 \001(\tH\000\022\033\n\021text_i" + "nterned_str\030\013 \001(\005H\000\022\023\n\ttimestamp\030\005 \001(\020H\000" + "\022\023\n\tparty_str\030\007 \001(\tH\000\022\034\n\022party_interned_" + "str\030\014 \001(\005H\000\022\016\n\004date\030\010 \001(\005H\000\0228\n\rrounding_" + "mode\030\r \001(\0162\037.daml_lf_1.PrimLit.RoundingM" + "odeH\000\"t\n\014RoundingMode\022\006\n\002UP\020\000\022\010\n\004DOWN\020\001\022" + "\013\n\007CEILING\020\002\022\t\n\005FLOOR\020\003\022\013\n\007HALF_UP\020\004\022\r\n\t" + "HALF_DOWN\020\005\022\r\n\tHALF_EVEN\020\006\022\017\n\013UNNECESSAR" + "Y\020\007B\005\n\003SumJ\004\010\003\020\004J\004\010\006\020\007\"\255\001\n\010Location\022$\n\006m" + "odule\030\001 \001(\0132\024.daml_lf_1.ModuleRef\022(\n\005ran" + "ge\030\002 \001(\0132\031.daml_lf_1.Location.Range\032Q\n\005R" + "ange\022\022\n\nstart_line\030\001 \001(\005\022\021\n\tstart_col\030\002 " + "\001(\005\022\020\n\010end_line\030\003 \001(\005\022\017\n\007end_col\030\004 \001(\005\"\266" + ",\n\004Expr\022%\n\010location\030\031 \001(\0132\023.daml_lf_1.Lo" + "cation\022\021\n\007var_str\030\001 \001(\tH\000\022\032\n\020var_interne" + "d_str\030\035 \001(\005H\000\022!\n\003val\030\002 \001(\0132\022.daml_lf_1.V" + "alNameH\000\022-\n\007builtin\030\003 \001(\0162\032.daml_lf_1.Bu" + "iltinFunctionH\000\022&\n\010prim_con\030\004 \001(\0162\022.daml" + "_lf_1.PrimConH\000\022&\n\010prim_lit\030\005 \001(\0132\022.daml" + "_lf_1.PrimLitH\000\022)\n\007rec_con\030\006 \001(\0132\026.daml_" + "lf_1.Expr.RecConH\000\022+\n\010rec_proj\030\007 \001(\0132\027.d" + "aml_lf_1.Expr.RecProjH\000\022)\n\007rec_upd\030\026 \001(\013" + "2\026.daml_lf_1.Expr.RecUpdH\000\0221\n\013variant_co" + "n\030\010 \001(\0132\032.daml_lf_1.Expr.VariantConH\000\022+\n" + "\010enum_con\030\034 \001(\0132\027.daml_lf_1.Expr.EnumCon" + "H\000\022/\n\nstruct_con\030\t \001(\0132\031.daml_lf_1.Expr." + "StructConH\000\0221\n\013struct_proj\030\n \001(\0132\032.daml_" + "lf_1.Expr.StructProjH\000\022/\n\nstruct_upd\030\027 \001" + "(\0132\031.daml_lf_1.Expr.StructUpdH\000\022\"\n\003app\030\013" + " \001(\0132\023.daml_lf_1.Expr.AppH\000\022\'\n\006ty_app\030\014 " + "\001(\0132\025.daml_lf_1.Expr.TyAppH\000\022\"\n\003abs\030\r \001(" + "\0132\023.daml_lf_1.Expr.AbsH\000\022\'\n\006ty_abs\030\016 \001(\013" + "2\025.daml_lf_1.Expr.TyAbsH\000\022\037\n\004case\030\017 \001(\0132" + "\017.daml_lf_1.CaseH\000\022\037\n\003let\030\020 \001(\0132\020.daml_l" + "f_1.BlockH\000\022\"\n\003nil\030\021 \001(\0132\023.daml_lf_1.Exp" + "r.NilH\000\022$\n\004cons\030\022 \001(\0132\024.daml_lf_1.Expr.C" + "onsH\000\022#\n\006update\030\024 \001(\0132\021.daml_lf_1.Update" + "H\000\022\'\n\010scenario\030\025 \001(\0132\023.daml_lf_1.Scenari" + "oH\000\0225\n\roptional_none\030\032 \001(\0132\034.daml_lf_1.E" + "xpr.OptionalNoneH\000\0225\n\roptional_some\030\033 \001(" + "\0132\034.daml_lf_1.Expr.OptionalSomeH\000\022\'\n\006to_" + "any\030\036 \001(\0132\025.daml_lf_1.Expr.ToAnyH\000\022+\n\010fr" + "om_any\030\037 \001(\0132\027.daml_lf_1.Expr.FromAnyH\000\022" + "#\n\010type_rep\030 \001(\0132\017.daml_lf_1.TypeH\000\022:\n\020" + "to_any_exception\030! \001(\0132\036.daml_lf_1.Expr." + "ToAnyExceptionH\000\022>\n\022from_any_exception\030\"" + " \001(\0132 .daml_lf_1.Expr.FromAnyExceptionH\000" + "\022&\n\005throw\030# \001(\0132\025.daml_lf_1.Expr.ThrowH\000" + "\0223\n\014to_interface\030$ \001(\0132\033.daml_lf_1.Expr." + "ToInterfaceH\000\0227\n\016from_interface\030% \001(\0132\035." + "daml_lf_1.Expr.FromInterfaceH\000\0227\n\016call_i" + "nterface\030& \001(\0132\035.daml_lf_1.Expr.CallInte" + "rfaceH\000\022D\n\025to_required_interface\030\' \001(\0132#" + ".daml_lf_1.Expr.ToRequiredInterfaceH\000\022H\n" + "\027from_required_interface\030( \001(\0132%.daml_lf" + "_1.Expr.FromRequiredInterfaceH\000\022O\n\033inter" + "face_template_type_rep\030) \001(\0132(.daml_lf_1" + ".Expr.InterfaceTemplateTypeRepH\000\022A\n\023sign" + "atory_interface\030* \001(\0132\".daml_lf_1.Expr.S" + "ignatoryInterfaceH\000\022?\n\022observer_interfac" + "e\030+ \001(\0132!.daml_lf_1.Expr.ObserverInterfa" + "ceH\000\022D\n\025unsafe_from_interface\030, \001(\0132#.da" + "ml_lf_1.Expr.UnsafeFromInterfaceH\000\022U\n\036un" + "safe_from_required_interface\030- \001(\0132+.dam" + "l_lf_1.Expr.UnsafeFromRequiredInterfaceH" + "\000\0225\n\014experimental\030\217N \001(\0132\034.daml_lf_1.Exp" + "r.ExperimentalH\000\032V\n\006RecCon\022\"\n\005tycon\030\001 \001(" + "\0132\023.daml_lf_1.Type.Con\022(\n\006fields\030\002 \003(\0132\030" + ".daml_lf_1.FieldWithExpr\032\212\001\n\007RecProj\022\"\n\005" + "tycon\030\001 \001(\0132\023.daml_lf_1.Type.Con\022\023\n\tfiel" + "d_str\030\002 \001(\tH\000\022\034\n\022field_interned_str\030\004 \001(" + "\005H\000\022\037\n\006record\030\003 \001(\0132\017.daml_lf_1.ExprB\007\n\005" + "field\032\252\001\n\006RecUpd\022\"\n\005tycon\030\001 \001(\0132\023.daml_l" + "f_1.Type.Con\022\023\n\tfield_str\030\002 \001(\tH\000\022\034\n\022fie" + "ld_interned_str\030\005 \001(\005H\000\022\037\n\006record\030\003 \001(\0132" + "\017.daml_lf_1.Expr\022\037\n\006update\030\004 \001(\0132\017.daml_" + "lf_1.ExprB\007\n\005field\032\244\001\n\nVariantCon\022\"\n\005tyc" + "on\030\001 \001(\0132\023.daml_lf_1.Type.Con\022\031\n\017variant" + "_con_str\030\002 \001(\tH\000\022\"\n\030variant_con_interned" + "_str\030\004 \001(\005H\000\022$\n\013variant_arg\030\003 \001(\0132\017.daml" + "_lf_1.ExprB\r\n\013variant_con\032u\n\007EnumCon\022%\n\005" + "tycon\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\026\n\014e" + "num_con_str\030\002 \001(\tH\000\022\037\n\025enum_con_interned" + "_str\030\003 \001(\005H\000B\n\n\010enum_con\0325\n\tStructCon\022(\n" + "\006fields\030\001 \003(\0132\030.daml_lf_1.FieldWithExpr\032" + "i\n\nStructProj\022\023\n\tfield_str\030\001 \001(\tH\000\022\034\n\022fi" + "eld_interned_str\030\003 \001(\005H\000\022\037\n\006struct\030\002 \001(\013" + "2\017.daml_lf_1.ExprB\007\n\005field\032\211\001\n\tStructUpd" + "\022\023\n\tfield_str\030\001 \001(\tH\000\022\034\n\022field_interned_" + "str\030\004 \001(\005H\000\022\037\n\006struct\030\002 \001(\0132\017.daml_lf_1." + "Expr\022\037\n\006update\030\003 \001(\0132\017.daml_lf_1.ExprB\007\n" + "\005field\032B\n\003App\022\034\n\003fun\030\001 \001(\0132\017.daml_lf_1.E" + "xpr\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.Expr\032F\n\005Ty" + "App\022\035\n\004expr\030\001 \001(\0132\017.daml_lf_1.Expr\022\036\n\005ty" + "pes\030\002 \003(\0132\017.daml_lf_1.Type\032K\n\003Abs\022%\n\005par" + "am\030\001 \003(\0132\026.daml_lf_1.VarWithType\022\035\n\004body" + "\030\002 \001(\0132\017.daml_lf_1.Expr\032Q\n\005TyAbs\022)\n\005para" + "m\030\001 \003(\0132\032.daml_lf_1.TypeVarWithKind\022\035\n\004b" + "ody\030\002 \001(\0132\017.daml_lf_1.Expr\032$\n\003Nil\022\035\n\004typ" + "e\030\001 \001(\0132\017.daml_lf_1.Type\032d\n\004Cons\022\035\n\004type" + "\030\001 \001(\0132\017.daml_lf_1.Type\022\036\n\005front\030\002 \003(\0132\017" + ".daml_lf_1.Expr\022\035\n\004tail\030\003 \001(\0132\017.daml_lf_" + "1.Expr\032-\n\014OptionalNone\022\035\n\004type\030\001 \001(\0132\017.d" + "aml_lf_1.Type\032L\n\014OptionalSome\022\035\n\004type\030\001 " + "\001(\0132\017.daml_lf_1.Type\022\035\n\004body\030\002 \001(\0132\017.dam" + "l_lf_1.Expr\032E\n\005ToAny\022\035\n\004type\030\001 \001(\0132\017.dam" + "l_lf_1.Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Ex" + "pr\032G\n\007FromAny\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1." + "Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032N\n\016T" + "oAnyException\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1." + "Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032P\n\020F" + "romAnyException\022\035\n\004type\030\001 \001(\0132\017.daml_lf_" + "1.Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032\177\n" + "\005Throw\022$\n\013return_type\030\001 \001(\0132\017.daml_lf_1." + "Type\022\'\n\016exception_type\030\002 \001(\0132\017.daml_lf_1" + ".Type\022\'\n\016exception_expr\030\003 \001(\0132\017.daml_lf_" + "1.Expr\032\224\001\n\013ToInterface\022.\n\016interface_type" + "\030\001 \001(\0132\026.daml_lf_1.TypeConName\022-\n\rtempla" + "te_type\030\002 \001(\0132\026.daml_lf_1.TypeConName\022&\n" + "\rtemplate_expr\030\003 \001(\0132\017.daml_lf_1.Expr\032\227\001" + "\n\rFromInterface\022.\n\016interface_type\030\001 \001(\0132" + "\026.daml_lf_1.TypeConName\022-\n\rtemplate_type" + "\030\002 \001(\0132\026.daml_lf_1.TypeConName\022\'\n\016interf" + "ace_expr\030\003 \001(\0132\017.daml_lf_1.Expr\032\310\001\n\023Unsa" + "feFromInterface\022.\n\016interface_type\030\001 \001(\0132" + "\026.daml_lf_1.TypeConName\022-\n\rtemplate_type" + "\030\002 \001(\0132\026.daml_lf_1.TypeConName\022)\n\020contra" + "ct_id_expr\030\003 \001(\0132\017.daml_lf_1.Expr\022\'\n\016int" + "erface_expr\030\004 \001(\0132\017.daml_lf_1.Expr\032\235\001\n\023T" + "oRequiredInterface\0222\n\022required_interface" + "\030\001 \001(\0132\026.daml_lf_1.TypeConName\0223\n\023requir" + "ing_interface\030\002 \001(\0132\026.daml_lf_1.TypeConN" + "ame\022\035\n\004expr\030\003 \001(\0132\017.daml_lf_1.Expr\032\237\001\n\025F" + "romRequiredInterface\0222\n\022required_interfa" + "ce\030\001 \001(\0132\026.daml_lf_1.TypeConName\0223\n\023requ" + "iring_interface\030\002 \001(\0132\026.daml_lf_1.TypeCo" + "nName\022\035\n\004expr\030\003 \001(\0132\017.daml_lf_1.Expr\032\332\001\n" + "\033UnsafeFromRequiredInterface\0222\n\022required" + "_interface\030\001 \001(\0132\026.daml_lf_1.TypeConName" + "\0223\n\023requiring_interface\030\002 \001(\0132\026.daml_lf_" + "1.TypeConName\022)\n\020contract_id_expr\030\003 \001(\0132" + "\017.daml_lf_1.Expr\022\'\n\016interface_expr\030\004 \001(\013" + "2\017.daml_lf_1.Expr\032\206\001\n\rCallInterface\022.\n\016i" + "nterface_type\030\001 \001(\0132\026.daml_lf_1.TypeConN" + "ame\022\034\n\024method_interned_name\030\002 \001(\005\022\'\n\016int" + "erface_expr\030\003 \001(\0132\017.daml_lf_1.Expr\032d\n\030In" + "terfaceTemplateTypeRep\022)\n\tinterface\030\001 \001(" + "\0132\026.daml_lf_1.TypeConName\022\035\n\004expr\030\002 \001(\0132" + "\017.daml_lf_1.Expr\032^\n\022SignatoryInterface\022)" + "\n\tinterface\030\001 \001(\0132\026.daml_lf_1.TypeConNam" + "e\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032]\n\021Obse" + "rverInterface\022)\n\tinterface\030\001 \001(\0132\026.daml_" + "lf_1.TypeConName\022\035\n\004expr\030\002 \001(\0132\017.daml_lf" + "_1.Expr\032;\n\014Experimental\022\014\n\004name\030\001 \001(\t\022\035\n" + "\004type\030\002 \001(\0132\017.daml_lf_1.TypeB\005\n\003SumJ\004\010\023\020" + "\024J\004\010\030\020\031\"\225\007\n\007CaseAlt\022\"\n\007default\030\001 \001(\0132\017.d" + "aml_lf_1.UnitH\000\022-\n\007variant\030\002 \001(\0132\032.daml_" + "lf_1.CaseAlt.VariantH\000\022&\n\010prim_con\030\003 \001(\016" + "2\022.daml_lf_1.PrimConH\000\022\036\n\003nil\030\004 \001(\0132\017.da" + "ml_lf_1.UnitH\000\022\'\n\004cons\030\005 \001(\0132\027.daml_lf_1" + ".CaseAlt.ConsH\000\022(\n\roptional_none\030\007 \001(\0132\017" + ".daml_lf_1.UnitH\000\0228\n\roptional_some\030\010 \001(\013" + "2\037.daml_lf_1.CaseAlt.OptionalSomeH\000\022\'\n\004e" + "num\030\t \001(\0132\027.daml_lf_1.CaseAlt.EnumH\000\022\035\n\004" + "body\030\006 \001(\0132\017.daml_lf_1.Expr\032\257\001\n\007Variant\022" + "#\n\003con\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\025\n\013" + "variant_str\030\002 \001(\tH\000\022\036\n\024variant_interned_" + "str\030\004 \001(\005H\000\022\024\n\nbinder_str\030\003 \001(\tH\001\022\035\n\023bin" + "der_interned_str\030\005 \001(\005H\001B\t\n\007variantB\010\n\006b" + "inder\032y\n\004Enum\022#\n\003con\030\001 \001(\0132\026.daml_lf_1.T" + "ypeConName\022\031\n\017constructor_str\030\002 \001(\tH\000\022\"\n" + "\030constructor_interned_str\030\003 \001(\005H\000B\r\n\013con" + "structor\032\220\001\n\004Cons\022\026\n\014var_head_str\030\001 \001(\tH" + "\000\022\037\n\025var_head_interned_str\030\003 \001(\005H\000\022\026\n\014va" + "r_tail_str\030\002 \001(\tH\001\022\037\n\025var_tail_interned_" + "str\030\004 \001(\005H\001B\n\n\010var_headB\n\n\010var_tail\032S\n\014O" + "ptionalSome\022\026\n\014var_body_str\030\001 \001(\tH\000\022\037\n\025v" + "ar_body_interned_str\030\002 \001(\005H\000B\n\n\010var_body" + "B\005\n\003Sum\"H\n\004Case\022\036\n\005scrut\030\001 \001(\0132\017.daml_lf" + "_1.Expr\022 \n\004alts\030\002 \003(\0132\022.daml_lf_1.CaseAl" + "t\"L\n\005Block\022$\n\010bindings\030\001 \003(\0132\022.daml_lf_1" + ".Binding\022\035\n\004body\030\002 \001(\0132\017.daml_lf_1.Expr\"" + "D\n\004Pure\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1.Type\022\035" + "\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\"\362\016\n\006Update" + "\022\037\n\004pure\030\001 \001(\0132\017.daml_lf_1.PureH\000\022!\n\005blo" + "ck\030\002 \001(\0132\020.daml_lf_1.BlockH\000\022*\n\006create\030\003" + " \001(\0132\030.daml_lf_1.Update.CreateH\000\022.\n\010exer" + "cise\030\004 \001(\0132\032.daml_lf_1.Update.ExerciseH\000" + "\022:\n\017exercise_by_key\030\n \001(\0132\037.daml_lf_1.Up" + "date.ExerciseByKeyH\000\022(\n\005fetch\030\005 \001(\0132\027.da" + "ml_lf_1.Update.FetchH\000\022#\n\010get_time\030\006 \001(\013" + "2\017.daml_lf_1.UnitH\000\0228\n\rlookup_by_key\030\010 \001" + "(\0132\037.daml_lf_1.Update.RetrieveByKeyH\000\0227\n" + "\014fetch_by_key\030\t \001(\0132\037.daml_lf_1.Update.R" + "etrieveByKeyH\000\0221\n\nembed_expr\030\007 \001(\0132\033.dam" + "l_lf_1.Update.EmbedExprH\000\022/\n\ttry_catch\030\013" + " \001(\0132\032.daml_lf_1.Update.TryCatchH\000\022A\n\022ex" + "ercise_interface\030\014 \001(\0132#.daml_lf_1.Updat" + "e.ExerciseInterfaceH\000\022;\n\017fetch_interface" + "\030\r \001(\0132 .daml_lf_1.Update.FetchInterface" + "H\000\022=\n\020create_interface\030\016 \001(\0132!.daml_lf_1" + ".Update.CreateInterfaceH\000\032Q\n\006Create\022(\n\010t" + "emplate\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\035\n" + "\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032[\n\017CreateIn" + "terface\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_1.T" + "ypeConName\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Exp" + "r\032\265\001\n\010Exercise\022(\n\010template\030\001 \001(\0132\026.daml_" + "lf_1.TypeConName\022\024\n\nchoice_str\030\002 \001(\tH\000\022\035" + "\n\023choice_interned_str\030\006 \001(\005H\000\022\034\n\003cid\030\003 \001" + "(\0132\017.daml_lf_1.Expr\022\034\n\003arg\030\005 \001(\0132\017.daml_" + "lf_1.ExprB\010\n\006choiceJ\004\010\004\020\005\032\267\001\n\021ExerciseIn" + "terface\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_1.T" + "ypeConName\022\033\n\023choice_interned_str\030\002 \001(\005\022" + "\034\n\003cid\030\003 \001(\0132\017.daml_lf_1.Expr\022\034\n\003arg\030\004 \001" + "(\0132\017.daml_lf_1.Expr\022\036\n\005guard\030\005 \001(\0132\017.dam" + "l_lf_1.Expr\032\222\001\n\rExerciseByKey\022(\n\010templat" + "e\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\033\n\023choic" + "e_interned_str\030\002 \001(\005\022\034\n\003key\030\003 \001(\0132\017.daml" + "_lf_1.Expr\022\034\n\003arg\030\004 \001(\0132\017.daml_lf_1.Expr" + "\032U\n\005Fetch\022(\n\010template\030\001 \001(\0132\026.daml_lf_1." + "TypeConName\022\034\n\003cid\030\002 \001(\0132\017.daml_lf_1.Exp" + "rJ\004\010\003\020\004\032Y\n\016FetchInterface\022)\n\tinterface\030\001" + " \001(\0132\026.daml_lf_1.TypeConName\022\034\n\003cid\030\002 \001(" + "\0132\017.daml_lf_1.Expr\032I\n\tEmbedExpr\022\035\n\004type\030" + "\001 \001(\0132\017.daml_lf_1.Type\022\035\n\004body\030\002 \001(\0132\017.d" + "aml_lf_1.Expr\032W\n\rRetrieveByKey\022(\n\010templa" + "te\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\034\n\003key\030" + "\002 \001(\0132\017.daml_lf_1.Expr\032\222\001\n\010TryCatch\022$\n\013r" + "eturn_type\030\001 \001(\0132\017.daml_lf_1.Type\022!\n\010try" + "_expr\030\002 \001(\0132\017.daml_lf_1.Expr\022\030\n\020var_inte" + "rned_str\030\003 \001(\005\022#\n\ncatch_expr\030\004 \001(\0132\017.dam" + "l_lf_1.ExprB\005\n\003Sum\"\215\004\n\010Scenario\022\037\n\004pure\030" + "\001 \001(\0132\017.daml_lf_1.PureH\000\022!\n\005block\030\002 \001(\0132" + "\020.daml_lf_1.BlockH\000\022,\n\006commit\030\003 \001(\0132\032.da" + "ml_lf_1.Scenario.CommitH\000\0220\n\nmustFailAt\030" + "\004 \001(\0132\032.daml_lf_1.Scenario.CommitH\000\022\037\n\004p" + "ass\030\005 \001(\0132\017.daml_lf_1.ExprH\000\022#\n\010get_time" + "\030\006 \001(\0132\017.daml_lf_1.UnitH\000\022$\n\tget_party\030\007" + " \001(\0132\017.daml_lf_1.ExprH\000\0223\n\nembed_expr\030\010 " + "\001(\0132\035.daml_lf_1.Scenario.EmbedExprH\000\032j\n\006" + "Commit\022\036\n\005party\030\001 \001(\0132\017.daml_lf_1.Expr\022\035" + "\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\022!\n\010ret_typ" + "e\030\003 \001(\0132\017.daml_lf_1.Type\032I\n\tEmbedExpr\022\035\n" + "\004type\030\001 \001(\0132\017.daml_lf_1.Type\022\035\n\004body\030\002 \001" + "(\0132\017.daml_lf_1.ExprB\005\n\003Sum\"\213\003\n\016TemplateC" + "hoice\022\022\n\010name_str\030\001 \001(\tH\000\022\033\n\021name_intern" + "ed_str\030\t \001(\005H\000\022\021\n\tconsuming\030\002 \001(\010\022$\n\013con" + "trollers\030\003 \001(\0132\017.daml_lf_1.Expr\022\"\n\tobser" + "vers\030\013 \001(\0132\017.daml_lf_1.Expr\022*\n\narg_binde" + "r\030\004 \001(\0132\026.daml_lf_1.VarWithType\022!\n\010ret_t" + "ype\030\005 \001(\0132\017.daml_lf_1.Type\022\037\n\006update\030\006 \001" + "(\0132\017.daml_lf_1.Expr\022\031\n\017self_binder_str\030\007" + " \001(\tH\001\022\"\n\030self_binder_interned_str\030\n \001(\005" + "H\001\022%\n\010location\030\010 \001(\0132\023.daml_lf_1.Locatio" + "nB\006\n\004nameB\r\n\013self_binder\"\360\003\n\007KeyExpr\0225\n\013" + "projections\030\001 \001(\0132\036.daml_lf_1.KeyExpr.Pr" + "ojectionsH\000\022+\n\006record\030\002 \001(\0132\031.daml_lf_1." + "KeyExpr.RecordH\000\032l\n\nProjection\022\"\n\005tycon\030" + "\001 \001(\0132\023.daml_lf_1.Type.Con\022\023\n\tfield_str\030" + "\002 \001(\tH\000\022\034\n\022field_interned_str\030\003 \001(\005H\000B\007\n" + "\005field\032A\n\013Projections\0222\n\013projections\030\002 \003" + "(\0132\035.daml_lf_1.KeyExpr.Projection\032k\n\013Rec" + "ordField\022\023\n\tfield_str\030\001 \001(\tH\000\022\034\n\022field_i" + "nterned_str\030\003 \001(\005H\000\022 \n\004expr\030\002 \001(\0132\022.daml" + "_lf_1.KeyExprB\007\n\005field\032\\\n\006Record\022\"\n\005tyco" + "n\030\001 \001(\0132\023.daml_lf_1.Type.Con\022.\n\006fields\030\002" + " \003(\0132\036.daml_lf_1.KeyExpr.RecordFieldB\005\n\003" + "Sum\"\202\007\n\013DefTemplate\022,\n\013tycon_dname\030\001 \001(\013" + "2\025.daml_lf_1.DottedNameH\000\022\036\n\024tycon_inter" + "ned_dname\030\014 \001(\005H\000\022\023\n\tparam_str\030\002 \001(\tH\001\022\034" + "\n\022param_interned_str\030\013 \001(\005H\001\022 \n\007precond\030" + "\004 \001(\0132\017.daml_lf_1.Expr\022$\n\013signatories\030\005 " + "\001(\0132\017.daml_lf_1.Expr\022\"\n\tagreement\030\006 \001(\0132" + "\017.daml_lf_1.Expr\022*\n\007choices\030\007 \003(\0132\031.daml" + "_lf_1.TemplateChoice\022\"\n\tobservers\030\010 \001(\0132" + "\017.daml_lf_1.Expr\022%\n\010location\030\t \001(\0132\023.dam" + "l_lf_1.Location\022*\n\003key\030\n \001(\0132\035.daml_lf_1" + ".DefTemplate.DefKey\0225\n\nimplements\030\r \003(\0132" + "!.daml_lf_1.DefTemplate.Implements\032\244\001\n\006D" + "efKey\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1.Type\022!\n\003" + "key\030\002 \001(\0132\022.daml_lf_1.KeyExprH\000\022&\n\013compl" + "ex_key\030\004 \001(\0132\017.daml_lf_1.ExprH\000\022$\n\013maint" + "ainers\030\003 \001(\0132\017.daml_lf_1.ExprB\n\n\010key_exp" + "r\032P\n\020ImplementsMethod\022\034\n\024method_interned" + "_name\030\001 \001(\005\022\036\n\005value\030\002 \001(\0132\017.daml_lf_1.E" + "xpr\032\232\001\n\nImplements\022)\n\tinterface\030\001 \001(\0132\026." + "daml_lf_1.TypeConName\0228\n\007methods\030\002 \003(\0132\'" + ".daml_lf_1.DefTemplate.ImplementsMethod\022" + "\'\n\037inherited_choice_interned_names\030\003 \003(\005" + "B\007\n\005tyconB\007\n\005paramJ\004\010\003\020\004\"u\n\017InterfaceMet" + "hod\022%\n\010location\030\001 \001(\0132\023.daml_lf_1.Locati" + "on\022\034\n\024method_interned_name\030\002 \001(\005\022\035\n\004type" + "\030\003 \001(\0132\017.daml_lf_1.Type\"\232\002\n\014DefInterface" + "\022%\n\010location\030\001 \001(\0132\023.daml_lf_1.Location\022" + "\034\n\024tycon_interned_dname\030\002 \001(\005\022(\n\010require" + "s\030\003 \003(\0132\026.daml_lf_1.TypeConName\022+\n\007metho" + "ds\030\004 \003(\0132\032.daml_lf_1.InterfaceMethod\022\032\n\022" + "param_interned_str\030\005 \001(\005\022 \n\007precond\030\006 \001(" + "\0132\017.daml_lf_1.Expr\0220\n\rfixed_choices\030\007 \003(" + "\0132\031.daml_lf_1.TemplateChoice\"t\n\014DefExcep" + "tion\022\033\n\023name_interned_dname\030\001 \001(\005\022%\n\010loc" + "ation\030\002 \001(\0132\023.daml_lf_1.Location\022 \n\007mess" + "age\030\003 \001(\0132\017.daml_lf_1.Expr\"\235\004\n\013DefDataTy" + "pe\022+\n\nname_dname\030\001 \001(\0132\025.daml_lf_1.Dotte" + "dNameH\000\022\035\n\023name_interned_dname\030\010 \001(\005H\000\022*" + "\n\006params\030\002 \003(\0132\032.daml_lf_1.TypeVarWithKi" + "nd\022/\n\006record\030\003 \001(\0132\035.daml_lf_1.DefDataTy" + "pe.FieldsH\001\0220\n\007variant\030\004 \001(\0132\035.daml_lf_1" + ".DefDataType.FieldsH\001\0227\n\004enum\030\007 \001(\0132\'.da" + "ml_lf_1.DefDataType.EnumConstructorsH\001\022$" + "\n\tinterface\030\t \001(\0132\017.daml_lf_1.UnitH\001\022\024\n\014" + "serializable\030\005 \001(\010\022%\n\010location\030\006 \001(\0132\023.d" + "aml_lf_1.Location\0322\n\006Fields\022(\n\006fields\030\001 " + "\003(\0132\030.daml_lf_1.FieldWithType\032O\n\020EnumCon" + "structors\022\030\n\020constructors_str\030\001 \003(\t\022!\n\031c" + "onstructors_interned_str\030\002 \003(\005B\006\n\004nameB\n" + "\n\010DataCons\"\322\001\n\nDefTypeSyn\022+\n\nname_dname\030" + "\001 \001(\0132\025.daml_lf_1.DottedNameH\000\022\035\n\023name_i" + "nterned_dname\030\010 \001(\005H\000\022*\n\006params\030\002 \003(\0132\032." + "daml_lf_1.TypeVarWithKind\022\035\n\004type\030\003 \001(\0132" + "\017.daml_lf_1.Type\022%\n\010location\030\004 \001(\0132\023.dam" + "l_lf_1.LocationB\006\n\004name\"\226\002\n\010DefValue\0228\n\016" + "name_with_type\030\001 \001(\0132 .daml_lf_1.DefValu" + "e.NameWithType\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1" + ".Expr\022\031\n\021no_party_literals\030\003 \001(\010\022\017\n\007is_t" + "est\030\004 \001(\010\022%\n\010location\030\005 \001(\0132\023.daml_lf_1." + "Location\032^\n\014NameWithType\022\022\n\nname_dname\030\001" + " \003(\t\022\033\n\023name_interned_dname\030\003 \001(\005\022\035\n\004typ" + "e\030\002 \001(\0132\017.daml_lf_1.Type\"\220\001\n\014FeatureFlag" + "s\022\033\n\023forbidPartyLiterals\030\001 \001(\010\022/\n\'dontDi" + "vulgeContractIdsInCreateArguments\030\002 \001(\010\022" + "2\n*dontDiscloseNonConsumingChoicesToObse" + "rvers\030\003 \001(\010\"\217\003\n\006Module\022+\n\nname_dname\030\001 \001" + "(\0132\025.daml_lf_1.DottedNameH\000\022\035\n\023name_inte" + "rned_dname\030\010 \001(\005H\000\022&\n\005flags\030\004 \001(\0132\027.daml" + "_lf_1.FeatureFlags\022\'\n\010synonyms\030\t \003(\0132\025.d" + "aml_lf_1.DefTypeSyn\022*\n\ndata_types\030\005 \003(\0132" + "\026.daml_lf_1.DefDataType\022#\n\006values\030\006 \003(\0132" + "\023.daml_lf_1.DefValue\022)\n\ttemplates\030\007 \003(\0132" + "\026.daml_lf_1.DefTemplate\022+\n\nexceptions\030\n " + "\003(\0132\027.daml_lf_1.DefException\022+\n\ninterfac" + "es\030\013 \003(\0132\027.daml_lf_1.DefInterfaceB\006\n\004nam" + "eJ\004\010\002\020\003J\004\010\003\020\004\"3\n\022InternedDottedName\022\035\n\025s", "egments_interned_str\030\001 \003(\005\"J\n\017PackageMet" + "adata\022\031\n\021name_interned_str\030\001 \001(\005\022\034\n\024vers" + "ion_interned_str\030\002 \001(\005\"\334\001\n\007Package\022\"\n\007mo" + "dules\030\001 \003(\0132\021.daml_lf_1.Module\022\030\n\020intern" + "ed_strings\030\002 \003(\t\022<\n\025interned_dotted_name" + "s\030\003 \003(\0132\035.daml_lf_1.InternedDottedName\022," + "\n\010metadata\030\004 \001(\0132\032.daml_lf_1.PackageMeta" + "data\022\'\n\016interned_types\030\005 \003(\0132\017.daml_lf_1" + ".Type*\245\002\n\010PrimType\022\010\n\004UNIT\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\tTIME" + "STAMP\020\006\022\t\n\005PARTY\020\010\022\010\n\004LIST\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\013\n\007TEXTMAP\020\020\022" + "\013\n\007NUMERIC\020\021\022\007\n\003ANY\020\022\022\014\n\010TYPE_REP\020\023\022\n\n\006G" + "ENMAP\020\024\022\016\n\nBIGNUMERIC\020\025\022\021\n\rROUNDING_MODE" + "\020\026\022\021\n\rANY_EXCEPTION\020\027*4\n\007PrimCon\022\014\n\010CON_" + "UNIT\020\000\022\r\n\tCON_FALSE\020\001\022\014\n\010CON_TRUE\020\002*\215\023\n\017" + "BuiltinFunction\022\017\n\013ADD_DECIMAL\020\000\022\017\n\013SUB_" + "DECIMAL\020\001\022\017\n\013MUL_DECIMAL\020\002\022\017\n\013DIV_DECIMA" + "L\020\003\022\021\n\rROUND_DECIMAL\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\rROUND_NUMERIC\020o\022\020\n\014CAST_NU" + "MERIC\020y\022\021\n\rSHIFT_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_I" + "NT64\020\n\022\r\n\tMOD_INT64\020\013\022\r\n\tEXP_INT64\020\014\022\t\n\005" + "FOLDL\020\024\022\t\n\005FOLDR\020\025\022\021\n\rTEXTMAP_EMPTY\020`\022\022\n" + "\016TEXTMAP_INSERT\020a\022\022\n\016TEXTMAP_LOOKUP\020b\022\022\n" + "\016TEXTMAP_DELETE\020c\022\023\n\017TEXTMAP_TO_LIST\020d\022\020" + "\n\014TEXTMAP_SIZE\020e\022\020\n\014GENMAP_EMPTY\020|\022\021\n\rGE" + "NMAP_INSERT\020}\022\021\n\rGENMAP_LOOKUP\020~\022\021\n\rGENM" + "AP_DELETE\020\177\022\020\n\013GENMAP_KEYS\020\200\001\022\022\n\rGENMAP_" + "VALUES\020\201\001\022\020\n\013GENMAP_SIZE\020\202\001\022\020\n\014EXPLODE_T" + "EXT\020\027\022\017\n\013APPEND_TEXT\020\030\022\t\n\005ERROR\020\031\022\032\n\025ANY" + "_EXCEPTION_MESSAGE\020\223\001\022\r\n\tLEQ_INT64\020!\022\017\n\013" + "LEQ_DECIMAL\020\"\022\017\n\013LEQ_NUMERIC\020p\022\014\n\010LEQ_TE" + "XT\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_DEC" + "IMAL\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\nLE" + "SS_PARTY\020Z\022\r\n\tGEQ_INT64\020-\022\017\n\013GEQ_DECIMAL" + "\020.\022\017\n\013GEQ_NUMERIC\020r\022\014\n\010GEQ_TEXT\0200\022\021\n\rGEQ" + "_TIMESTAMP\0201\022\014\n\010GEQ_DATE\020E\022\r\n\tGEQ_PARTY\020" + "[\022\021\n\rGREATER_INT64\0203\022\023\n\017GREATER_DECIMAL\020" + "4\022\023\n\017GREATER_NUMERIC\020s\022\020\n\014GREATER_TEXT\0206" + "\022\025\n\021GREATER_TIMESTAMP\0207\022\020\n\014GREATER_DATE\020" + "F\022\021\n\rGREATER_PARTY\020\\\022\021\n\rINT64_TO_TEXT\0209\022" + "\023\n\017DECIMAL_TO_TEXT\020:\022\023\n\017NUMERIC_TO_TEXT\020" + "t\022\020\n\014TEXT_TO_TEXT\020<\022\025\n\021TIMESTAMP_TO_TEXT" + "\020=\022\020\n\014DATE_TO_TEXT\020G\022\030\n\024PARTY_TO_QUOTED_" + "TEXT\020?\022\021\n\rPARTY_TO_TEXT\020^\022\021\n\rTEXT_TO_PAR" + "TY\020_\022\021\n\rTEXT_TO_INT64\020g\022\023\n\017TEXT_TO_DECIM" + "AL\020h\022\023\n\017TEXT_TO_NUMERIC\020u\022\030\n\023CONTRACT_ID" + "_TO_TEXT\020\210\001\022\017\n\013SHA256_TEXT\020]\022\025\n\021DATE_TO_" + "UNIX_DAYS\020H\022\025\n\021UNIX_DAYS_TO_DATE\020I\022\"\n\036TI" + "MESTAMP_TO_UNIX_MICROSECONDS\020J\022\"\n\036UNIX_M" + "ICROSECONDS_TO_TIMESTAMP\020K\022\024\n\020INT64_TO_D" + "ECIMAL\020L\022\024\n\020DECIMAL_TO_INT64\020M\022\024\n\020INT64_" + "TO_NUMERIC\020v\022\024\n\020NUMERIC_TO_INT64\020w\022\020\n\014IM" + "PLODE_TEXT\020N\022\017\n\013EQUAL_INT64\020O\022\021\n\rEQUAL_D" + "ECIMAL\020P\022\021\n\rEQUAL_NUMERIC\020x\022\016\n\nEQUAL_TEX" + "T\020Q\022\023\n\017EQUAL_TIMESTAMP\020R\022\016\n\nEQUAL_DATE\020S" + "\022\017\n\013EQUAL_PARTY\020T\022\016\n\nEQUAL_BOOL\020U\022\025\n\021EQU" + "AL_CONTRACT_ID\020V\022\016\n\nEQUAL_LIST\020W\022\022\n\016EQUA" + "L_TYPE_REP\020{\022\n\n\005EQUAL\020\203\001\022\014\n\007LESS_EQ\020\204\001\022\t" + "\n\004LESS\020\205\001\022\017\n\nGREATER_EQ\020\206\001\022\014\n\007GREATER\020\207\001" + "\022\t\n\005TRACE\020X\022\026\n\022COERCE_CONTRACT_ID\020f\022\027\n\023C" + "ODE_POINTS_TO_TEXT\020i\022\027\n\023TEXT_TO_CODE_POI" + "NTS\020j\022\025\n\020SCALE_BIGNUMERIC\020\211\001\022\031\n\024PRECISIO" + "N_BIGNUMERIC\020\212\001\022\023\n\016ADD_BIGNUMERIC\020\213\001\022\023\n\016" + "SUB_BIGNUMERIC\020\214\001\022\023\n\016MUL_BIGNUMERIC\020\215\001\022\023" + "\n\016DIV_BIGNUMERIC\020\216\001\022\033\n\026SHIFT_RIGHT_BIGNU" + "MERIC\020\217\001\022\032\n\025BIGNUMERIC_TO_NUMERIC\020\220\001\022\032\n\025" + "NUMERIC_TO_BIGNUMERIC\020\221\001\022\027\n\022BIGNUMERIC_T" + "O_TEXT\020\222\001\022\027\n\022TYPEREP_TYCON_NAME\020\224\001\022\022\n\rTE" + "XT_TO_UPPER\020\255M\022\022\n\rTEXT_TO_LOWER\020\256M\022\017\n\nTE" + "XT_SLICE\020\257M\022\025\n\020TEXT_SLICE_INDEX\020\260M\022\027\n\022TE" + "XT_CONTAINS_ONLY\020\261M\022\023\n\016TEXT_REPLICATE\020\262M" + "\022\022\n\rTEXT_SPLIT_ON\020\263M\022\025\n\020TEXT_INTERCALATE" + "\020\264MB5\n\024com.daml.daml_lf_dev\252\002\034Com.Daml.D" + "aml_Lf_Dev.DamlLf1b\006proto3" }; 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_TypeSynName_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_daml_lf_1_TypeSynName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_TypeSynName_descriptor, new java.lang.String[] { "Module", "NameDname", "NameInternedDname", "Name", }); internal_static_daml_lf_1_ValName_descriptor = getDescriptor().getMessageTypes().get(6); 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(7); 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(8); 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(9); 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(10); 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(11); 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(12); 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(13); 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", "Forall", "Struct", "Nat", "Syn", "Interned", "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_Syn_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_Type_Syn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Syn_descriptor, new java.lang.String[] { "Tysyn", "Args", }); internal_static_daml_lf_1_Type_Prim_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(3); 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_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_Struct_descriptor = internal_static_daml_lf_1_Type_descriptor.getNestedTypes().get(5); internal_static_daml_lf_1_Type_Struct_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Type_Struct_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_1_PrimLit_descriptor = getDescriptor().getMessageTypes().get(14); 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", "RoundingMode", "Sum", }); internal_static_daml_lf_1_Location_descriptor = getDescriptor().getMessageTypes().get(15); 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(16); 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", "StructCon", "StructProj", "StructUpd", "App", "TyApp", "Abs", "TyAbs", "Case", "Let", "Nil", "Cons", "Update", "Scenario", "OptionalNone", "OptionalSome", "ToAny", "FromAny", "TypeRep", "ToAnyException", "FromAnyException", "Throw", "ToInterface", "FromInterface", "CallInterface", "ToRequiredInterface", "FromRequiredInterface", "InterfaceTemplateTypeRep", "SignatoryInterface", "ObserverInterface", "UnsafeFromInterface", "UnsafeFromRequiredInterface", "Experimental", "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_StructCon_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(5); internal_static_daml_lf_1_Expr_StructCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_StructCon_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_1_Expr_StructProj_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(6); internal_static_daml_lf_1_Expr_StructProj_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_StructProj_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Struct", "Field", }); internal_static_daml_lf_1_Expr_StructUpd_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(7); internal_static_daml_lf_1_Expr_StructUpd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_StructUpd_descriptor, new java.lang.String[] { "FieldStr", "FieldInternedStr", "Struct", "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_Expr_ToAnyException_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(18); internal_static_daml_lf_1_Expr_ToAnyException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ToAnyException_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_1_Expr_FromAnyException_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(19); internal_static_daml_lf_1_Expr_FromAnyException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_FromAnyException_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_1_Expr_Throw_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(20); internal_static_daml_lf_1_Expr_Throw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_Throw_descriptor, new java.lang.String[] { "ReturnType", "ExceptionType", "ExceptionExpr", }); internal_static_daml_lf_1_Expr_ToInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(21); internal_static_daml_lf_1_Expr_ToInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ToInterface_descriptor, new java.lang.String[] { "InterfaceType", "TemplateType", "TemplateExpr", }); internal_static_daml_lf_1_Expr_FromInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(22); internal_static_daml_lf_1_Expr_FromInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_FromInterface_descriptor, new java.lang.String[] { "InterfaceType", "TemplateType", "InterfaceExpr", }); internal_static_daml_lf_1_Expr_UnsafeFromInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(23); internal_static_daml_lf_1_Expr_UnsafeFromInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_UnsafeFromInterface_descriptor, new java.lang.String[] { "InterfaceType", "TemplateType", "ContractIdExpr", "InterfaceExpr", }); internal_static_daml_lf_1_Expr_ToRequiredInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(24); internal_static_daml_lf_1_Expr_ToRequiredInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ToRequiredInterface_descriptor, new java.lang.String[] { "RequiredInterface", "RequiringInterface", "Expr", }); internal_static_daml_lf_1_Expr_FromRequiredInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(25); internal_static_daml_lf_1_Expr_FromRequiredInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_FromRequiredInterface_descriptor, new java.lang.String[] { "RequiredInterface", "RequiringInterface", "Expr", }); internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(26); internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_UnsafeFromRequiredInterface_descriptor, new java.lang.String[] { "RequiredInterface", "RequiringInterface", "ContractIdExpr", "InterfaceExpr", }); internal_static_daml_lf_1_Expr_CallInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(27); internal_static_daml_lf_1_Expr_CallInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_CallInterface_descriptor, new java.lang.String[] { "InterfaceType", "MethodInternedName", "InterfaceExpr", }); internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(28); internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_InterfaceTemplateTypeRep_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(29); internal_static_daml_lf_1_Expr_SignatoryInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_1_Expr_ObserverInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(30); internal_static_daml_lf_1_Expr_ObserverInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ObserverInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_1_Expr_Experimental_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(31); internal_static_daml_lf_1_Expr_Experimental_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_Experimental_descriptor, new java.lang.String[] { "Name", "Type", }); internal_static_daml_lf_1_CaseAlt_descriptor = getDescriptor().getMessageTypes().get(17); 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(18); 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(19); 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(20); 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(21); 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", "ExerciseByKey", "Fetch", "GetTime", "LookupByKey", "FetchByKey", "EmbedExpr", "TryCatch", "ExerciseInterface", "FetchInterface", "CreateInterface", "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_CreateInterface_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_Update_CreateInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_CreateInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_1_Update_Exercise_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(2); 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", "Arg", "Choice", }); internal_static_daml_lf_1_Update_ExerciseInterface_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_Update_ExerciseInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_ExerciseInterface_descriptor, new java.lang.String[] { "Interface", "ChoiceInternedStr", "Cid", "Arg", "Guard", }); internal_static_daml_lf_1_Update_ExerciseByKey_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(4); internal_static_daml_lf_1_Update_ExerciseByKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_ExerciseByKey_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "Key", "Arg", }); internal_static_daml_lf_1_Update_Fetch_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(5); 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_FetchInterface_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(6); internal_static_daml_lf_1_Update_FetchInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_FetchInterface_descriptor, new java.lang.String[] { "Interface", "Cid", }); internal_static_daml_lf_1_Update_EmbedExpr_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(7); 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(8); 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_Update_TryCatch_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(9); internal_static_daml_lf_1_Update_TryCatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_TryCatch_descriptor, new java.lang.String[] { "ReturnType", "TryExpr", "VarInternedStr", "CatchExpr", }); internal_static_daml_lf_1_Scenario_descriptor = getDescriptor().getMessageTypes().get(22); 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(23); 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", "Observers", "ArgBinder", "RetType", "Update", "SelfBinderStr", "SelfBinderInternedStr", "Location", "Name", "SelfBinder", }); internal_static_daml_lf_1_KeyExpr_descriptor = getDescriptor().getMessageTypes().get(24); 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(25); 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", "Implements", "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_DefTemplate_ImplementsMethod_descriptor = internal_static_daml_lf_1_DefTemplate_descriptor.getNestedTypes().get(1); internal_static_daml_lf_1_DefTemplate_ImplementsMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefTemplate_ImplementsMethod_descriptor, new java.lang.String[] { "MethodInternedName", "Value", }); internal_static_daml_lf_1_DefTemplate_Implements_descriptor = internal_static_daml_lf_1_DefTemplate_descriptor.getNestedTypes().get(2); internal_static_daml_lf_1_DefTemplate_Implements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefTemplate_Implements_descriptor, new java.lang.String[] { "Interface", "Methods", "InheritedChoiceInternedNames", }); internal_static_daml_lf_1_InterfaceMethod_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_daml_lf_1_InterfaceMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_InterfaceMethod_descriptor, new java.lang.String[] { "Location", "MethodInternedName", "Type", }); internal_static_daml_lf_1_DefInterface_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_daml_lf_1_DefInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefInterface_descriptor, new java.lang.String[] { "Location", "TyconInternedDname", "Requires", "Methods", "ParamInternedStr", "Precond", "FixedChoices", }); internal_static_daml_lf_1_DefException_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_daml_lf_1_DefException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefException_descriptor, new java.lang.String[] { "NameInternedDname", "Location", "Message", }); internal_static_daml_lf_1_DefDataType_descriptor = getDescriptor().getMessageTypes().get(29); 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", "Interface", "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_DefTypeSyn_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_daml_lf_1_DefTypeSyn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefTypeSyn_descriptor, new java.lang.String[] { "NameDname", "NameInternedDname", "Params", "Type", "Location", "Name", }); internal_static_daml_lf_1_DefValue_descriptor = getDescriptor().getMessageTypes().get(31); 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(32); 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(33); 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", "Synonyms", "DataTypes", "Values", "Templates", "Exceptions", "Interfaces", "Name", }); internal_static_daml_lf_1_InternedDottedName_descriptor = getDescriptor().getMessageTypes().get(34); 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_PackageMetadata_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_daml_lf_1_PackageMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_PackageMetadata_descriptor, new java.lang.String[] { "NameInternedStr", "VersionInternedStr", }); internal_static_daml_lf_1_Package_descriptor = getDescriptor().getMessageTypes().get(36); 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", "Metadata", "InternedTypes", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy