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_lf1.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 1.7 <= versions < 1.dev*
     * 
* * MUL_NUMERIC_LEGACY = 109; */ MUL_NUMERIC_LEGACY(109), /** *
     * *Available in versions >= 1.dev*
     * 
* * MUL_NUMERIC = 149; */ MUL_NUMERIC(149), /** *
     * *Available in 1.7 <= versions < 1.dev*
     * 
* * DIV_NUMERIC_LEGACY = 110; */ DIV_NUMERIC_LEGACY(110), /** *
     * *Available in  versions >= 1.dev*
     * 
* * DIV_NUMERIC = 150; */ DIV_NUMERIC(150), /** *
     * *Available in versions >= 1.7*
     * 
* * ROUND_NUMERIC = 111; */ ROUND_NUMERIC(111), /** *
     * *Available in 1.7 <= versions < 1.dev*
     * 
* * CAST_NUMERIC_LEGACY = 121; */ CAST_NUMERIC_LEGACY(121), /** *
     * *Available in versions >= 1.dev*
     * 
* * CAST_NUMERIC = 151; */ CAST_NUMERIC(151), /** *
     * *Available in 1.7 <= versions < 1.dev*
     * 
* * SHIFT_NUMERIC_LEGACY = 122; */ SHIFT_NUMERIC_LEGACY(122), /** *
     * *Available in versions >= 1.dev*
     * 
* * SHIFT_NUMERIC = 152; */ SHIFT_NUMERIC(152), /** * 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.14*
     * 
* * 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 1.7 <= versions < 1.dev*
     * 
* * TEXT_TO_NUMERIC_LEGACY = 117; */ TEXT_TO_NUMERIC_LEGACY(117), /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_TO_NUMERIC = 153; */ TEXT_TO_NUMERIC(153), /** *
     * *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 1.7 <= versions < 1.dev*
     * 
* * INT64_TO_NUMERIC_LEGACY = 118; */ INT64_TO_NUMERIC_LEGACY(118), /** *
     * *Available in versions >= 1.dev*
     * 
* * INT64_TO_NUMERIC = 154; */ INT64_TO_NUMERIC(154), /** *
     * *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 1.13 <= versions < 1.dev*
     * 
* * BIGNUMERIC_TO_NUMERIC_LEGACY = 144; */ BIGNUMERIC_TO_NUMERIC_LEGACY(144), /** *
     * *Available in versions >= 1.dev*
     * 
* * BIGNUMERIC_TO_NUMERIC = 155; */ BIGNUMERIC_TO_NUMERIC(155), /** *
     * *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*
     * 
* * TYPE_REP_TYCON_NAME = 148; */ TYPE_REP_TYCON_NAME(148), 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 1.7 <= versions < 1.dev*
     * 
* * MUL_NUMERIC_LEGACY = 109; */ public static final int MUL_NUMERIC_LEGACY_VALUE = 109; /** *
     * *Available in versions >= 1.dev*
     * 
* * MUL_NUMERIC = 149; */ public static final int MUL_NUMERIC_VALUE = 149; /** *
     * *Available in 1.7 <= versions < 1.dev*
     * 
* * DIV_NUMERIC_LEGACY = 110; */ public static final int DIV_NUMERIC_LEGACY_VALUE = 110; /** *
     * *Available in  versions >= 1.dev*
     * 
* * DIV_NUMERIC = 150; */ public static final int DIV_NUMERIC_VALUE = 150; /** *
     * *Available in versions >= 1.7*
     * 
* * ROUND_NUMERIC = 111; */ public static final int ROUND_NUMERIC_VALUE = 111; /** *
     * *Available in 1.7 <= versions < 1.dev*
     * 
* * CAST_NUMERIC_LEGACY = 121; */ public static final int CAST_NUMERIC_LEGACY_VALUE = 121; /** *
     * *Available in versions >= 1.dev*
     * 
* * CAST_NUMERIC = 151; */ public static final int CAST_NUMERIC_VALUE = 151; /** *
     * *Available in 1.7 <= versions < 1.dev*
     * 
* * SHIFT_NUMERIC_LEGACY = 122; */ public static final int SHIFT_NUMERIC_LEGACY_VALUE = 122; /** *
     * *Available in versions >= 1.dev*
     * 
* * SHIFT_NUMERIC = 152; */ public static final int SHIFT_NUMERIC_VALUE = 152; /** * 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.14*
     * 
* * 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 1.7 <= versions < 1.dev*
     * 
* * TEXT_TO_NUMERIC_LEGACY = 117; */ public static final int TEXT_TO_NUMERIC_LEGACY_VALUE = 117; /** *
     * *Available in versions >= 1.dev*
     * 
* * TEXT_TO_NUMERIC = 153; */ public static final int TEXT_TO_NUMERIC_VALUE = 153; /** *
     * *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 1.7 <= versions < 1.dev*
     * 
* * INT64_TO_NUMERIC_LEGACY = 118; */ public static final int INT64_TO_NUMERIC_LEGACY_VALUE = 118; /** *
     * *Available in versions >= 1.dev*
     * 
* * INT64_TO_NUMERIC = 154; */ public static final int INT64_TO_NUMERIC_VALUE = 154; /** *
     * *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 1.13 <= versions < 1.dev*
     * 
* * BIGNUMERIC_TO_NUMERIC_LEGACY = 144; */ public static final int BIGNUMERIC_TO_NUMERIC_LEGACY_VALUE = 144; /** *
     * *Available in versions >= 1.dev*
     * 
* * BIGNUMERIC_TO_NUMERIC = 155; */ public static final int BIGNUMERIC_TO_NUMERIC_VALUE = 155; /** *
     * *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*
     * 
* * TYPE_REP_TYCON_NAME = 148; */ public static final int TYPE_REP_TYCON_NAME_VALUE = 148; 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_LEGACY; case 149: return MUL_NUMERIC; case 110: return DIV_NUMERIC_LEGACY; case 150: return DIV_NUMERIC; case 111: return ROUND_NUMERIC; case 121: return CAST_NUMERIC_LEGACY; case 151: return CAST_NUMERIC; case 122: return SHIFT_NUMERIC_LEGACY; case 152: 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_LEGACY; case 153: 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_LEGACY; case 154: 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_LEGACY; case 155: return BIGNUMERIC_TO_NUMERIC; case 145: return NUMERIC_TO_BIGNUMERIC; case 146: return BIGNUMERIC_TO_TEXT; case 148: return TYPE_REP_TYCON_NAME; 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(); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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; @SuppressWarnings("serial") 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_)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (selfBuilder_ != null) { selfBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.PackageRef result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.PackageRef result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && selfBuilder_ != null) { result.sum_ = selfBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSelfFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 2; sum_ = s; break; } // case 18 case 24: { sum_ = input.readInt32(); sumCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } 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 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DottedName(); } 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList segments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * *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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; segments_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DottedName result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { segments_.makeImmutable(); result.segments_ = segments_; } } @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_ |= 0x00000001; } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureSegmentsIsMutable(); segments_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList segments_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSegmentsIsMutable() { if (!segments_.isModifiable()) { 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() { segments_.makeImmutable(); 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); } /** *
       * *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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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_); bitField0_ |= 0x00000001; 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.emptyList(); 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); 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.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int moduleNameCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 packageRef_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageRef.getDefaultInstance() : packageRef_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getPackageRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; packageRef_ = null; if (packageRefBuilder_ != null) { packageRefBuilder_.dispose(); packageRefBuilder_ = null; } if (moduleNameDnameBuilder_ != null) { moduleNameDnameBuilder_.clear(); } 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.ModuleRef result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.packageRef_ = packageRefBuilder_ == null ? packageRef_ : packageRefBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.ModuleRef result) { result.moduleNameCase_ = moduleNameCase_; result.moduleName_ = this.moduleName_; if (moduleNameCase_ == 2 && moduleNameDnameBuilder_ != null) { result.moduleName_ = moduleNameDnameBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPackageRefFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getModuleNameDnameFieldBuilder().getBuilder(), extensionRegistry); moduleNameCase_ = 2; break; } // case 18 case 24: { moduleName_ = input.readInt32(); moduleNameCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { packageRefBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { packageRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && packageRef_ != null && packageRef_ != com.daml.daml_lf_dev.DamlLf1.PackageRef.getDefaultInstance()) { getPackageRefBuilder().mergeFrom(value); } else { packageRef_ = value; } } else { packageRefBuilder_.mergeFrom(value); } if (packageRef_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * package where the module is defined.
       * 
* * .daml_lf_1.PackageRef package_ref = 1; */ public Builder clearPackageRef() { bitField0_ = (bitField0_ & ~0x00000001); packageRef_ = null; if (packageRefBuilder_ != null) { packageRefBuilder_.dispose(); packageRefBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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); } else { 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int nameCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getModuleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } if (nameDnameBuilder_ != null) { nameDnameBuilder_.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_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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.TypeConName result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.module_ = moduleBuilder_ == null ? module_ : moduleBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.TypeConName result) { result.nameCase_ = nameCase_; result.name_ = this.name_; if (nameCase_ == 2 && nameDnameBuilder_ != null) { result.name_ = nameDnameBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModuleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNameDnameFieldBuilder().getBuilder(), extensionRegistry); nameCase_ = 2; break; } // case 18 case 24: { name_ = input.readInt32(); nameCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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.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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { moduleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { moduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance()) { getModuleBuilder().mergeFrom(value); } else { module_ = value; } } else { moduleBuilder_.mergeFrom(value); } if (module_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder clearModule() { bitField0_ = (bitField0_ & ~0x00000001); module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } onChanged(); return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; 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); } else { 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int nameCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getModuleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } if (nameDnameBuilder_ != null) { nameDnameBuilder_.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_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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.TypeSynName result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.module_ = moduleBuilder_ == null ? module_ : moduleBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.TypeSynName result) { result.nameCase_ = nameCase_; result.name_ = this.name_; if (nameCase_ == 2 && nameDnameBuilder_ != null) { result.name_ = nameDnameBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModuleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNameDnameFieldBuilder().getBuilder(), extensionRegistry); nameCase_ = 2; break; } // case 18 case 24: { name_ = input.readInt32(); nameCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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.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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { moduleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { moduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance()) { getModuleBuilder().mergeFrom(value); } else { module_ = value; } } else { moduleBuilder_.mergeFrom(value); } if (module_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder clearModule() { bitField0_ = (bitField0_ & ~0x00000001); module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } onChanged(); return this; } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; 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); } else { 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ValName(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } public static final int NAME_DNAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList nameDname_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * *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_ = 0; /** *
     * *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 (((bitField0_ & 0x00000001) != 0)) { 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getModuleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } nameDname_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.ValName result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.module_ = moduleBuilder_ == null ? module_ : moduleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { nameDname_.makeImmutable(); result.nameDname_ = nameDname_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nameInternedDname_ = nameInternedDname_; } result.bitField0_ |= to_bitField0_; } @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_ |= 0x00000002; } else { ensureNameDnameIsMutable(); nameDname_.addAll(other.nameDname_); } onChanged(); } if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModuleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureNameDnameIsMutable(); nameDname_.add(s); break; } // case 18 case 24: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { moduleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { moduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance()) { getModuleBuilder().mergeFrom(value); } else { module_ = value; } } else { moduleBuilder_.mergeFrom(value); } if (module_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder clearModule() { bitField0_ = (bitField0_ & ~0x00000001); module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } onChanged(); return this; } /** *
       * Module where the value is defined
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf1.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; 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.LazyStringArrayList nameDname_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureNameDnameIsMutable() { if (!nameDname_.isModifiable()) { nameDname_ = new com.google.protobuf.LazyStringArrayList(nameDname_); } bitField0_ |= 0x00000002; } /** *
       * *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() { nameDname_.makeImmutable(); 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); } /** *
       * *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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; 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.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; 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); bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 3; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000004); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getType()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.FieldWithType result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.FieldWithType result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { field_ = input.readInt32(); fieldCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
       * *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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
       * Type associated
       * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int varCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getType()); } if (varCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) var_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (varCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) var_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.VarWithType result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.VarWithType result) { result.varCase_ = varCase_; result.var_ = this.var_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { var_ = input.readInt32(); varCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int varCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 kind_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : kind_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getKind()); } if (varCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) var_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKind()); } if (varCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) var_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getKindFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; kind_ = null; if (kindBuilder_ != null) { kindBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.kind_ = kindBuilder_ == null ? kind_ : kindBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind result) { result.varCase_ = varCase_; result.var_ = this.var_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getKindFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { var_ = input.readInt32(); varCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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; } else { kindBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { kindBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && kind_ != null && kind_ != com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance()) { getKindBuilder().mergeFrom(value); } else { kind_ = value; } } else { kindBuilder_.mergeFrom(value); } if (kind_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000004); kind_ = null; if (kindBuilder_ != null) { kindBuilder_.dispose(); kindBuilder_ = null; } onChanged(); return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_1.Kind kind = 2; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Builder getKindBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getExpr()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.FieldWithExpr result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.FieldWithExpr result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { field_ = input.readInt32(); fieldCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
       * *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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
       * Value of the field
       * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 binder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : binder_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * 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 bound_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : bound_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBinder()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBound()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBinder()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBound()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getBinderFieldBuilder(); getBoundFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; binder_ = null; if (binderBuilder_ != null) { binderBuilder_.dispose(); binderBuilder_ = null; } bound_ = null; if (boundBuilder_ != null) { boundBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Binding result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.binder_ = binderBuilder_ == null ? binder_ : binderBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.bound_ = boundBuilder_ == null ? bound_ : boundBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBinderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBoundFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { binderBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { binderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && binder_ != null && binder_ != com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance()) { getBinderBuilder().mergeFrom(value); } else { binder_ = value; } } else { binderBuilder_.mergeFrom(value); } if (binder_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; */ public Builder clearBinder() { bitField0_ = (bitField0_ & ~0x00000001); binder_ = null; if (binderBuilder_ != null) { binderBuilder_.dispose(); binderBuilder_ = null; } onChanged(); return this; } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_1.VarWithType binder = 1; */ public com.daml.daml_lf_dev.DamlLf1.VarWithType.Builder getBinderBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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; } else { boundBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { boundBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && bound_ != null && bound_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBoundBuilder().mergeFrom(value); } else { bound_ = value; } } else { boundBuilder_.mergeFrom(value); } if (bound_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_1.Expr bound = 2; */ public Builder clearBound() { bitField0_ = (bitField0_ & ~0x00000002); bound_ = null; if (boundBuilder_ != null) { boundBuilder_.dispose(); boundBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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(); } 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); } private int bitField0_; public static final int PARAMS_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 result_ == null ? com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance() : result_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getResult()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResult()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); } else { params_ = null; paramsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Kind.Arrow result) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000001); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Kind.Arrow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.Kind m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Kind.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Kind result = 2; */ public Builder mergeResult(com.daml.daml_lf_dev.DamlLf1.Kind value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && result_ != null && result_ != com.daml.daml_lf_dev.DamlLf1.Kind.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Kind result = 2; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000002); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Kind result = 2; */ public com.daml.daml_lf_dev.DamlLf1.Kind.Builder getResultBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (starBuilder_ != null) { starBuilder_.clear(); } if (arrowBuilder_ != null) { arrowBuilder_.clear(); } if (natBuilder_ != null) { natBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Kind result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Kind result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && starBuilder_ != null) { result.sum_ = starBuilder_.build(); } if (sumCase_ == 2 && arrowBuilder_ != null) { result.sum_ = arrowBuilder_.build(); } if (sumCase_ == 3 && natBuilder_ != null) { result.sum_ = natBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStarFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getArrowFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 26: { input.readMessage( getNatFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } else { 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); } else { 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); } 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 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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); 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(); } 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); } else { args_ = null; argsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Type.Var result) { if (argsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000004); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type.Var result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Type.Var result) { result.varCase_ = varCase_; result.var_ = this.var_; } @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_ & ~0x00000004); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000004); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { com.daml.daml_lf_dev.DamlLf1.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(m); } else { argsBuilder_.addMessage(m); } break; } // case 18 case 24: { var_ = input.readInt32(); varCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_ & 0x00000004) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000004; } } 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_ & ~0x00000004); 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_ & 0x00000004) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } public static final int ARGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTycon()); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); } else { args_ = null; argsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Type.Con result) { if (argsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type.Con result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000002); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(m); } else { argsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTyconBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tysyn_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_; } public static final int ARGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTysyn()); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTysynFieldBuilder(); getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tysyn_ = null; if (tysynBuilder_ != null) { tysynBuilder_.dispose(); tysynBuilder_ = null; } if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); } else { args_ = null; argsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Type.Syn result) { if (argsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type.Syn result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tysyn_ = tysynBuilder_ == null ? tysyn_ : tysynBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000002); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTysynFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(m); } else { argsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tysynBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tysynBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tysyn_ != null && tysyn_ != com.daml.daml_lf_dev.DamlLf1.TypeSynName.getDefaultInstance()) { getTysynBuilder().mergeFrom(value); } else { tysyn_ = value; } } else { tysynBuilder_.mergeFrom(value); } if (tysyn_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public Builder clearTysyn() { bitField0_ = (bitField0_ & ~0x00000001); tysyn_ = null; if (tysynBuilder_ != null) { tysynBuilder_.dispose(); tysynBuilder_ = null; } onChanged(); return this; } /** *
         * Name of the type synonym
         * 
* * .daml_lf_1.TypeSynName tysyn = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeSynName.Builder getTysynBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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_ = 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; * @return The prim. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.PrimType getPrim() { com.daml.daml_lf_dev.DamlLf1.PrimType result = com.daml.daml_lf_dev.DamlLf1.PrimType.forNumber(prim_); return result == null ? com.daml.daml_lf_dev.DamlLf1.PrimType.UNRECOGNIZED : result; } public static final int ARGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; prim_ = 0; if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); } else { args_ = null; argsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Type.Prim result) { if (argsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type.Prim result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.prim_ = prim_; } } @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_ & ~0x00000002); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000002); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { prim_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { com.daml.daml_lf_dev.DamlLf1.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(m); } else { argsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; 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() { com.daml.daml_lf_dev.DamlLf1.PrimType result = com.daml.daml_lf_dev.DamlLf1.PrimType.forNumber(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(); } bitField0_ |= 0x00000001; prim_ = value.getNumber(); onChanged(); return this; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_1.PrimType prim = 1; * @return This builder for chaining. */ public Builder clearPrim() { bitField0_ = (bitField0_ & ~0x00000001); prim_ = 0; onChanged(); return this; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; public static final int VARS_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); } else { vars_ = null; varsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Type.Forall result) { if (varsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { vars_ = java.util.Collections.unmodifiableList(vars_); bitField0_ = (bitField0_ & ~0x00000001); } result.vars_ = vars_; } else { result.vars_ = varsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type.Forall result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry); if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(m); } else { varsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** *
         * Body of the quantification
         * 
* * .daml_lf_1.Type body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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; @SuppressWarnings("serial") 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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Type.Struct result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type.Struct result) { int from_bitField0_ = bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.FieldWithType m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.FieldWithType.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; @SuppressWarnings("serial") 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_)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (varBuilder_ != null) { varBuilder_.clear(); } if (conBuilder_ != null) { conBuilder_.clear(); } if (primBuilder_ != null) { primBuilder_.clear(); } if (forallBuilder_ != null) { forallBuilder_.clear(); } if (structBuilder_ != null) { structBuilder_.clear(); } if (synBuilder_ != null) { synBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Type result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Type result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && varBuilder_ != null) { result.sum_ = varBuilder_.build(); } if (sumCase_ == 2 && conBuilder_ != null) { result.sum_ = conBuilder_.build(); } if (sumCase_ == 3 && primBuilder_ != null) { result.sum_ = primBuilder_.build(); } if (sumCase_ == 5 && forallBuilder_ != null) { result.sum_ = forallBuilder_.build(); } if (sumCase_ == 7 && structBuilder_ != null) { result.sum_ = structBuilder_.build(); } if (sumCase_ == 12 && synBuilder_ != null) { result.sum_ = synBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getVarFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 26: { input.readMessage( getPrimFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 case 42: { input.readMessage( getForallFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 58: { input.readMessage( getStructFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 88: { sum_ = input.readSInt64(); sumCase_ = 11; break; } // case 88 case 98: { input.readMessage( getSynFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 12; break; } // case 98 case 104: { sum_ = input.readInt32(); sumCase_ = 13; break; } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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; @SuppressWarnings("serial") 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) { com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode result = com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.forNumber( (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_)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.PrimLit result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.PrimLit result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 2; sum_ = s; break; } // case 18 case 34: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 4; sum_ = s; break; } // case 34 case 41: { sum_ = input.readSFixed64(); sumCase_ = 5; break; } // case 41 case 58: { java.lang.String s = input.readStringRequireUtf8(); sumCase_ = 7; sum_ = s; break; } // case 58 case 64: { sum_ = input.readInt32(); sumCase_ = 8; break; } // case 64 case 80: { sum_ = input.readInt32(); sumCase_ = 10; break; } // case 80 case 88: { sum_ = input.readInt32(); sumCase_ = 11; break; } // case 88 case 96: { sum_ = input.readInt32(); sumCase_ = 12; break; } // case 96 case 104: { int rawValue = input.readEnum(); sumCase_ = 13; sum_ = rawValue; break; } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
       *  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) { com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode result = com.daml.daml_lf_dev.DamlLf1.PrimLit.RoundingMode.forNumber( (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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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(); } 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_ = 0; /** * 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Location.Range result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.startLine_ = startLine_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startCol_ = startCol_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endLine_ = endLine_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endCol_ = endCol_; } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startLine_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { startCol_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { endLine_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { endCol_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 start_line = 1; * @return This builder for chaining. */ public Builder clearStartLine() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 start_col = 2; * @return This builder for chaining. */ public Builder clearStartCol() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 end_line = 3; * @return This builder for chaining. */ public Builder clearEndLine() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int32 end_col = 4; * @return This builder for chaining. */ public Builder clearEndCol() { bitField0_ = (bitField0_ & ~0x00000008); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; } } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * (*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 module_ == null ? com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance() : module_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 range_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.Range.getDefaultInstance() : range_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getModule()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRange()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModule()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRange()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getModuleFieldBuilder(); getRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Location result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.module_ = moduleBuilder_ == null ? module_ : moduleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModuleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
       * (*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 ((bitField0_ & 0x00000001) != 0); } /** *
       * (*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; } else { moduleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { moduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf1.ModuleRef.getDefaultInstance()) { getModuleBuilder().mergeFrom(value); } else { module_ = value; } } else { moduleBuilder_.mergeFrom(value); } if (module_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_1.ModuleRef module = 1; */ public Builder clearModule() { bitField0_ = (bitField0_ & ~0x00000001); module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { rangeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && range_ != null && range_ != com.daml.daml_lf_dev.DamlLf1.Location.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } if (range_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Location.Range range = 2; */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000002); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location.Range range = 2; */ public com.daml.daml_lf_dev.DamlLf1.Location.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .daml_lf_1.Expr.CallInterface call_interface = 38; */ com.daml.daml_lf_dev.DamlLf1.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; * @return Whether the signatoryInterface field is set. */ boolean hasSignatoryInterface(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; * @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.15*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder(); /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; * @return Whether the observerInterface field is set. */ boolean hasObserverInterface(); /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; * @return The observerInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getObserverInterface(); /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder(); /** *
     * Invoke an interface method.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; * @return Whether the viewInterface field is set. */ boolean hasViewInterface(); /** *
     * Invoke an interface method.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; * @return The viewInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface getViewInterface(); /** *
     * Invoke an interface method.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder getViewInterfaceOrBuilder(); /** *
     * Unsafe conversion from interface payloads.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; * @return Whether the unsafeFromInterface field is set. */ boolean hasUnsafeFromInterface(); /** *
     * Unsafe conversion from interface payloads.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; * @return The unsafeFromInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getUnsafeFromInterface(); /** *
     * Unsafe conversion from interface payloads.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; * @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.15*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; * @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.15*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder(); /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; * @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 = 44; * @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 = 44; */ com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder(); /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; * @return Whether the fromRequiredInterface field is set. */ boolean hasFromRequiredInterface(); /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; * @return The fromRequiredInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getFromRequiredInterface(); /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder(); /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; * @return Whether the unsafeFromRequiredInterface field is set. */ boolean hasUnsafeFromRequiredInterface(); /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; * @return The unsafeFromRequiredInterface. */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface(); /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder(); /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; * @return Whether the choiceController field is set. */ boolean hasChoiceController(); /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; * @return The choiceController. */ com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController getChoiceController(); /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder getChoiceControllerOrBuilder(); /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; * @return Whether the choiceObserver field is set. */ boolean hasChoiceObserver(); /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; * @return The choiceObserver. */ com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver getChoiceObserver(); /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder getChoiceObserverOrBuilder(); /** *
     * *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(); 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(); } 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } public static final int FIELDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTycon()); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(2, fields_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.RecCon result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000002); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.RecCon result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.FieldWithExpr m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the record being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTycon()); } if (fieldCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getRecord()); } if (fieldCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) field_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (fieldCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecord()); } if (fieldCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); getRecordFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.RecProj result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.record_ = recordBuilder_ == null ? record_ : recordBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr.RecProj result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 2; field_ = s; break; } // case 18 case 26: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 32: { field_ = input.readInt32(); fieldCase_ = 4; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the record being projected.
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { recordBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { recordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && record_ != null && record_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getRecordBuilder().mergeFrom(value); } else { record_ = value; } } else { recordBuilder_.mergeFrom(value); } if (record_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; */ public Builder clearRecord() { bitField0_ = (bitField0_ & ~0x00000008); record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } onChanged(); return this; } /** *
         * projected expression
         * 
* * .daml_lf_1.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getRecordBuilder() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 record_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : record_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTycon()); } if (fieldCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getRecord()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getUpdate()); } if (fieldCase_ == 5) { output.writeInt32( 5, (int)((java.lang.Integer) field_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (fieldCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecord()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdate()); } if (fieldCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 5, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); getRecordFieldBuilder(); getUpdateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.record_ = recordBuilder_ == null ? record_ : recordBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr.RecUpd result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 2; field_ = s; break; } // case 18 case 26: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 40: { field_ = input.readInt32(); fieldCase_ = 5; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the record being updated
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { recordBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { recordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && record_ != null && record_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getRecordBuilder().mergeFrom(value); } else { record_ = value; } } else { recordBuilder_.mergeFrom(value); } if (record_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; */ public Builder clearRecord() { bitField0_ = (bitField0_ & ~0x00000008); record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } onChanged(); return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_1.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getRecordBuilder() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
         * 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; } else { updateBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { updateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && update_ != null && update_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; } } else { updateBuilder_.mergeFrom(value); } if (update_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_1.Expr update = 4; */ public Builder clearUpdate() { bitField0_ = (bitField0_ & ~0x00000010); update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int variantConCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 variantArg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : variantArg_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTycon()); } if (variantConCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, variantCon_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getVariantArg()); } if (variantConCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) variantCon_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTycon()); } if (variantConCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, variantCon_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getVariantArg()); } if (variantConCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) variantCon_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); getVariantArgFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } variantArg_ = null; if (variantArgBuilder_ != null) { variantArgBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.variantArg_ = variantArgBuilder_ == null ? variantArg_ : variantArgBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr.VariantCon result) { result.variantConCase_ = variantConCase_; result.variantCon_ = this.variantCon_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); variantConCase_ = 2; variantCon_ = s; break; } // case 18 case 26: { input.readMessage( getVariantArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 32: { variantCon_ = input.readInt32(); variantConCase_ = 4; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; * @return Whether the tycon field is set. */ public boolean hasTycon() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { variantArgBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { variantArgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && variantArg_ != null && variantArg_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getVariantArgBuilder().mergeFrom(value); } else { variantArg_ = value; } } else { variantArgBuilder_.mergeFrom(value); } if (variantArg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; */ public Builder clearVariantArg() { bitField0_ = (bitField0_ & ~0x00000008); variantArg_ = null; if (variantArgBuilder_ != null) { variantArgBuilder_.dispose(); variantArgBuilder_ = null; } onChanged(); return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_1.Expr variant_arg = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getVariantArgBuilder() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int enumConCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : tycon_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr.EnumCon result) { result.enumConCase_ = enumConCase_; result.enumCon_ = this.enumCon_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); enumConCase_ = 2; enumCon_ = s; break; } // case 18 case 24: { enumCon_ = input.readInt32(); enumConCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); return this; } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_1.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTyconBuilder() { bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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; @SuppressWarnings("serial") 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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.StructCon result) { int from_bitField0_ = bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.FieldWithExpr m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.FieldWithExpr.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStruct()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStruct()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getStructFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.struct_ = structBuilder_ == null ? struct_ : structBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr.StructProj result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { field_ = input.readInt32(); fieldCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
         * *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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { structBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { structBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && struct_ != null && struct_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getStructBuilder().mergeFrom(value); } else { struct_ = value; } } else { structBuilder_.mergeFrom(value); } if (struct_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder clearStruct() { bitField0_ = (bitField0_ & ~0x00000004); struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } onChanged(); return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_1.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getStructBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 struct_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : struct_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStruct()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdate()); } if (fieldCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) field_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStruct()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpdate()); } if (fieldCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getStructFieldBuilder(); getUpdateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.struct_ = structBuilder_ == null ? struct_ : structBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr.StructUpd result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 32: { field_ = input.readInt32(); fieldCase_ = 4; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
         * *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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { structBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { structBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && struct_ != null && struct_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getStructBuilder().mergeFrom(value); } else { struct_ = value; } } else { structBuilder_.mergeFrom(value); } if (struct_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public Builder clearStruct() { bitField0_ = (bitField0_ & ~0x00000004); struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } onChanged(); return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_1.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getStructBuilder() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { updateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { updateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && update_ != null && update_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; } } else { updateBuilder_.mergeFrom(value); } if (update_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_1.Expr update = 3; */ public Builder clearUpdate() { bitField0_ = (bitField0_ & ~0x00000008); update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 fun_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : fun_; } public static final int ARGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFun()); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getFunFieldBuilder(); getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fun_ = null; if (funBuilder_ != null) { funBuilder_.dispose(); funBuilder_ = null; } if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); } else { args_ = null; argsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.App result) { if (argsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.App result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.fun_ = funBuilder_ == null ? fun_ : funBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000002); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getFunFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.Expr m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(m); } else { argsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { funBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { funBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public Builder mergeFun(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (funBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && fun_ != null && fun_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getFunBuilder().mergeFrom(value); } else { fun_ = value; } } else { funBuilder_.mergeFrom(value); } if (fun_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public Builder clearFun() { bitField0_ = (bitField0_ & ~0x00000001); fun_ = null; if (funBuilder_ != null) { funBuilder_.dispose(); funBuilder_ = null; } onChanged(); return this; } /** *
         * Function
         * 
* * .daml_lf_1.Expr fun = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getFunBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } public static final int TYPES_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getExpr()); } for (int i = 0; i < types_.size(); i++) { output.writeMessage(2, types_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getExprFieldBuilder(); getTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } if (typesBuilder_ == null) { types_ = java.util.Collections.emptyList(); } else { types_ = null; typesBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.TyApp result) { if (typesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { types_ = java.util.Collections.unmodifiableList(types_); bitField0_ = (bitField0_ & ~0x00000002); } result.types_ = types_; } else { result.types_ = typesBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.TyApp result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureTypesIsMutable(); types_.addAll(other.types_); } onChanged(); } } else { if (!other.types_.isEmpty()) { if (typesBuilder_.isEmpty()) { typesBuilder_.dispose(); typesBuilder_ = null; types_ = other.types_; bitField0_ = (bitField0_ & ~0x00000002); typesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTypesFieldBuilder() : null; } else { typesBuilder_.addAllMessages(other.types_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (typesBuilder_ == null) { ensureTypesIsMutable(); types_.add(m); } else { typesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000001); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_1.Expr expr = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { types_ = new java.util.ArrayList(types_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; public static final int PARAM_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (paramBuilder_ == null) { param_ = java.util.Collections.emptyList(); } else { param_ = null; paramBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.Abs result) { if (paramBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { param_ = java.util.Collections.unmodifiableList(param_); bitField0_ = (bitField0_ & ~0x00000001); } result.param_ = param_; } else { result.param_ = paramBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.Abs result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.VarWithType.parser(), extensionRegistry); if (paramBuilder_ == null) { ensureParamIsMutable(); param_.add(m); } else { paramBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; public static final int PARAM_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (paramBuilder_ == null) { param_ = java.util.Collections.emptyList(); } else { param_ = null; paramBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs result) { if (paramBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { param_ = java.util.Collections.unmodifiableList(param_); bitField0_ = (bitField0_ & ~0x00000001); } result.param_ = param_; } else { result.param_ = paramBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.TyAbs result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry); if (paramBuilder_ == null) { ensureParamIsMutable(); param_.add(m); } else { paramBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.Nil result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } public static final int FRONT_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 tail_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tail_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } for (int i = 0; i < front_.size(); i++) { output.writeMessage(2, front_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getTail()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTail()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getFrontFieldBuilder(); getTailFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } if (frontBuilder_ == null) { front_ = java.util.Collections.emptyList(); } else { front_ = null; frontBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); tail_ = null; if (tailBuilder_ != null) { tailBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Expr.Cons result) { if (frontBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { front_ = java.util.Collections.unmodifiableList(front_); bitField0_ = (bitField0_ & ~0x00000002); } result.front_ = front_; } else { result.front_ = frontBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.Cons result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.tail_ = tailBuilder_ == null ? tail_ : tailBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureFrontIsMutable(); front_.addAll(other.front_); } onChanged(); } } else { if (!other.front_.isEmpty()) { if (frontBuilder_.isEmpty()) { frontBuilder_.dispose(); frontBuilder_ = null; front_ = other.front_; bitField0_ = (bitField0_ & ~0x00000002); frontBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrontFieldBuilder() : null; } else { frontBuilder_.addAllMessages(other.front_); } } } if (other.hasTail()) { mergeTail(other.getTail()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.Expr m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Expr.parser(), extensionRegistry); if (frontBuilder_ == null) { ensureFrontIsMutable(); front_.add(m); } else { frontBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getTailFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * type of the list elements.
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { front_ = new java.util.ArrayList(front_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { tailBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { tailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && tail_ != null && tail_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getTailBuilder().mergeFrom(value); } else { tail_ = value; } } else { tailBuilder_.mergeFrom(value); } if (tail_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; */ public Builder clearTail() { bitField0_ = (bitField0_ & ~0x00000004); tail_ = null; if (tailBuilder_ != null) { tailBuilder_.dispose(); tailBuilder_ = null; } onChanged(); return this; } /** *
         * tail of the list
         * 
* * .daml_lf_1.Expr tail = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getTailBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalNone result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 element
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.OptionalSome result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 element
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * type of the element
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** *
         * contained value
         * FixMe: renamed to 'value'
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ToAny result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.FromAny result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Value of type Any
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ToAnyException result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.FromAnyException result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Value of type AnyException
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : exceptionType_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : exceptionExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getReturnType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExceptionType()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getExceptionExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReturnType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExceptionType()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExceptionExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getReturnTypeFieldBuilder(); getExceptionTypeFieldBuilder(); getExceptionExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; returnType_ = null; if (returnTypeBuilder_ != null) { returnTypeBuilder_.dispose(); returnTypeBuilder_ = null; } exceptionType_ = null; if (exceptionTypeBuilder_ != null) { exceptionTypeBuilder_.dispose(); exceptionTypeBuilder_ = null; } exceptionExpr_ = null; if (exceptionExprBuilder_ != null) { exceptionExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.Throw result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.returnType_ = returnTypeBuilder_ == null ? returnType_ : returnTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.exceptionType_ = exceptionTypeBuilder_ == null ? exceptionType_ : exceptionTypeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.exceptionExpr_ = exceptionExprBuilder_ == null ? exceptionExpr_ : exceptionExprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getReturnTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExceptionTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExceptionExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { returnTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { returnTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && returnType_ != null && returnType_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getReturnTypeBuilder().mergeFrom(value); } else { returnType_ = value; } } else { returnTypeBuilder_.mergeFrom(value); } if (returnType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_1.Type return_type = 1; */ public Builder clearReturnType() { bitField0_ = (bitField0_ & ~0x00000001); returnType_ = null; if (returnTypeBuilder_ != null) { returnTypeBuilder_.dispose(); returnTypeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exceptionTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exceptionTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && exceptionType_ != null && exceptionType_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getExceptionTypeBuilder().mergeFrom(value); } else { exceptionType_ = value; } } else { exceptionTypeBuilder_.mergeFrom(value); } if (exceptionType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_1.Type exception_type = 2; */ public Builder clearExceptionType() { bitField0_ = (bitField0_ & ~0x00000002); exceptionType_ = null; if (exceptionTypeBuilder_ != null) { exceptionTypeBuilder_.dispose(); exceptionTypeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { exceptionExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { exceptionExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && exceptionExpr_ != null && exceptionExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExceptionExprBuilder().mergeFrom(value); } else { exceptionExpr_ = value; } } else { exceptionExprBuilder_.mergeFrom(value); } if (exceptionExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public Builder clearExceptionExpr() { bitField0_ = (bitField0_ & ~0x00000004); exceptionExpr_ = null; if (exceptionExprBuilder_ != null) { exceptionExprBuilder_.dispose(); exceptionExprBuilder_ = null; } onChanged(); return this; } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_1.Expr exception_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExceptionExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : templateExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterfaceType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTemplateType()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getTemplateExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateType()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTemplateExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.15*
       * 
* * 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) { getInterfaceTypeFieldBuilder(); getTemplateTypeFieldBuilder(); getTemplateExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } templateExpr_ = null; if (templateExprBuilder_ != null) { templateExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ToInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interfaceType_ = interfaceTypeBuilder_ == null ? interfaceType_ : interfaceTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.templateType_ = templateTypeBuilder_ == null ? templateType_ : templateTypeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.templateExpr_ = templateExprBuilder_ == null ? templateExpr_ : templateExprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTemplateTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTemplateExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { templateTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && templateType_ != null && templateType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateTypeBuilder().mergeFrom(value); } else { templateType_ = value; } } else { templateTypeBuilder_.mergeFrom(value); } if (templateType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder clearTemplateType() { bitField0_ = (bitField0_ & ~0x00000002); templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateTypeBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { templateExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { templateExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public Builder mergeTemplateExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (templateExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && templateExpr_ != null && templateExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getTemplateExprBuilder().mergeFrom(value); } else { templateExpr_ = value; } } else { templateExprBuilder_.mergeFrom(value); } if (templateExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public Builder clearTemplateExpr() { bitField0_ = (bitField0_ & ~0x00000004); templateExpr_ = null; if (templateExprBuilder_ != null) { templateExprBuilder_.dispose(); templateExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr template_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getTemplateExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterfaceType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTemplateType()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getInterfaceExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateType()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInterfaceExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.15*
       * 
* * 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) { getInterfaceTypeFieldBuilder(); getTemplateTypeFieldBuilder(); getInterfaceExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.FromInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interfaceType_ = interfaceTypeBuilder_ == null ? interfaceType_ : interfaceTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.templateType_ = templateTypeBuilder_ == null ? templateType_ : templateTypeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.interfaceExpr_ = interfaceExprBuilder_ == null ? interfaceExpr_ : interfaceExprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTemplateTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getInterfaceExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { templateTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && templateType_ != null && templateType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateTypeBuilder().mergeFrom(value); } else { templateType_ = value; } } else { templateTypeBuilder_.mergeFrom(value); } if (templateType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder clearTemplateType() { bitField0_ = (bitField0_ & ~0x00000002); templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateTypeBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000004); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 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.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } public static final int METHOD_INTERNED_NAME_FIELD_NUMBER = 2; private int methodInternedName_ = 0; /** * 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterfaceType()); } if (methodInternedName_ != 0) { output.writeInt32(2, methodInternedName_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getInterfaceExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (methodInternedName_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, methodInternedName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInterfaceExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.15*
       * 
* * 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) { getInterfaceTypeFieldBuilder(); getInterfaceExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } methodInternedName_ = 0; interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.CallInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interfaceType_ = interfaceTypeBuilder_ == null ? interfaceType_ : interfaceTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.methodInternedName_ = methodInternedName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.interfaceExpr_ = interfaceExprBuilder_ == null ? interfaceExpr_ : interfaceExprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { methodInternedName_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getInterfaceExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 method_interned_name = 2; * @return This builder for chaining. */ public Builder clearMethodInternedName() { bitField0_ = (bitField0_ & ~0x00000002); 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000004); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 ViewInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ViewInterface) 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(); /** * .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(); } /** *
     * Obtain an interface view
     * *Available in versions >= 1.15*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ViewInterface} */ public static final class ViewInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ViewInterface) ViewInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use ViewInterface.newBuilder() to construct. private ViewInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ViewInterface() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ViewInterface(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ViewInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ViewInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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.ViewInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface other = (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface 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.ViewInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface 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.ViewInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface 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.ViewInterface 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.ViewInterface 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.ViewInterface 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.ViewInterface 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.ViewInterface 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.ViewInterface 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.ViewInterface 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 an interface view
       * *Available in versions >= 1.15*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ViewInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ViewInterface) com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ViewInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ViewInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.class, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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_ViewInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface build() { com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface result = new com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.ViewInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance()) return this; if (other.hasInterface()) { mergeInterface(other.getInterface()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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.Expr.ViewInterface) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ViewInterface) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ViewInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.ViewInterface 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
     * *Available in versions >= 1.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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
       * *Available in versions >= 1.15*
       * 
* * 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) { getInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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
     * *Available in versions >= 1.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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
       * *Available in versions >= 1.15*
       * 
* * 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) { getInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 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.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interfaceType_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 templateType_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : templateType_; } 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } 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 ((bitField0_ & 0x00000008) != 0); } /** * .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 interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterfaceType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTemplateType()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getContractIdExpr()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getInterfaceExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterfaceType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTemplateType()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getContractIdExpr()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInterfaceExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.15*
       * 
* * 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) { getInterfaceTypeFieldBuilder(); getTemplateTypeFieldBuilder(); getContractIdExprFieldBuilder(); getInterfaceExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } contractIdExpr_ = null; if (contractIdExprBuilder_ != null) { contractIdExprBuilder_.dispose(); contractIdExprBuilder_ = null; } interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interfaceType_ = interfaceTypeBuilder_ == null ? interfaceType_ : interfaceTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.templateType_ = templateTypeBuilder_ == null ? templateType_ : templateTypeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contractIdExpr_ = contractIdExprBuilder_ == null ? contractIdExpr_ : contractIdExprBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.interfaceExpr_ = interfaceExprBuilder_ == null ? interfaceExpr_ : interfaceExprBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTemplateTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getContractIdExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getInterfaceExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { templateTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && templateType_ != null && templateType_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateTypeBuilder().mergeFrom(value); } else { templateType_ = value; } } else { templateTypeBuilder_.mergeFrom(value); } if (templateType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public Builder clearTemplateType() { bitField0_ = (bitField0_ & ~0x00000002); templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateTypeBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { contractIdExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { contractIdExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && contractIdExpr_ != null && contractIdExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getContractIdExprBuilder().mergeFrom(value); } else { contractIdExpr_ = value; } } else { contractIdExprBuilder_.mergeFrom(value); } if (contractIdExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder clearContractIdExpr() { bitField0_ = (bitField0_ & ~0x00000004); contractIdExpr_ = null; if (contractIdExprBuilder_ != null) { contractIdExprBuilder_.dispose(); contractIdExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getContractIdExprBuilder() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** * .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; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000008); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequiredInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRequiringInterface()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequiringInterface()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getRequiredInterfaceFieldBuilder(); getRequiringInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.requiredInterface_ = requiredInterfaceBuilder_ == null ? requiredInterface_ : requiredInterfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requiringInterface_ = requiringInterfaceBuilder_ == null ? requiringInterface_ : requiringInterfaceBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRequiringInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { requiredInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredInterface_ != null && requiredInterface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getRequiredInterfaceBuilder().mergeFrom(value); } else { requiredInterface_ = value; } } else { requiredInterfaceBuilder_.mergeFrom(value); } if (requiredInterface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { bitField0_ = (bitField0_ & ~0x00000001); requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiredInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { requiringInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requiringInterface_ != null && requiringInterface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getRequiringInterfaceBuilder().mergeFrom(value); } else { requiringInterface_ = value; } } else { requiringInterfaceBuilder_.mergeFrom(value); } if (requiringInterface_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { bitField0_ = (bitField0_ & ~0x00000002); requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiringInterfaceBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequiredInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRequiringInterface()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequiringInterface()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getRequiredInterfaceFieldBuilder(); getRequiringInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.requiredInterface_ = requiredInterfaceBuilder_ == null ? requiredInterface_ : requiredInterfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requiringInterface_ = requiringInterfaceBuilder_ == null ? requiringInterface_ : requiringInterfaceBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRequiringInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { requiredInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredInterface_ != null && requiredInterface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getRequiredInterfaceBuilder().mergeFrom(value); } else { requiredInterface_ = value; } } else { requiredInterfaceBuilder_.mergeFrom(value); } if (requiredInterface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { bitField0_ = (bitField0_ & ~0x00000001); requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiredInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { requiringInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requiringInterface_ != null && requiringInterface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getRequiringInterfaceBuilder().mergeFrom(value); } else { requiringInterface_ = value; } } else { requiringInterfaceBuilder_.mergeFrom(value); } if (requiringInterface_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { bitField0_ = (bitField0_ & ~0x00000002); requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiringInterfaceBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr expr = 3; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiredInterface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : requiringInterface_; } 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractIdExpr_; } 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 ((bitField0_ & 0x00000008) != 0); } /** * .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 interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : interfaceExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequiredInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRequiringInterface()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getContractIdExpr()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getInterfaceExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequiringInterface()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getContractIdExpr()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInterfaceExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getRequiredInterfaceFieldBuilder(); getRequiringInterfaceFieldBuilder(); getContractIdExprFieldBuilder(); getInterfaceExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } contractIdExpr_ = null; if (contractIdExprBuilder_ != null) { contractIdExprBuilder_.dispose(); contractIdExprBuilder_ = null; } interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.requiredInterface_ = requiredInterfaceBuilder_ == null ? requiredInterface_ : requiredInterfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requiringInterface_ = requiringInterfaceBuilder_ == null ? requiringInterface_ : requiringInterfaceBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contractIdExpr_ = contractIdExprBuilder_ == null ? contractIdExpr_ : contractIdExprBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.interfaceExpr_ = interfaceExprBuilder_ == null ? interfaceExpr_ : interfaceExprBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRequiringInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getContractIdExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getInterfaceExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { requiredInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredInterface_ != null && requiredInterface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getRequiredInterfaceBuilder().mergeFrom(value); } else { requiredInterface_ = value; } } else { requiredInterfaceBuilder_.mergeFrom(value); } if (requiredInterface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { bitField0_ = (bitField0_ & ~0x00000001); requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiredInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { requiringInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requiringInterface_ != null && requiringInterface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getRequiringInterfaceBuilder().mergeFrom(value); } else { requiringInterface_ = value; } } else { requiringInterfaceBuilder_.mergeFrom(value); } if (requiringInterface_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { bitField0_ = (bitField0_ & ~0x00000002); requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiringInterfaceBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { contractIdExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { contractIdExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && contractIdExpr_ != null && contractIdExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getContractIdExprBuilder().mergeFrom(value); } else { contractIdExpr_ = value; } } else { contractIdExprBuilder_.mergeFrom(value); } if (contractIdExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public Builder clearContractIdExpr() { bitField0_ = (bitField0_ & ~0x00000004); contractIdExpr_ = null; if (contractIdExprBuilder_ != null) { contractIdExprBuilder_.dispose(); contractIdExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getContractIdExprBuilder() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** * .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; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000008); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** *
         * interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 ChoiceControllerOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ChoiceController) 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(); /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** * .daml_lf_1.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ boolean hasContractExpr(); /** * .daml_lf_1.Expr contract_expr = 3; * @return The contractExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getContractExpr(); /** * .daml_lf_1.Expr contract_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractExprOrBuilder(); /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ boolean hasChoiceArgExpr(); /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getChoiceArgExpr(); /** * .daml_lf_1.Expr choice_arg_expr = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getChoiceArgExprOrBuilder(); } /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ChoiceController} */ public static final class ChoiceController extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ChoiceController) ChoiceControllerOrBuilder { private static final long serialVersionUID = 0L; // Use ChoiceController.newBuilder() to construct. private ChoiceController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChoiceController() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChoiceController(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceController_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.class, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_ = 0; /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } public static final int CONTRACT_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr contractExpr_; /** * .daml_lf_1.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ @java.lang.Override public boolean hasContractExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.Expr contract_expr = 3; * @return The contractExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getContractExpr() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } /** * .daml_lf_1.Expr contract_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractExprOrBuilder() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } public static final int CHOICE_ARG_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr choiceArgExpr_; /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ @java.lang.Override public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getChoiceArgExpr() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getChoiceArgExprOrBuilder() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getContractExpr()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getChoiceArgExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getContractExpr()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChoiceArgExpr()); } size += getUnknownFields().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.ChoiceController)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController other = (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (getChoiceInternedStr() != other.getChoiceInternedStr()) return false; if (hasContractExpr() != other.hasContractExpr()) return false; if (hasContractExpr()) { if (!getContractExpr() .equals(other.getContractExpr())) return false; } if (hasChoiceArgExpr() != other.hasChoiceArgExpr()) return false; if (hasChoiceArgExpr()) { if (!getChoiceArgExpr() .equals(other.getChoiceArgExpr())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasContractExpr()) { hash = (37 * hash) + CONTRACT_EXPR_FIELD_NUMBER; hash = (53 * hash) + getContractExpr().hashCode(); } if (hasChoiceArgExpr()) { hash = (37 * hash) + CHOICE_ARG_EXPR_FIELD_NUMBER; hash = (53 * hash) + getChoiceArgExpr().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController 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.ChoiceController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController 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.ChoiceController parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController 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.ChoiceController 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.ChoiceController 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.ChoiceController 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.ChoiceController 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.ChoiceController 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.ChoiceController 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.ChoiceController 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 controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ChoiceController} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ChoiceController) com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceController_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.class, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTemplateFieldBuilder(); getContractExprFieldBuilder(); getChoiceArgExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } choiceInternedStr_ = 0; contractExpr_ = null; if (contractExprBuilder_ != null) { contractExprBuilder_.dispose(); contractExprBuilder_ = null; } choiceArgExpr_ = null; if (choiceArgExprBuilder_ != null) { choiceArgExprBuilder_.dispose(); choiceArgExprBuilder_ = 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_ChoiceController_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController build() { com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController result = new com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.choiceInternedStr_ = choiceInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contractExpr_ = contractExprBuilder_ == null ? contractExpr_ : contractExprBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.choiceArgExpr_ = choiceArgExprBuilder_ == null ? choiceArgExpr_ : choiceArgExprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.ChoiceController) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.getChoiceInternedStr() != 0) { setChoiceInternedStr(other.getChoiceInternedStr()); } if (other.hasContractExpr()) { mergeContractExpr(other.getContractExpr()); } if (other.hasChoiceArgExpr()) { mergeChoiceArgExpr(other.getChoiceArgExpr()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { choiceInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getContractExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getChoiceArgExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 int choiceInternedStr_ ; /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } /** * int32 choice_interned_str = 2; * @param value The choiceInternedStr to set. * @return This builder for chaining. */ public Builder setChoiceInternedStr(int value) { choiceInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 choice_interned_str = 2; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); choiceInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr contractExpr_; 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> contractExprBuilder_; /** * .daml_lf_1.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ public boolean hasContractExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Expr contract_expr = 3; * @return The contractExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getContractExpr() { if (contractExprBuilder_ == null) { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } else { return contractExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder setContractExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractExpr_ = value; } else { contractExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder setContractExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (contractExprBuilder_ == null) { contractExpr_ = builderForValue.build(); } else { contractExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder mergeContractExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contractExpr_ != null && contractExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getContractExprBuilder().mergeFrom(value); } else { contractExpr_ = value; } } else { contractExprBuilder_.mergeFrom(value); } if (contractExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder clearContractExpr() { bitField0_ = (bitField0_ & ~0x00000004); contractExpr_ = null; if (contractExprBuilder_ != null) { contractExprBuilder_.dispose(); contractExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getContractExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContractExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractExprOrBuilder() { if (contractExprBuilder_ != null) { return contractExprBuilder_.getMessageOrBuilder(); } else { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } } /** * .daml_lf_1.Expr contract_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> getContractExprFieldBuilder() { if (contractExprBuilder_ == null) { contractExprBuilder_ = 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>( getContractExpr(), getParentForChildren(), isClean()); contractExpr_ = null; } return contractExprBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr choiceArgExpr_; 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> choiceArgExprBuilder_; /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getChoiceArgExpr() { if (choiceArgExprBuilder_ == null) { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } else { return choiceArgExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (choiceArgExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgExpr_ = value; } else { choiceArgExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (choiceArgExprBuilder_ == null) { choiceArgExpr_ = builderForValue.build(); } else { choiceArgExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder mergeChoiceArgExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (choiceArgExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && choiceArgExpr_ != null && choiceArgExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getChoiceArgExprBuilder().mergeFrom(value); } else { choiceArgExpr_ = value; } } else { choiceArgExprBuilder_.mergeFrom(value); } if (choiceArgExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder clearChoiceArgExpr() { bitField0_ = (bitField0_ & ~0x00000008); choiceArgExpr_ = null; if (choiceArgExprBuilder_ != null) { choiceArgExprBuilder_.dispose(); choiceArgExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getChoiceArgExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getChoiceArgExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getChoiceArgExprOrBuilder() { if (choiceArgExprBuilder_ != null) { return choiceArgExprBuilder_.getMessageOrBuilder(); } else { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } } /** * .daml_lf_1.Expr choice_arg_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> getChoiceArgExprFieldBuilder() { if (choiceArgExprBuilder_ == null) { choiceArgExprBuilder_ = 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>( getChoiceArgExpr(), getParentForChildren(), isClean()); choiceArgExpr_ = null; } return choiceArgExprBuilder_; } @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.ChoiceController) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ChoiceController) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChoiceController parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.ChoiceController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChoiceObserverOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.ChoiceObserver) 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(); /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** * .daml_lf_1.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ boolean hasContractExpr(); /** * .daml_lf_1.Expr contract_expr = 3; * @return The contractExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getContractExpr(); /** * .daml_lf_1.Expr contract_expr = 3; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractExprOrBuilder(); /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ boolean hasChoiceArgExpr(); /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ com.daml.daml_lf_dev.DamlLf1.Expr getChoiceArgExpr(); /** * .daml_lf_1.Expr choice_arg_expr = 4; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getChoiceArgExprOrBuilder(); } /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Expr.ChoiceObserver} */ public static final class ChoiceObserver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Expr.ChoiceObserver) ChoiceObserverOrBuilder { private static final long serialVersionUID = 0L; // Use ChoiceObserver.newBuilder() to construct. private ChoiceObserver(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChoiceObserver() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChoiceObserver(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceObserver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceObserver_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.class, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_ = 0; /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } public static final int CONTRACT_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Expr contractExpr_; /** * .daml_lf_1.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ @java.lang.Override public boolean hasContractExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.Expr contract_expr = 3; * @return The contractExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getContractExpr() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } /** * .daml_lf_1.Expr contract_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractExprOrBuilder() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } public static final int CHOICE_ARG_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf1.Expr choiceArgExpr_; /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ @java.lang.Override public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getChoiceArgExpr() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getChoiceArgExprOrBuilder() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getContractExpr()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getChoiceArgExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getContractExpr()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChoiceArgExpr()); } size += getUnknownFields().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.ChoiceObserver)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver other = (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (getChoiceInternedStr() != other.getChoiceInternedStr()) return false; if (hasContractExpr() != other.hasContractExpr()) return false; if (hasContractExpr()) { if (!getContractExpr() .equals(other.getContractExpr())) return false; } if (hasChoiceArgExpr() != other.hasChoiceArgExpr()) return false; if (hasChoiceArgExpr()) { if (!getChoiceArgExpr() .equals(other.getChoiceArgExpr())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasContractExpr()) { hash = (37 * hash) + CONTRACT_EXPR_FIELD_NUMBER; hash = (53 * hash) + getContractExpr().hashCode(); } if (hasChoiceArgExpr()) { hash = (37 * hash) + CHOICE_ARG_EXPR_FIELD_NUMBER; hash = (53 * hash) + getChoiceArgExpr().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver 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.ChoiceObserver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver 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.ChoiceObserver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver 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.ChoiceObserver 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.ChoiceObserver 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.ChoiceObserver 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.ChoiceObserver 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.ChoiceObserver 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.ChoiceObserver 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.ChoiceObserver 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 for a choice.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Expr.ChoiceObserver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.ChoiceObserver) com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceObserver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Expr_ChoiceObserver_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.class, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTemplateFieldBuilder(); getContractExprFieldBuilder(); getChoiceArgExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } choiceInternedStr_ = 0; contractExpr_ = null; if (contractExprBuilder_ != null) { contractExprBuilder_.dispose(); contractExprBuilder_ = null; } choiceArgExpr_ = null; if (choiceArgExprBuilder_ != null) { choiceArgExprBuilder_.dispose(); choiceArgExprBuilder_ = 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_ChoiceObserver_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver build() { com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver buildPartial() { com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver result = new com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.choiceInternedStr_ = choiceInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contractExpr_ = contractExprBuilder_ == null ? contractExpr_ : contractExprBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.choiceArgExpr_ = choiceArgExprBuilder_ == null ? choiceArgExpr_ : choiceArgExprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.ChoiceObserver) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver other) { if (other == com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.getChoiceInternedStr() != 0) { setChoiceInternedStr(other.getChoiceInternedStr()); } if (other.hasContractExpr()) { mergeContractExpr(other.getContractExpr()); } if (other.hasChoiceArgExpr()) { mergeChoiceArgExpr(other.getChoiceArgExpr()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { choiceInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getContractExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getChoiceArgExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 int choiceInternedStr_ ; /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } /** * int32 choice_interned_str = 2; * @param value The choiceInternedStr to set. * @return This builder for chaining. */ public Builder setChoiceInternedStr(int value) { choiceInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 choice_interned_str = 2; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); choiceInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.Expr contractExpr_; 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> contractExprBuilder_; /** * .daml_lf_1.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ public boolean hasContractExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Expr contract_expr = 3; * @return The contractExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getContractExpr() { if (contractExprBuilder_ == null) { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } else { return contractExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder setContractExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractExpr_ = value; } else { contractExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder setContractExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (contractExprBuilder_ == null) { contractExpr_ = builderForValue.build(); } else { contractExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder mergeContractExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (contractExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contractExpr_ != null && contractExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getContractExprBuilder().mergeFrom(value); } else { contractExpr_ = value; } } else { contractExprBuilder_.mergeFrom(value); } if (contractExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public Builder clearContractExpr() { bitField0_ = (bitField0_ & ~0x00000004); contractExpr_ = null; if (contractExprBuilder_ != null) { contractExprBuilder_.dispose(); contractExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getContractExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContractExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getContractExprOrBuilder() { if (contractExprBuilder_ != null) { return contractExprBuilder_.getMessageOrBuilder(); } else { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : contractExpr_; } } /** * .daml_lf_1.Expr contract_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> getContractExprFieldBuilder() { if (contractExprBuilder_ == null) { contractExprBuilder_ = 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>( getContractExpr(), getParentForChildren(), isClean()); contractExpr_ = null; } return contractExprBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr choiceArgExpr_; 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> choiceArgExprBuilder_; /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_1.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ public com.daml.daml_lf_dev.DamlLf1.Expr getChoiceArgExpr() { if (choiceArgExprBuilder_ == null) { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } else { return choiceArgExprBuilder_.getMessage(); } } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (choiceArgExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgExpr_ = value; } else { choiceArgExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (choiceArgExprBuilder_ == null) { choiceArgExpr_ = builderForValue.build(); } else { choiceArgExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder mergeChoiceArgExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (choiceArgExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && choiceArgExpr_ != null && choiceArgExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getChoiceArgExprBuilder().mergeFrom(value); } else { choiceArgExpr_ = value; } } else { choiceArgExprBuilder_.mergeFrom(value); } if (choiceArgExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public Builder clearChoiceArgExpr() { bitField0_ = (bitField0_ & ~0x00000008); choiceArgExpr_ = null; if (choiceArgExprBuilder_ != null) { choiceArgExprBuilder_.dispose(); choiceArgExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getChoiceArgExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getChoiceArgExprFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getChoiceArgExprOrBuilder() { if (choiceArgExprBuilder_ != null) { return choiceArgExprBuilder_.getMessageOrBuilder(); } else { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : choiceArgExpr_; } } /** * .daml_lf_1.Expr choice_arg_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> getChoiceArgExprFieldBuilder() { if (choiceArgExprBuilder_ == null) { choiceArgExprBuilder_ = 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>( getChoiceArgExpr(), getParentForChildren(), isClean()); choiceArgExpr_ = null; } return choiceArgExprBuilder_; } @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.ChoiceObserver) } // @@protoc_insertion_point(class_scope:daml_lf_1.Expr.ChoiceObserver) private static final com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver(); } public static com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChoiceObserver parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.ChoiceObserver 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(); } 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); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getType()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr.Experimental result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasType()) { mergeType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Type type = 2; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 bitField0_; private int sumCase_ = 0; @SuppressWarnings("serial") 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), SIGNATORY_INTERFACE(39), OBSERVER_INTERFACE(40), VIEW_INTERFACE(41), UNSAFE_FROM_INTERFACE(42), INTERFACE_TEMPLATE_TYPE_REP(43), TO_REQUIRED_INTERFACE(44), FROM_REQUIRED_INTERFACE(45), UNSAFE_FROM_REQUIRED_INTERFACE(46), CHOICE_CONTROLLER(47), CHOICE_OBSERVER(48), 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 SIGNATORY_INTERFACE; case 40: return OBSERVER_INTERFACE; case 41: return VIEW_INTERFACE; case 42: return UNSAFE_FROM_INTERFACE; case 43: return INTERFACE_TEMPLATE_TYPE_REP; case 44: return TO_REQUIRED_INTERFACE; case 45: return FROM_REQUIRED_INTERFACE; case 46: return UNSAFE_FROM_REQUIRED_INTERFACE; case 47: return CHOICE_CONTROLLER; case 48: return CHOICE_OBSERVER; 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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) { com.daml.daml_lf_dev.DamlLf1.BuiltinFunction result = com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.forNumber( (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) { com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.forNumber( (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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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.15*
     * 
* * .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 SIGNATORY_INTERFACE_FIELD_NUMBER = 39; /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; * @return Whether the signatoryInterface field is set. */ @java.lang.Override public boolean hasSignatoryInterface() { return sumCase_ == 39; } /** *
     * Obtain a contract's signatories/observers through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; * @return The signatoryInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getSignatoryInterface() { if (sumCase_ == 39) { 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.15*
     * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder() { if (sumCase_ == 39) { 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 = 40; /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; * @return Whether the observerInterface field is set. */ @java.lang.Override public boolean hasObserverInterface() { return sumCase_ == 40; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; * @return The observerInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getObserverInterface() { if (sumCase_ == 40) { 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 = 40; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder() { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } public static final int VIEW_INTERFACE_FIELD_NUMBER = 41; /** *
     * Invoke an interface method.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; * @return Whether the viewInterface field is set. */ @java.lang.Override public boolean hasViewInterface() { return sumCase_ == 41; } /** *
     * Invoke an interface method.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; * @return The viewInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface getViewInterface() { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } /** *
     * Invoke an interface method.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder getViewInterfaceOrBuilder() { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } public static final int UNSAFE_FROM_INTERFACE_FIELD_NUMBER = 42; /** *
     * Unsafe conversion from interface payloads.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; * @return Whether the unsafeFromInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromInterface() { return sumCase_ == 42; } /** *
     * Unsafe conversion from interface payloads.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; * @return The unsafeFromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getUnsafeFromInterface() { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } /** *
     * Unsafe conversion from interface payloads.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder() { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } public static final int INTERFACE_TEMPLATE_TYPE_REP_FIELD_NUMBER = 43; /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; * @return Whether the interfaceTemplateTypeRep field is set. */ @java.lang.Override public boolean hasInterfaceTemplateTypeRep() { return sumCase_ == 43; } /** *
     * Obtain the type representation of a contract's template through an interface.
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; * @return The interfaceTemplateTypeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep() { if (sumCase_ == 43) { 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.15*
     * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder() { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } public static final int TO_REQUIRED_INTERFACE_FIELD_NUMBER = 44; /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; * @return Whether the toRequiredInterface field is set. */ @java.lang.Override public boolean hasToRequiredInterface() { return sumCase_ == 44; } /** *
     * Upcast/downcast interface payloads.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; * @return The toRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getToRequiredInterface() { if (sumCase_ == 44) { 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 = 44; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder() { if (sumCase_ == 44) { 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 = 45; /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; * @return Whether the fromRequiredInterface field is set. */ @java.lang.Override public boolean hasFromRequiredInterface() { return sumCase_ == 45; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; * @return The fromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getFromRequiredInterface() { if (sumCase_ == 45) { 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 = 45; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder() { if (sumCase_ == 45) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } public static final int UNSAFE_FROM_REQUIRED_INTERFACE_FIELD_NUMBER = 46; /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; * @return Whether the unsafeFromRequiredInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromRequiredInterface() { return sumCase_ == 46; } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; * @return The unsafeFromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface() { if (sumCase_ == 46) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder() { if (sumCase_ == 46) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } public static final int CHOICE_CONTROLLER_FIELD_NUMBER = 47; /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; * @return Whether the choiceController field is set. */ @java.lang.Override public boolean hasChoiceController() { return sumCase_ == 47; } /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; * @return The choiceController. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController getChoiceController() { if (sumCase_ == 47) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder getChoiceControllerOrBuilder() { if (sumCase_ == 47) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } public static final int CHOICE_OBSERVER_FIELD_NUMBER = 48; /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; * @return Whether the choiceObserver field is set. */ @java.lang.Override public boolean hasChoiceObserver() { return sumCase_ == 48; } /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; * @return The choiceObserver. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver getChoiceObserver() { if (sumCase_ == 48) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance(); } /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder getChoiceObserverOrBuilder() { if (sumCase_ == 48) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.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 (((bitField0_ & 0x00000001) != 0)) { 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.SignatoryInterface) sum_); } if (sumCase_ == 40) { output.writeMessage(40, (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_); } if (sumCase_ == 41) { output.writeMessage(41, (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_); } if (sumCase_ == 42) { output.writeMessage(42, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_); } if (sumCase_ == 43) { output.writeMessage(43, (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_); } if (sumCase_ == 44) { output.writeMessage(44, (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_); } if (sumCase_ == 45) { output.writeMessage(45, (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_); } if (sumCase_ == 46) { output.writeMessage(46, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_); } if (sumCase_ == 47) { output.writeMessage(47, (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_); } if (sumCase_ == 48) { output.writeMessage(48, (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_); } if (sumCase_ == 9999) { output.writeMessage(9999, (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { 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.SignatoryInterface) sum_); } if (sumCase_ == 40) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_); } if (sumCase_ == 41) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_); } if (sumCase_ == 42) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_); } if (sumCase_ == 43) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_); } if (sumCase_ == 44) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_); } if (sumCase_ == 45) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_); } if (sumCase_ == 46) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(46, (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_); } if (sumCase_ == 47) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(47, (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_); } if (sumCase_ == 48) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(48, (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_); } if (sumCase_ == 9999) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9999, (com.daml.daml_lf_dev.DamlLf1.Expr.Experimental) sum_); } size += getUnknownFields().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 (!getSignatoryInterface() .equals(other.getSignatoryInterface())) return false; break; case 40: if (!getObserverInterface() .equals(other.getObserverInterface())) return false; break; case 41: if (!getViewInterface() .equals(other.getViewInterface())) return false; break; case 42: if (!getUnsafeFromInterface() .equals(other.getUnsafeFromInterface())) return false; break; case 43: if (!getInterfaceTemplateTypeRep() .equals(other.getInterfaceTemplateTypeRep())) return false; break; case 44: if (!getToRequiredInterface() .equals(other.getToRequiredInterface())) return false; break; case 45: if (!getFromRequiredInterface() .equals(other.getFromRequiredInterface())) return false; break; case 46: if (!getUnsafeFromRequiredInterface() .equals(other.getUnsafeFromRequiredInterface())) return false; break; case 47: if (!getChoiceController() .equals(other.getChoiceController())) return false; break; case 48: if (!getChoiceObserver() .equals(other.getChoiceObserver())) return false; break; case 9999: if (!getExperimental() .equals(other.getExperimental())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SIGNATORY_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getSignatoryInterface().hashCode(); break; case 40: hash = (37 * hash) + OBSERVER_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getObserverInterface().hashCode(); break; case 41: hash = (37 * hash) + VIEW_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getViewInterface().hashCode(); break; case 42: hash = (37 * hash) + UNSAFE_FROM_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getUnsafeFromInterface().hashCode(); break; case 43: hash = (37 * hash) + INTERFACE_TEMPLATE_TYPE_REP_FIELD_NUMBER; hash = (53 * hash) + getInterfaceTemplateTypeRep().hashCode(); break; case 44: hash = (37 * hash) + TO_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getToRequiredInterface().hashCode(); break; case 45: hash = (37 * hash) + FROM_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFromRequiredInterface().hashCode(); break; case 46: hash = (37 * hash) + UNSAFE_FROM_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getUnsafeFromRequiredInterface().hashCode(); break; case 47: hash = (37 * hash) + CHOICE_CONTROLLER_FIELD_NUMBER; hash = (53 * hash) + getChoiceController().hashCode(); break; case 48: hash = (37 * hash) + CHOICE_OBSERVER_FIELD_NUMBER; hash = (53 * hash) + getChoiceObserver().hashCode(); break; case 9999: hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getExperimental().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().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) { getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } if (valBuilder_ != null) { valBuilder_.clear(); } if (primLitBuilder_ != null) { primLitBuilder_.clear(); } if (recConBuilder_ != null) { recConBuilder_.clear(); } if (recProjBuilder_ != null) { recProjBuilder_.clear(); } if (recUpdBuilder_ != null) { recUpdBuilder_.clear(); } if (variantConBuilder_ != null) { variantConBuilder_.clear(); } if (enumConBuilder_ != null) { enumConBuilder_.clear(); } if (structConBuilder_ != null) { structConBuilder_.clear(); } if (structProjBuilder_ != null) { structProjBuilder_.clear(); } if (structUpdBuilder_ != null) { structUpdBuilder_.clear(); } if (appBuilder_ != null) { appBuilder_.clear(); } if (tyAppBuilder_ != null) { tyAppBuilder_.clear(); } if (absBuilder_ != null) { absBuilder_.clear(); } if (tyAbsBuilder_ != null) { tyAbsBuilder_.clear(); } if (caseBuilder_ != null) { caseBuilder_.clear(); } if (letBuilder_ != null) { letBuilder_.clear(); } if (nilBuilder_ != null) { nilBuilder_.clear(); } if (consBuilder_ != null) { consBuilder_.clear(); } if (updateBuilder_ != null) { updateBuilder_.clear(); } if (scenarioBuilder_ != null) { scenarioBuilder_.clear(); } if (optionalNoneBuilder_ != null) { optionalNoneBuilder_.clear(); } if (optionalSomeBuilder_ != null) { optionalSomeBuilder_.clear(); } if (toAnyBuilder_ != null) { toAnyBuilder_.clear(); } if (fromAnyBuilder_ != null) { fromAnyBuilder_.clear(); } if (typeRepBuilder_ != null) { typeRepBuilder_.clear(); } if (toAnyExceptionBuilder_ != null) { toAnyExceptionBuilder_.clear(); } if (fromAnyExceptionBuilder_ != null) { fromAnyExceptionBuilder_.clear(); } if (throwBuilder_ != null) { throwBuilder_.clear(); } if (toInterfaceBuilder_ != null) { toInterfaceBuilder_.clear(); } if (fromInterfaceBuilder_ != null) { fromInterfaceBuilder_.clear(); } if (callInterfaceBuilder_ != null) { callInterfaceBuilder_.clear(); } if (signatoryInterfaceBuilder_ != null) { signatoryInterfaceBuilder_.clear(); } if (observerInterfaceBuilder_ != null) { observerInterfaceBuilder_.clear(); } if (viewInterfaceBuilder_ != null) { viewInterfaceBuilder_.clear(); } if (unsafeFromInterfaceBuilder_ != null) { unsafeFromInterfaceBuilder_.clear(); } if (interfaceTemplateTypeRepBuilder_ != null) { interfaceTemplateTypeRepBuilder_.clear(); } if (toRequiredInterfaceBuilder_ != null) { toRequiredInterfaceBuilder_.clear(); } if (fromRequiredInterfaceBuilder_ != null) { fromRequiredInterfaceBuilder_.clear(); } if (unsafeFromRequiredInterfaceBuilder_ != null) { unsafeFromRequiredInterfaceBuilder_.clear(); } if (choiceControllerBuilder_ != null) { choiceControllerBuilder_.clear(); } if (choiceObserverBuilder_ != null) { choiceObserverBuilder_.clear(); } if (experimentalBuilder_ != null) { experimentalBuilder_.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_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 (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Expr result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.daml.daml_lf_dev.DamlLf1.Expr result) { int from_bitField1_ = bitField1_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Expr result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 2 && valBuilder_ != null) { result.sum_ = valBuilder_.build(); } if (sumCase_ == 5 && primLitBuilder_ != null) { result.sum_ = primLitBuilder_.build(); } if (sumCase_ == 6 && recConBuilder_ != null) { result.sum_ = recConBuilder_.build(); } if (sumCase_ == 7 && recProjBuilder_ != null) { result.sum_ = recProjBuilder_.build(); } if (sumCase_ == 22 && recUpdBuilder_ != null) { result.sum_ = recUpdBuilder_.build(); } if (sumCase_ == 8 && variantConBuilder_ != null) { result.sum_ = variantConBuilder_.build(); } if (sumCase_ == 28 && enumConBuilder_ != null) { result.sum_ = enumConBuilder_.build(); } if (sumCase_ == 9 && structConBuilder_ != null) { result.sum_ = structConBuilder_.build(); } if (sumCase_ == 10 && structProjBuilder_ != null) { result.sum_ = structProjBuilder_.build(); } if (sumCase_ == 23 && structUpdBuilder_ != null) { result.sum_ = structUpdBuilder_.build(); } if (sumCase_ == 11 && appBuilder_ != null) { result.sum_ = appBuilder_.build(); } if (sumCase_ == 12 && tyAppBuilder_ != null) { result.sum_ = tyAppBuilder_.build(); } if (sumCase_ == 13 && absBuilder_ != null) { result.sum_ = absBuilder_.build(); } if (sumCase_ == 14 && tyAbsBuilder_ != null) { result.sum_ = tyAbsBuilder_.build(); } if (sumCase_ == 15 && caseBuilder_ != null) { result.sum_ = caseBuilder_.build(); } if (sumCase_ == 16 && letBuilder_ != null) { result.sum_ = letBuilder_.build(); } if (sumCase_ == 17 && nilBuilder_ != null) { result.sum_ = nilBuilder_.build(); } if (sumCase_ == 18 && consBuilder_ != null) { result.sum_ = consBuilder_.build(); } if (sumCase_ == 20 && updateBuilder_ != null) { result.sum_ = updateBuilder_.build(); } if (sumCase_ == 21 && scenarioBuilder_ != null) { result.sum_ = scenarioBuilder_.build(); } if (sumCase_ == 26 && optionalNoneBuilder_ != null) { result.sum_ = optionalNoneBuilder_.build(); } if (sumCase_ == 27 && optionalSomeBuilder_ != null) { result.sum_ = optionalSomeBuilder_.build(); } if (sumCase_ == 30 && toAnyBuilder_ != null) { result.sum_ = toAnyBuilder_.build(); } if (sumCase_ == 31 && fromAnyBuilder_ != null) { result.sum_ = fromAnyBuilder_.build(); } if (sumCase_ == 32 && typeRepBuilder_ != null) { result.sum_ = typeRepBuilder_.build(); } if (sumCase_ == 33 && toAnyExceptionBuilder_ != null) { result.sum_ = toAnyExceptionBuilder_.build(); } if (sumCase_ == 34 && fromAnyExceptionBuilder_ != null) { result.sum_ = fromAnyExceptionBuilder_.build(); } if (sumCase_ == 35 && throwBuilder_ != null) { result.sum_ = throwBuilder_.build(); } if (sumCase_ == 36 && toInterfaceBuilder_ != null) { result.sum_ = toInterfaceBuilder_.build(); } if (sumCase_ == 37 && fromInterfaceBuilder_ != null) { result.sum_ = fromInterfaceBuilder_.build(); } if (sumCase_ == 38 && callInterfaceBuilder_ != null) { result.sum_ = callInterfaceBuilder_.build(); } if (sumCase_ == 39 && signatoryInterfaceBuilder_ != null) { result.sum_ = signatoryInterfaceBuilder_.build(); } if (sumCase_ == 40 && observerInterfaceBuilder_ != null) { result.sum_ = observerInterfaceBuilder_.build(); } if (sumCase_ == 41 && viewInterfaceBuilder_ != null) { result.sum_ = viewInterfaceBuilder_.build(); } if (sumCase_ == 42 && unsafeFromInterfaceBuilder_ != null) { result.sum_ = unsafeFromInterfaceBuilder_.build(); } if (sumCase_ == 43 && interfaceTemplateTypeRepBuilder_ != null) { result.sum_ = interfaceTemplateTypeRepBuilder_.build(); } if (sumCase_ == 44 && toRequiredInterfaceBuilder_ != null) { result.sum_ = toRequiredInterfaceBuilder_.build(); } if (sumCase_ == 45 && fromRequiredInterfaceBuilder_ != null) { result.sum_ = fromRequiredInterfaceBuilder_.build(); } if (sumCase_ == 46 && unsafeFromRequiredInterfaceBuilder_ != null) { result.sum_ = unsafeFromRequiredInterfaceBuilder_.build(); } if (sumCase_ == 47 && choiceControllerBuilder_ != null) { result.sum_ = choiceControllerBuilder_.build(); } if (sumCase_ == 48 && choiceObserverBuilder_ != null) { result.sum_ = choiceObserverBuilder_.build(); } if (sumCase_ == 9999 && experimentalBuilder_ != null) { result.sum_ = experimentalBuilder_.build(); } } @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 SIGNATORY_INTERFACE: { mergeSignatoryInterface(other.getSignatoryInterface()); break; } case OBSERVER_INTERFACE: { mergeObserverInterface(other.getObserverInterface()); break; } case VIEW_INTERFACE: { mergeViewInterface(other.getViewInterface()); break; } case UNSAFE_FROM_INTERFACE: { mergeUnsafeFromInterface(other.getUnsafeFromInterface()); break; } case INTERFACE_TEMPLATE_TYPE_REP: { mergeInterfaceTemplateTypeRep(other.getInterfaceTemplateTypeRep()); break; } case TO_REQUIRED_INTERFACE: { mergeToRequiredInterface(other.getToRequiredInterface()); break; } case FROM_REQUIRED_INTERFACE: { mergeFromRequiredInterface(other.getFromRequiredInterface()); break; } case UNSAFE_FROM_REQUIRED_INTERFACE: { mergeUnsafeFromRequiredInterface(other.getUnsafeFromRequiredInterface()); break; } case CHOICE_CONTROLLER: { mergeChoiceController(other.getChoiceController()); break; } case CHOICE_OBSERVER: { mergeChoiceObserver(other.getChoiceObserver()); break; } case EXPERIMENTAL: { mergeExperimental(other.getExperimental()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getValFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 24: { int rawValue = input.readEnum(); sumCase_ = 3; sum_ = rawValue; break; } // case 24 case 32: { int rawValue = input.readEnum(); sumCase_ = 4; sum_ = rawValue; break; } // case 32 case 42: { input.readMessage( getPrimLitFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 50: { input.readMessage( getRecConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 6; break; } // case 50 case 58: { input.readMessage( getRecProjFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 66: { input.readMessage( getVariantConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 8; break; } // case 66 case 74: { input.readMessage( getStructConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 9; break; } // case 74 case 82: { input.readMessage( getStructProjFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 10; break; } // case 82 case 90: { input.readMessage( getAppFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 11; break; } // case 90 case 98: { input.readMessage( getTyAppFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 12; break; } // case 98 case 106: { input.readMessage( getAbsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 13; break; } // case 106 case 114: { input.readMessage( getTyAbsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 14; break; } // case 114 case 122: { input.readMessage( getCaseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 15; break; } // case 122 case 130: { input.readMessage( getLetFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 16; break; } // case 130 case 138: { input.readMessage( getNilFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 17; break; } // case 138 case 146: { input.readMessage( getConsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 18; break; } // case 146 case 162: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 20; break; } // case 162 case 170: { input.readMessage( getScenarioFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 21; break; } // case 170 case 178: { input.readMessage( getRecUpdFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 22; break; } // case 178 case 186: { input.readMessage( getStructUpdFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 23; break; } // case 186 case 202: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 202 case 210: { input.readMessage( getOptionalNoneFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 26; break; } // case 210 case 218: { input.readMessage( getOptionalSomeFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 27; break; } // case 218 case 226: { input.readMessage( getEnumConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 28; break; } // case 226 case 232: { sum_ = input.readInt32(); sumCase_ = 29; break; } // case 232 case 242: { input.readMessage( getToAnyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 30; break; } // case 242 case 250: { input.readMessage( getFromAnyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 31; break; } // case 250 case 258: { input.readMessage( getTypeRepFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 32; break; } // case 258 case 266: { input.readMessage( getToAnyExceptionFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 33; break; } // case 266 case 274: { input.readMessage( getFromAnyExceptionFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 34; break; } // case 274 case 282: { input.readMessage( getThrowFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 35; break; } // case 282 case 290: { input.readMessage( getToInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 36; break; } // case 290 case 298: { input.readMessage( getFromInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 37; break; } // case 298 case 306: { input.readMessage( getCallInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 38; break; } // case 306 case 314: { input.readMessage( getSignatoryInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 39; break; } // case 314 case 322: { input.readMessage( getObserverInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 40; break; } // case 322 case 330: { input.readMessage( getViewInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 41; break; } // case 330 case 338: { input.readMessage( getUnsafeFromInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 42; break; } // case 338 case 346: { input.readMessage( getInterfaceTemplateTypeRepFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 43; break; } // case 346 case 354: { input.readMessage( getToRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 44; break; } // case 354 case 362: { input.readMessage( getFromRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 45; break; } // case 362 case 370: { input.readMessage( getUnsafeFromRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 46; break; } // case 370 case 378: { input.readMessage( getChoiceControllerFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 47; break; } // case 378 case 386: { input.readMessage( getChoiceObserverFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 48; break; } // case 386 case 79994: { input.readMessage( getExperimentalFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 9999; break; } // case 79994 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; private int bitField1_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_1.Location location = 25; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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); } else { 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) { com.daml.daml_lf_dev.DamlLf1.BuiltinFunction result = com.daml.daml_lf_dev.DamlLf1.BuiltinFunction.forNumber( (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) { com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.forNumber( (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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } 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 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); } 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 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); } 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 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); } 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 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); } 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 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); } 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 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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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); } else { toInterfaceBuilder_.setMessage(value); } } sumCase_ = 36; return this; } /** *
       * Convert to/from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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); } else { 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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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); } else { callInterfaceBuilder_.setMessage(value); } } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.15*
       * 
* * .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.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.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; * @return Whether the signatoryInterface field is set. */ @java.lang.Override public boolean hasSignatoryInterface() { return sumCase_ == 39; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; * @return The signatoryInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface getSignatoryInterface() { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface.getDefaultInstance(); } else { if (sumCase_ == 39) { 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.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ 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_ = 39; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ 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_ = 39; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ public Builder mergeSignatoryInterface(com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterface value) { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 39 && 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_ == 39) { signatoryInterfaceBuilder_.mergeFrom(value); } else { signatoryInterfaceBuilder_.setMessage(value); } } sumCase_ = 39; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ public Builder clearSignatoryInterface() { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 39) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 39) { sumCase_ = 0; sum_ = null; } signatoryInterfaceBuilder_.clear(); } return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ 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.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder() { if ((sumCase_ == 39) && (signatoryInterfaceBuilder_ != null)) { return signatoryInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 39) { 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.15*
       * 
* * .daml_lf_1.Expr.SignatoryInterface signatory_interface = 39; */ 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_ == 39)) { 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_ = 39; 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 = 40; * @return Whether the observerInterface field is set. */ @java.lang.Override public boolean hasObserverInterface() { return sumCase_ == 40; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; * @return The observerInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface getObserverInterface() { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } else { if (sumCase_ == 40) { return observerInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ 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_ = 40; return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ 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_ = 40; return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ public Builder mergeObserverInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface value) { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 40 && 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_ == 40) { observerInterfaceBuilder_.mergeFrom(value); } else { observerInterfaceBuilder_.setMessage(value); } } sumCase_ = 40; return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ public Builder clearObserverInterface() { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 40) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 40) { sumCase_ = 0; sum_ = null; } observerInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterface.Builder getObserverInterfaceBuilder() { return getObserverInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr.ObserverInterface observer_interface = 40; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder() { if ((sumCase_ == 40) && (observerInterfaceBuilder_ != null)) { return observerInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 40) { 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 = 40; */ 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_ == 40)) { 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_ = 40; onChanged(); return observerInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder> viewInterfaceBuilder_; /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; * @return Whether the viewInterface field is set. */ @java.lang.Override public boolean hasViewInterface() { return sumCase_ == 41; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; * @return The viewInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface getViewInterface() { if (viewInterfaceBuilder_ == null) { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } else { if (sumCase_ == 41) { return viewInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ public Builder setViewInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface value) { if (viewInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { viewInterfaceBuilder_.setMessage(value); } sumCase_ = 41; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ public Builder setViewInterface( com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder builderForValue) { if (viewInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { viewInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 41; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ public Builder mergeViewInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface value) { if (viewInterfaceBuilder_ == null) { if (sumCase_ == 41 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 41) { viewInterfaceBuilder_.mergeFrom(value); } else { viewInterfaceBuilder_.setMessage(value); } } sumCase_ = 41; return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ public Builder clearViewInterface() { if (viewInterfaceBuilder_ == null) { if (sumCase_ == 41) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 41) { sumCase_ = 0; sum_ = null; } viewInterfaceBuilder_.clear(); } return this; } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder getViewInterfaceBuilder() { return getViewInterfaceFieldBuilder().getBuilder(); } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder getViewInterfaceOrBuilder() { if ((sumCase_ == 41) && (viewInterfaceBuilder_ != null)) { return viewInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.ViewInterface view_interface = 41; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder> getViewInterfaceFieldBuilder() { if (viewInterfaceBuilder_ == null) { if (!(sumCase_ == 41)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.getDefaultInstance(); } viewInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ViewInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 41; onChanged(); return viewInterfaceBuilder_; } 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 from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; * @return Whether the unsafeFromInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromInterface() { return sumCase_ == 42; } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; * @return The unsafeFromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface getUnsafeFromInterface() { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } else { if (sumCase_ == 42) { return unsafeFromInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ 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_ = 42; return this; } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ 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_ = 42; return this; } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ public Builder mergeUnsafeFromInterface(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface value) { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 42 && 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_ == 42) { unsafeFromInterfaceBuilder_.mergeFrom(value); } else { unsafeFromInterfaceBuilder_.setMessage(value); } } sumCase_ = 42; return this; } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ public Builder clearUnsafeFromInterface() { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 42) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 42) { sumCase_ = 0; sum_ = null; } unsafeFromInterfaceBuilder_.clear(); } return this; } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.Builder getUnsafeFromInterfaceBuilder() { return getUnsafeFromInterfaceFieldBuilder().getBuilder(); } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder() { if ((sumCase_ == 42) && (unsafeFromInterfaceBuilder_ != null)) { return unsafeFromInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromInterface.getDefaultInstance(); } } /** *
       * Unsafe conversion from interface payloads.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.UnsafeFromInterface unsafe_from_interface = 42; */ 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_ == 42)) { 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_ = 42; onChanged(); return unsafeFromInterfaceBuilder_; } 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.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; * @return Whether the interfaceTemplateTypeRep field is set. */ @java.lang.Override public boolean hasInterfaceTemplateTypeRep() { return sumCase_ == 43; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; * @return The interfaceTemplateTypeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep() { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } else { if (sumCase_ == 43) { 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.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ 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_ = 43; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ 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_ = 43; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ public Builder mergeInterfaceTemplateTypeRep(com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRep value) { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 43 && 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_ == 43) { interfaceTemplateTypeRepBuilder_.mergeFrom(value); } else { interfaceTemplateTypeRepBuilder_.setMessage(value); } } sumCase_ = 43; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ public Builder clearInterfaceTemplateTypeRep() { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 43) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 43) { sumCase_ = 0; sum_ = null; } interfaceTemplateTypeRepBuilder_.clear(); } return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ 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.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder() { if ((sumCase_ == 43) && (interfaceTemplateTypeRepBuilder_ != null)) { return interfaceTemplateTypeRepBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 43) { 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.15*
       * 
* * .daml_lf_1.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 43; */ 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_ == 43)) { 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_ = 43; onChanged(); return interfaceTemplateTypeRepBuilder_; } 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 = 44; * @return Whether the toRequiredInterface field is set. */ @java.lang.Override public boolean hasToRequiredInterface() { return sumCase_ == 44; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; * @return The toRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface getToRequiredInterface() { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 44) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 44) { 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 = 44; */ 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_ = 44; return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; */ 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_ = 44; return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; */ public Builder mergeToRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterface value) { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 44 && 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_ == 44) { toRequiredInterfaceBuilder_.mergeFrom(value); } else { toRequiredInterfaceBuilder_.setMessage(value); } } sumCase_ = 44; return this; } /** *
       * Upcast/downcast interface payloads.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ToRequiredInterface to_required_interface = 44; */ public Builder clearToRequiredInterface() { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 44) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 44) { 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 = 44; */ 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 = 44; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder() { if ((sumCase_ == 44) && (toRequiredInterfaceBuilder_ != null)) { return toRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 44) { 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 = 44; */ 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_ == 44)) { 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_ = 44; 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 = 45; * @return Whether the fromRequiredInterface field is set. */ @java.lang.Override public boolean hasFromRequiredInterface() { return sumCase_ == 45; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; * @return The fromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface getFromRequiredInterface() { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 45) { return (com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 45) { return fromRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ 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_ = 45; return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ 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_ = 45; return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ public Builder mergeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface value) { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 45 && 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_ == 45) { fromRequiredInterfaceBuilder_.mergeFrom(value); } else { fromRequiredInterfaceBuilder_.setMessage(value); } } sumCase_ = 45; return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ public Builder clearFromRequiredInterface() { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 45) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 45) { sumCase_ = 0; sum_ = null; } fromRequiredInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterface.Builder getFromRequiredInterfaceBuilder() { return getFromRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr.FromRequiredInterface from_required_interface = 45; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder() { if ((sumCase_ == 45) && (fromRequiredInterfaceBuilder_ != null)) { return fromRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 45) { 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 = 45; */ 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_ == 45)) { 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_ = 45; onChanged(); return fromRequiredInterfaceBuilder_; } 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_; /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; * @return Whether the unsafeFromRequiredInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromRequiredInterface() { return sumCase_ == 46; } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; * @return The unsafeFromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 46) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 46) { return unsafeFromRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ 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_ = 46; return this; } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ 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_ = 46; return this; } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ public Builder mergeUnsafeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface value) { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 46 && 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_ == 46) { unsafeFromRequiredInterfaceBuilder_.mergeFrom(value); } else { unsafeFromRequiredInterfaceBuilder_.setMessage(value); } } sumCase_ = 46; return this; } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ public Builder clearUnsafeFromRequiredInterface() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 46) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 46) { sumCase_ = 0; sum_ = null; } unsafeFromRequiredInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.Builder getUnsafeFromRequiredInterfaceBuilder() { return getUnsafeFromRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder() { if ((sumCase_ == 46) && (unsafeFromRequiredInterfaceBuilder_ != null)) { return unsafeFromRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 46) { return (com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_1.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 46; */ 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_ == 46)) { 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_ = 46; onChanged(); return unsafeFromRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder> choiceControllerBuilder_; /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; * @return Whether the choiceController field is set. */ @java.lang.Override public boolean hasChoiceController() { return sumCase_ == 47; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; * @return The choiceController. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController getChoiceController() { if (choiceControllerBuilder_ == null) { if (sumCase_ == 47) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } else { if (sumCase_ == 47) { return choiceControllerBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ public Builder setChoiceController(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController value) { if (choiceControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { choiceControllerBuilder_.setMessage(value); } sumCase_ = 47; return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ public Builder setChoiceController( com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder builderForValue) { if (choiceControllerBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { choiceControllerBuilder_.setMessage(builderForValue.build()); } sumCase_ = 47; return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ public Builder mergeChoiceController(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController value) { if (choiceControllerBuilder_ == null) { if (sumCase_ == 47 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 47) { choiceControllerBuilder_.mergeFrom(value); } else { choiceControllerBuilder_.setMessage(value); } } sumCase_ = 47; return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ public Builder clearChoiceController() { if (choiceControllerBuilder_ == null) { if (sumCase_ == 47) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 47) { sumCase_ = 0; sum_ = null; } choiceControllerBuilder_.clear(); } return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder getChoiceControllerBuilder() { return getChoiceControllerFieldBuilder().getBuilder(); } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder getChoiceControllerOrBuilder() { if ((sumCase_ == 47) && (choiceControllerBuilder_ != null)) { return choiceControllerBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 47) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceController choice_controller = 47; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder> getChoiceControllerFieldBuilder() { if (choiceControllerBuilder_ == null) { if (!(sumCase_ == 47)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.getDefaultInstance(); } choiceControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceControllerOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceController) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 47; onChanged(); return choiceControllerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder> choiceObserverBuilder_; /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; * @return Whether the choiceObserver field is set. */ @java.lang.Override public boolean hasChoiceObserver() { return sumCase_ == 48; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; * @return The choiceObserver. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver getChoiceObserver() { if (choiceObserverBuilder_ == null) { if (sumCase_ == 48) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance(); } else { if (sumCase_ == 48) { return choiceObserverBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance(); } } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ public Builder setChoiceObserver(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver value) { if (choiceObserverBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { choiceObserverBuilder_.setMessage(value); } sumCase_ = 48; return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ public Builder setChoiceObserver( com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder builderForValue) { if (choiceObserverBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { choiceObserverBuilder_.setMessage(builderForValue.build()); } sumCase_ = 48; return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ public Builder mergeChoiceObserver(com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver value) { if (choiceObserverBuilder_ == null) { if (sumCase_ == 48 && sum_ != com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.newBuilder((com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 48) { choiceObserverBuilder_.mergeFrom(value); } else { choiceObserverBuilder_.setMessage(value); } } sumCase_ = 48; return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ public Builder clearChoiceObserver() { if (choiceObserverBuilder_ == null) { if (sumCase_ == 48) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 48) { sumCase_ = 0; sum_ = null; } choiceObserverBuilder_.clear(); } return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder getChoiceObserverBuilder() { return getChoiceObserverFieldBuilder().getBuilder(); } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder getChoiceObserverOrBuilder() { if ((sumCase_ == 48) && (choiceObserverBuilder_ != null)) { return choiceObserverBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 48) { return (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance(); } } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Expr.ChoiceObserver choice_observer = 48; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder> getChoiceObserverFieldBuilder() { if (choiceObserverBuilder_ == null) { if (!(sumCase_ == 48)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.getDefaultInstance(); } choiceObserverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver.Builder, com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserverOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Expr.ChoiceObserver) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 48; onChanged(); return choiceObserverBuilder_; } 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); } else { 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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(); com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant.VariantCase getVariantCase(); 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(); } 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 bitField0_; private int variantCase_ = 0; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getConFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; con_ = null; if (conBuilder_ != null) { conBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.con_ = conBuilder_ == null ? con_ : conBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Variant result) { result.variantCase_ = variantCase_; result.variant_ = this.variant_; result.binderCase_ = binderCase_; result.binder_ = this.binder_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getConFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); variantCase_ = 2; variant_ = s; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); binderCase_ = 3; binder_ = s; break; } // case 26 case 32: { variant_ = input.readInt32(); variantCase_ = 4; break; } // case 32 case 40: { binder_ = input.readInt32(); binderCase_ = 5; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { conBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { conBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && con_ != null && con_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getConBuilder().mergeFrom(value); } else { con_ = value; } } else { conBuilder_.mergeFrom(value); } if (con_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public Builder clearCon() { bitField0_ = (bitField0_ & ~0x00000001); con_ = null; if (conBuilder_ != null) { conBuilder_.dispose(); conBuilder_ = null; } onChanged(); return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getConBuilder() { bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int constructorCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 con_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : con_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getConFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; con_ = null; if (conBuilder_ != null) { conBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.con_ = conBuilder_ == null ? con_ : conBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Enum result) { result.constructorCase_ = constructorCase_; result.constructor_ = this.constructor_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getConFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); constructorCase_ = 2; constructor_ = s; break; } // case 18 case 24: { constructor_ = input.readInt32(); constructorCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { conBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { conBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && con_ != null && con_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getConBuilder().mergeFrom(value); } else { con_ = value; } } else { conBuilder_.mergeFrom(value); } if (con_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public Builder clearCon() { bitField0_ = (bitField0_ & ~0x00000001); con_ = null; if (conBuilder_ != null) { conBuilder_.dispose(); conBuilder_ = null; } onChanged(); return this; } /** *
         * name of the type constructor
         * 
* * .daml_lf_1.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getConBuilder() { bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons.VarHeadCase getVarHeadCase(); 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(); } 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.CaseAlt.Cons result) { result.varHeadCase_ = varHeadCase_; result.varHead_ = this.varHead_; result.varTailCase_ = varTailCase_; result.varTail_ = this.varTail_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); varTailCase_ = 2; varTail_ = s; break; } // case 18 case 24: { varHead_ = input.readInt32(); varHeadCase_ = 3; break; } // case 24 case 32: { varTail_ = input.readInt32(); varTailCase_ = 4; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; } private int bitField0_; /** *
         * *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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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; @SuppressWarnings("serial") 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_)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.CaseAlt.OptionalSome result) { result.varBodyCase_ = varBodyCase_; result.varBody_ = this.varBody_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 16: { varBody_ = input.readInt32(); varBodyCase_ = 2; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; } private int bitField0_; /** *
         * *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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 bitField0_; private int sumCase_ = 0; @SuppressWarnings("serial") 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) { com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.forNumber( (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 ((bitField0_ & 0x00000001) != 0); } /** * .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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (defaultBuilder_ != null) { defaultBuilder_.clear(); } if (variantBuilder_ != null) { variantBuilder_.clear(); } if (nilBuilder_ != null) { nilBuilder_.clear(); } if (consBuilder_ != null) { consBuilder_.clear(); } if (optionalNoneBuilder_ != null) { optionalNoneBuilder_.clear(); } if (optionalSomeBuilder_ != null) { optionalSomeBuilder_.clear(); } if (enumBuilder_ != null) { enumBuilder_.clear(); } body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.CaseAlt result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.CaseAlt result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && defaultBuilder_ != null) { result.sum_ = defaultBuilder_.build(); } if (sumCase_ == 2 && variantBuilder_ != null) { result.sum_ = variantBuilder_.build(); } if (sumCase_ == 4 && nilBuilder_ != null) { result.sum_ = nilBuilder_.build(); } if (sumCase_ == 5 && consBuilder_ != null) { result.sum_ = consBuilder_.build(); } if (sumCase_ == 7 && optionalNoneBuilder_ != null) { result.sum_ = optionalNoneBuilder_.build(); } if (sumCase_ == 8 && optionalSomeBuilder_ != null) { result.sum_ = optionalSomeBuilder_.build(); } if (sumCase_ == 9 && enumBuilder_ != null) { result.sum_ = enumBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDefaultFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getVariantFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 24: { int rawValue = input.readEnum(); sumCase_ = 3; sum_ = rawValue; break; } // case 24 case 34: { input.readMessage( getNilFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 4; break; } // case 34 case 42: { input.readMessage( getConsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 50: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( getOptionalNoneFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 66: { input.readMessage( getOptionalSomeFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 8; break; } // case 66 case 74: { input.readMessage( getEnumFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 9; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } else { 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); } else { 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) { com.daml.daml_lf_dev.DamlLf1.PrimCon result = com.daml.daml_lf_dev.DamlLf1.PrimCon.forNumber( (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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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 ((bitField0_ & 0x00000100) != 0); } /** * .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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .daml_lf_1.Expr body = 6; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * .daml_lf_1.Expr body = 6; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000100); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr body = 6; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000100; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 scrut_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : scrut_; } public static final int ALTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getScrut()); } for (int i = 0; i < alts_.size(); i++) { output.writeMessage(2, alts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getScrutFieldBuilder(); getAltsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; scrut_ = null; if (scrutBuilder_ != null) { scrutBuilder_.dispose(); scrutBuilder_ = null; } if (altsBuilder_ == null) { alts_ = java.util.Collections.emptyList(); } else { alts_ = null; altsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Case result) { if (altsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { alts_ = java.util.Collections.unmodifiableList(alts_); bitField0_ = (bitField0_ & ~0x00000002); } result.alts_ = alts_; } else { result.alts_ = altsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Case result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.scrut_ = scrutBuilder_ == null ? scrut_ : scrutBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureAltsIsMutable(); alts_.addAll(other.alts_); } onChanged(); } } else { if (!other.alts_.isEmpty()) { if (altsBuilder_.isEmpty()) { altsBuilder_.dispose(); altsBuilder_ = null; alts_ = other.alts_; bitField0_ = (bitField0_ & ~0x00000002); altsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAltsFieldBuilder() : null; } else { altsBuilder_.addAllMessages(other.alts_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getScrutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.CaseAlt m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.CaseAlt.parser(), extensionRegistry); if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.add(m); } else { altsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { scrutBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { scrutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Expr scrut = 1; */ public Builder mergeScrut(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (scrutBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && scrut_ != null && scrut_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getScrutBuilder().mergeFrom(value); } else { scrut_ = value; } } else { scrutBuilder_.mergeFrom(value); } if (scrut_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Expr scrut = 1; */ public Builder clearScrut() { bitField0_ = (bitField0_ & ~0x00000001); scrut_ = null; if (scrutBuilder_ != null) { scrutBuilder_.dispose(); scrutBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr scrut = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getScrutBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { alts_ = new java.util.ArrayList(alts_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; public static final int BINDINGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (bindingsBuilder_ == null) { bindings_ = java.util.Collections.emptyList(); } else { bindings_ = null; bindingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Block result) { if (bindingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { bindings_ = java.util.Collections.unmodifiableList(bindings_); bitField0_ = (bitField0_ & ~0x00000001); } result.bindings_ = bindings_; } else { result.bindings_ = bindingsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Block result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.Binding m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Binding.parser(), extensionRegistry); if (bindingsBuilder_ == null) { ensureBindingsIsMutable(); bindings_.add(m); } else { bindingsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Pure result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.15*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; * @return Whether the createInterface field is set. */ boolean hasCreateInterface(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; * @return The createInterface. */ com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getCreateInterface(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; * @return Whether the exerciseInterface field is set. */ boolean hasExerciseInterface(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; * @return The exerciseInterface. */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getExerciseInterface(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; * @return Whether the fetchInterface field is set. */ boolean hasFetchInterface(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; * @return The fetchInterface. */ com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getFetchInterface(); /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; * @return Whether the dynamicExercise field is set. */ boolean hasDynamicExercise(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; * @return The dynamicExercise. */ com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise getDynamicExercise(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder getDynamicExerciseOrBuilder(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; * @return Whether the softFetch field is set. */ boolean hasSoftFetch(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; * @return The softFetch. */ com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch getSoftFetch(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder getSoftFetchOrBuilder(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; * @return Whether the softExercise field is set. */ boolean hasSoftExercise(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; * @return The softExercise. */ com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise getSoftExercise(); /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder getSoftExerciseOrBuilder(); 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(); } 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTemplateFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.Create result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Template argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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
     * *Available in versions >= 1.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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
       * *Available in versions >= 1.15*
       * 
* * 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) { getInterfaceFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * Interface argument
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int choiceCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (choiceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, choice_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getArg()); } if (choiceCase_ == 6) { output.writeInt32( 6, (int)((java.lang.Integer) choice_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, choice_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getArg()); } if (choiceCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 6, (int)((java.lang.Integer) choice_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTemplateFieldBuilder(); getCidFieldBuilder(); getArgFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.Exercise result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.arg_ = argBuilder_ == null ? arg_ : argBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Update.Exercise result) { result.choiceCase_ = choiceCase_; result.choice_ = this.choice_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); choiceCase_ = 2; choice_ = s; break; } // case 18 case 26: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 42: { input.readMessage( getArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { choice_ = input.readInt32(); choiceCase_ = 6; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000008); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
         * 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; } else { argBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000010); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 SoftExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.SoftExercise) 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(); com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.ChoiceCase getChoiceCase(); } /** *
     * Soft Exercise Update
     * Exercises a contract of the given template type OR a predecessor.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Update.SoftExercise} */ public static final class SoftExercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.SoftExercise) SoftExerciseOrBuilder { private static final long serialVersionUID = 0L; // Use SoftExercise.newBuilder() to construct. private SoftExercise(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SoftExercise() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SoftExercise(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.class, com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder.class); } private int bitField0_; private int choiceCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (choiceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, choice_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getArg()); } if (choiceCase_ == 6) { output.writeInt32( 6, (int)((java.lang.Integer) choice_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, choice_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getArg()); } if (choiceCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 6, (int)((java.lang.Integer) choice_)); } size += getUnknownFields().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.SoftExercise)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise other = (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise 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.SoftExercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise 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.SoftExercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise 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.SoftExercise 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.SoftExercise 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.SoftExercise 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.SoftExercise 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.SoftExercise 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.SoftExercise 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.SoftExercise 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; } /** *
       * Soft Exercise Update
       * Exercises a contract of the given template type OR a predecessor.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Update.SoftExercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.SoftExercise) com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.class, com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTemplateFieldBuilder(); getCidFieldBuilder(); getArgFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); 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_SoftExercise_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise build() { com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise result = new com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.arg_ = argBuilder_ == null ? arg_ : argBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise result) { result.choiceCase_ = choiceCase_; result.choice_ = this.choice_; } @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.SoftExercise) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); choiceCase_ = 2; choice_ = s; break; } // case 18 case 26: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 42: { input.readMessage( getArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { choice_ = input.readInt32(); choiceCase_ = 6; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000008); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
         * 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; } else { argBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000010); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 5; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000010; 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.SoftExercise) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.SoftExercise) private static final com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise(); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SoftExercise parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.SoftExercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DynamicExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.DynamicExercise) 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(); /** *
       * 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(); } /** *
     * Dynamic Exercise Update
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Update.DynamicExercise} */ public static final class DynamicExercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.DynamicExercise) DynamicExerciseOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicExercise.newBuilder() to construct. private DynamicExercise(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicExercise() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicExercise(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_DynamicExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_DynamicExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.class, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_ = 0; /** *
       * 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getArg()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArg()); } size += getUnknownFields().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.DynamicExercise)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise other = (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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 (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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise 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.DynamicExercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise 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.DynamicExercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise 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.DynamicExercise 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.DynamicExercise 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.DynamicExercise 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.DynamicExercise 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.DynamicExercise 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.DynamicExercise 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.DynamicExercise 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; } /** *
       * Dynamic Exercise Update
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Update.DynamicExercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.DynamicExercise) com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_DynamicExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_DynamicExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.class, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTemplateFieldBuilder(); getCidFieldBuilder(); getArgFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } choiceInternedStr_ = 0; cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); 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_DynamicExercise_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise build() { com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise result = new com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.choiceInternedStr_ = choiceInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.arg_ = argBuilder_ == null ? arg_ : argBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.DynamicExercise) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.getChoiceInternedStr() != 0) { setChoiceInternedStr(other.getChoiceInternedStr()); } if (other.hasCid()) { mergeCid(other.getCid()); } if (other.hasArg()) { mergeArg(other.getArg()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { choiceInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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_ ; /** *
         * 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000004); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { argBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; 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.DynamicExercise) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.DynamicExercise) private static final com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise(); } public static com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicExercise parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.DynamicExercise 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
     * *Available in versions >= 1.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_ = 0; /** *
       * 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } 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 ((bitField0_ & 0x00000008) != 0); } /** *
       * 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 guard_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : guard_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getArg()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getGuard()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArg()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getGuard()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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
       * *Available in versions >= 1.15*
       * 
* * 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) { getInterfaceFieldBuilder(); getCidFieldBuilder(); getArgFieldBuilder(); getGuardFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } choiceInternedStr_ = 0; cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } guard_ = null; if (guardBuilder_ != null) { guardBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.choiceInternedStr_ = choiceInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.arg_ = argBuilder_ == null ? arg_ : argBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.guard_ = guardBuilder_ == null ? guard_ : guardBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { choiceInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getGuardFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000004); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { argBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
         * 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; } else { guardBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { guardBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && guard_ != null && guard_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getGuardBuilder().mergeFrom(value); } else { guard_ = value; } } else { guardBuilder_.mergeFrom(value); } if (guard_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public Builder clearGuard() { bitField0_ = (bitField0_ & ~0x00000010); guard_ = null; if (guardBuilder_ != null) { guardBuilder_.dispose(); guardBuilder_ = null; } onChanged(); return this; } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_1.Expr guard = 5; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getGuardBuilder() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 2; private int choiceInternedStr_ = 0; /** *
       * *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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 arg_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : arg_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (choiceInternedStr_ != 0) { output.writeInt32(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getKey()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getArg()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, choiceInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKey()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArg()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTemplateFieldBuilder(); getKeyFieldBuilder(); getArgFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } choiceInternedStr_ = 0; key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseByKey result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.choiceInternedStr_ = choiceInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.arg_ = argBuilder_ == null ? arg_ : argBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { choiceInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 2; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && key_ != null && key_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000004); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** *
         * key
         * 
* * .daml_lf_1.Expr key = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getKeyBuilder() { bitField0_ |= 0x00000004; 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { argBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_1.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCid()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCid()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTemplateFieldBuilder(); getCidFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.Fetch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000002); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 SoftFetchOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.Update.SoftFetch) 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(); } /** *
     * Soft Fetch Update
     * Fetches a contract of the given template type OR a predecessor.
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.Update.SoftFetch} */ public static final class SoftFetch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.Update.SoftFetch) SoftFetchOrBuilder { private static final long serialVersionUID = 0L; // Use SoftFetch.newBuilder() to construct. private SoftFetch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SoftFetch() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SoftFetch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftFetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftFetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.class, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCid()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCid()); } size += getUnknownFields().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.SoftFetch)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch other = (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch 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.SoftFetch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch 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.SoftFetch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch 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.SoftFetch 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.SoftFetch 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.SoftFetch 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.SoftFetch 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.SoftFetch 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.SoftFetch 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.SoftFetch 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; } /** *
       * Soft Fetch Update
       * Fetches a contract of the given template type OR a predecessor.
       * *Available in versions >= 1.dev*
       * 
* * Protobuf type {@code daml_lf_1.Update.SoftFetch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.Update.SoftFetch) com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftFetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_Update_SoftFetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.class, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTemplateFieldBuilder(); getCidFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); 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_SoftFetch_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch build() { com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch buildPartial() { com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch result = new com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.SoftFetch) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch other) { if (other == com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasCid()) { mergeCid(other.getCid()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000002); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000002; 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.SoftFetch) } // @@protoc_insertion_point(class_scope:daml_lf_1.Update.SoftFetch) private static final com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch(); } public static com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SoftFetch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.SoftFetch 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
     * *Available in versions >= 1.15*
     * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 cid_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : cid_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCid()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCid()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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
       * *Available in versions >= 1.15*
       * 
* * 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) { getInterfaceFieldBuilder(); getCidFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.cid_ = cidBuilder_ == null ? cid_ : cidBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { cidBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public Builder clearCid() { bitField0_ = (bitField0_ & ~0x00000002); cid_ = null; if (cidBuilder_ != null) { cidBuilder_.dispose(); cidBuilder_ = null; } onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_1.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.EmbedExpr result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * Expression type
         * 
* * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** *
         * Expression body
         * 
* * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 key_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : key_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKey()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTemplateFieldBuilder(); getKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.RetrieveByKey result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr key = 2; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && key_ != null && key_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr key = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getKeyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 returnType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : returnType_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : tryExpr_; } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; private int varInternedStr_ = 0; /** *
       * 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : catchExpr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getReturnType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTryExpr()); } if (varInternedStr_ != 0) { output.writeInt32(3, varInternedStr_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getCatchExpr()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReturnType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTryExpr()); } if (varInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, varInternedStr_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCatchExpr()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getReturnTypeFieldBuilder(); getTryExprFieldBuilder(); getCatchExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; returnType_ = null; if (returnTypeBuilder_ != null) { returnTypeBuilder_.dispose(); returnTypeBuilder_ = null; } tryExpr_ = null; if (tryExprBuilder_ != null) { tryExprBuilder_.dispose(); tryExprBuilder_ = null; } varInternedStr_ = 0; catchExpr_ = null; if (catchExprBuilder_ != null) { catchExprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update.TryCatch result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.returnType_ = returnTypeBuilder_ == null ? returnType_ : returnTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tryExpr_ = tryExprBuilder_ == null ? tryExpr_ : tryExprBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.varInternedStr_ = varInternedStr_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.catchExpr_ = catchExprBuilder_ == null ? catchExpr_ : catchExprBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getReturnTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTryExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { varInternedStr_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getCatchExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { returnTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { returnTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Type return_type = 1; */ public Builder mergeReturnType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (returnTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && returnType_ != null && returnType_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getReturnTypeBuilder().mergeFrom(value); } else { returnType_ = value; } } else { returnTypeBuilder_.mergeFrom(value); } if (returnType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Type return_type = 1; */ public Builder clearReturnType() { bitField0_ = (bitField0_ & ~0x00000001); returnType_ = null; if (returnTypeBuilder_ != null) { returnTypeBuilder_.dispose(); returnTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getReturnTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { tryExprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { tryExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public Builder mergeTryExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (tryExprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && tryExpr_ != null && tryExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getTryExprBuilder().mergeFrom(value); } else { tryExpr_ = value; } } else { tryExprBuilder_.mergeFrom(value); } if (tryExpr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public Builder clearTryExpr() { bitField0_ = (bitField0_ & ~0x00000002); tryExpr_ = null; if (tryExprBuilder_ != null) { tryExprBuilder_.dispose(); tryExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr try_expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getTryExprBuilder() { bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; 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() { bitField0_ = (bitField0_ & ~0x00000004); 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 ((bitField0_ & 0x00000008) != 0); } /** * .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; } else { catchExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { catchExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public Builder mergeCatchExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (catchExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && catchExpr_ != null && catchExpr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getCatchExprBuilder().mergeFrom(value); } else { catchExpr_ = value; } } else { catchExprBuilder_.mergeFrom(value); } if (catchExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public Builder clearCatchExpr() { bitField0_ = (bitField0_ & ~0x00000008); catchExpr_ = null; if (catchExprBuilder_ != null) { catchExprBuilder_.dispose(); catchExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr catch_expr = 4; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getCatchExprBuilder() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; @SuppressWarnings("serial") 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), CREATE_INTERFACE(12), EXERCISE_INTERFACE(13), FETCH_INTERFACE(14), DYNAMIC_EXERCISE(15), SOFT_FETCH(16), SOFT_EXERCISE(17), 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 CREATE_INTERFACE; case 13: return EXERCISE_INTERFACE; case 14: return FETCH_INTERFACE; case 15: return DYNAMIC_EXERCISE; case 16: return SOFT_FETCH; case 17: return SOFT_EXERCISE; 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 CREATE_INTERFACE_FIELD_NUMBER = 12; /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; * @return Whether the createInterface field is set. */ @java.lang.Override public boolean hasCreateInterface() { return sumCase_ == 12; } /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; * @return The createInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getCreateInterface() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } public static final int EXERCISE_INTERFACE_FIELD_NUMBER = 13; /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; * @return Whether the exerciseInterface field is set. */ @java.lang.Override public boolean hasExerciseInterface() { return sumCase_ == 13; } /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; * @return The exerciseInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getExerciseInterface() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder() { if (sumCase_ == 13) { 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 = 14; /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; * @return Whether the fetchInterface field is set. */ @java.lang.Override public boolean hasFetchInterface() { return sumCase_ == 14; } /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; * @return The fetchInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getFetchInterface() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } /** *
     * *Available in versions >= 1.15*
     * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } public static final int DYNAMIC_EXERCISE_FIELD_NUMBER = 15; /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; * @return Whether the dynamicExercise field is set. */ @java.lang.Override public boolean hasDynamicExercise() { return sumCase_ == 15; } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; * @return The dynamicExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise getDynamicExercise() { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder getDynamicExerciseOrBuilder() { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } public static final int SOFT_FETCH_FIELD_NUMBER = 16; /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; * @return Whether the softFetch field is set. */ @java.lang.Override public boolean hasSoftFetch() { return sumCase_ == 16; } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; * @return The softFetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch getSoftFetch() { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder getSoftFetchOrBuilder() { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } public static final int SOFT_EXERCISE_FIELD_NUMBER = 17; /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; * @return Whether the softExercise field is set. */ @java.lang.Override public boolean hasSoftExercise() { return sumCase_ == 17; } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; * @return The softExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise getSoftExercise() { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance(); } /** *
     * *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder getSoftExerciseOrBuilder() { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.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.CreateInterface) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_); } if (sumCase_ == 15) { output.writeMessage(15, (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_); } if (sumCase_ == 16) { output.writeMessage(16, (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_); } if (sumCase_ == 17) { output.writeMessage(17, (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_); } getUnknownFields().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.CreateInterface) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_); } if (sumCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_); } if (sumCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_); } if (sumCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_); } size += getUnknownFields().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 (!getCreateInterface() .equals(other.getCreateInterface())) return false; break; case 13: if (!getExerciseInterface() .equals(other.getExerciseInterface())) return false; break; case 14: if (!getFetchInterface() .equals(other.getFetchInterface())) return false; break; case 15: if (!getDynamicExercise() .equals(other.getDynamicExercise())) return false; break; case 16: if (!getSoftFetch() .equals(other.getSoftFetch())) return false; break; case 17: if (!getSoftExercise() .equals(other.getSoftExercise())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CREATE_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getCreateInterface().hashCode(); break; case 13: hash = (37 * hash) + EXERCISE_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getExerciseInterface().hashCode(); break; case 14: hash = (37 * hash) + FETCH_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFetchInterface().hashCode(); break; case 15: hash = (37 * hash) + DYNAMIC_EXERCISE_FIELD_NUMBER; hash = (53 * hash) + getDynamicExercise().hashCode(); break; case 16: hash = (37 * hash) + SOFT_FETCH_FIELD_NUMBER; hash = (53 * hash) + getSoftFetch().hashCode(); break; case 17: hash = (37 * hash) + SOFT_EXERCISE_FIELD_NUMBER; hash = (53 * hash) + getSoftExercise().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (pureBuilder_ != null) { pureBuilder_.clear(); } if (blockBuilder_ != null) { blockBuilder_.clear(); } if (createBuilder_ != null) { createBuilder_.clear(); } if (exerciseBuilder_ != null) { exerciseBuilder_.clear(); } if (exerciseByKeyBuilder_ != null) { exerciseByKeyBuilder_.clear(); } if (fetchBuilder_ != null) { fetchBuilder_.clear(); } if (getTimeBuilder_ != null) { getTimeBuilder_.clear(); } if (lookupByKeyBuilder_ != null) { lookupByKeyBuilder_.clear(); } if (fetchByKeyBuilder_ != null) { fetchByKeyBuilder_.clear(); } if (embedExprBuilder_ != null) { embedExprBuilder_.clear(); } if (tryCatchBuilder_ != null) { tryCatchBuilder_.clear(); } if (createInterfaceBuilder_ != null) { createInterfaceBuilder_.clear(); } if (exerciseInterfaceBuilder_ != null) { exerciseInterfaceBuilder_.clear(); } if (fetchInterfaceBuilder_ != null) { fetchInterfaceBuilder_.clear(); } if (dynamicExerciseBuilder_ != null) { dynamicExerciseBuilder_.clear(); } if (softFetchBuilder_ != null) { softFetchBuilder_.clear(); } if (softExerciseBuilder_ != null) { softExerciseBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Update result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Update result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && pureBuilder_ != null) { result.sum_ = pureBuilder_.build(); } if (sumCase_ == 2 && blockBuilder_ != null) { result.sum_ = blockBuilder_.build(); } if (sumCase_ == 3 && createBuilder_ != null) { result.sum_ = createBuilder_.build(); } if (sumCase_ == 4 && exerciseBuilder_ != null) { result.sum_ = exerciseBuilder_.build(); } if (sumCase_ == 10 && exerciseByKeyBuilder_ != null) { result.sum_ = exerciseByKeyBuilder_.build(); } if (sumCase_ == 5 && fetchBuilder_ != null) { result.sum_ = fetchBuilder_.build(); } if (sumCase_ == 6 && getTimeBuilder_ != null) { result.sum_ = getTimeBuilder_.build(); } if (sumCase_ == 8 && lookupByKeyBuilder_ != null) { result.sum_ = lookupByKeyBuilder_.build(); } if (sumCase_ == 9 && fetchByKeyBuilder_ != null) { result.sum_ = fetchByKeyBuilder_.build(); } if (sumCase_ == 7 && embedExprBuilder_ != null) { result.sum_ = embedExprBuilder_.build(); } if (sumCase_ == 11 && tryCatchBuilder_ != null) { result.sum_ = tryCatchBuilder_.build(); } if (sumCase_ == 12 && createInterfaceBuilder_ != null) { result.sum_ = createInterfaceBuilder_.build(); } if (sumCase_ == 13 && exerciseInterfaceBuilder_ != null) { result.sum_ = exerciseInterfaceBuilder_.build(); } if (sumCase_ == 14 && fetchInterfaceBuilder_ != null) { result.sum_ = fetchInterfaceBuilder_.build(); } if (sumCase_ == 15 && dynamicExerciseBuilder_ != null) { result.sum_ = dynamicExerciseBuilder_.build(); } if (sumCase_ == 16 && softFetchBuilder_ != null) { result.sum_ = softFetchBuilder_.build(); } if (sumCase_ == 17 && softExerciseBuilder_ != null) { result.sum_ = softExerciseBuilder_.build(); } } @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 CREATE_INTERFACE: { mergeCreateInterface(other.getCreateInterface()); break; } case EXERCISE_INTERFACE: { mergeExerciseInterface(other.getExerciseInterface()); break; } case FETCH_INTERFACE: { mergeFetchInterface(other.getFetchInterface()); break; } case DYNAMIC_EXERCISE: { mergeDynamicExercise(other.getDynamicExercise()); break; } case SOFT_FETCH: { mergeSoftFetch(other.getSoftFetch()); break; } case SOFT_EXERCISE: { mergeSoftExercise(other.getSoftExercise()); break; } case SUM_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPureFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getBlockFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCreateFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 case 34: { input.readMessage( getExerciseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 4; break; } // case 34 case 42: { input.readMessage( getFetchFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 50: { input.readMessage( getGetTimeFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 6; break; } // case 50 case 58: { input.readMessage( getEmbedExprFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 66: { input.readMessage( getLookupByKeyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 8; break; } // case 66 case 74: { input.readMessage( getFetchByKeyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 9; break; } // case 74 case 82: { input.readMessage( getExerciseByKeyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 10; break; } // case 82 case 90: { input.readMessage( getTryCatchFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 11; break; } // case 90 case 98: { input.readMessage( getCreateInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 12; break; } // case 98 case 106: { input.readMessage( getExerciseInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 13; break; } // case 106 case 114: { input.readMessage( getFetchInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 14; break; } // case 114 case 122: { input.readMessage( getDynamicExerciseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 15; break; } // case 122 case 130: { input.readMessage( getSoftFetchFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 16; break; } // case 130 case 138: { input.readMessage( getSoftExerciseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 17; break; } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } 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 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); } else { 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.CreateInterface, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder> createInterfaceBuilder_; /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; * @return Whether the createInterface field is set. */ @java.lang.Override public boolean hasCreateInterface() { return sumCase_ == 12; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; * @return The createInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface getCreateInterface() { if (createInterfaceBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } else { if (sumCase_ == 12) { return createInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ 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_ = 12; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ 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_ = 12; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ public Builder mergeCreateInterface(com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface value) { if (createInterfaceBuilder_ == null) { if (sumCase_ == 12 && 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_ == 12) { createInterfaceBuilder_.mergeFrom(value); } else { createInterfaceBuilder_.setMessage(value); } } sumCase_ = 12; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ public Builder clearCreateInterface() { if (createInterfaceBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } createInterfaceBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.Builder getCreateInterfaceBuilder() { return getCreateInterfaceFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder() { if ((sumCase_ == 12) && (createInterfaceBuilder_ != null)) { return createInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.CreateInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.CreateInterface create_interface = 12; */ 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_ == 12)) { 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_ = 12; onChanged(); return createInterfaceBuilder_; } 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.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; * @return Whether the exerciseInterface field is set. */ @java.lang.Override public boolean hasExerciseInterface() { return sumCase_ == 13; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; * @return The exerciseInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface getExerciseInterface() { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } else { if (sumCase_ == 13) { return exerciseInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ 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_ = 13; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ 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_ = 13; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ public Builder mergeExerciseInterface(com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface value) { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 13 && 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_ == 13) { exerciseInterfaceBuilder_.mergeFrom(value); } else { exerciseInterfaceBuilder_.setMessage(value); } } sumCase_ = 13; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ public Builder clearExerciseInterface() { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; } exerciseInterfaceBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.Builder getExerciseInterfaceBuilder() { return getExerciseInterfaceFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder() { if ((sumCase_ == 13) && (exerciseInterfaceBuilder_ != null)) { return exerciseInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.ExerciseInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.ExerciseInterface exercise_interface = 13; */ 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_ == 13)) { 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_ = 13; 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.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; * @return Whether the fetchInterface field is set. */ @java.lang.Override public boolean hasFetchInterface() { return sumCase_ == 14; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; * @return The fetchInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface getFetchInterface() { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } else { if (sumCase_ == 14) { return fetchInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ 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_ = 14; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ 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_ = 14; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ public Builder mergeFetchInterface(com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface value) { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 14 && 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_ == 14) { fetchInterfaceBuilder_.mergeFrom(value); } else { fetchInterfaceBuilder_.setMessage(value); } } sumCase_ = 14; return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ public Builder clearFetchInterface() { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; } fetchInterfaceBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.Builder getFetchInterfaceBuilder() { return getFetchInterfaceFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder() { if ((sumCase_ == 14) && (fetchInterfaceBuilder_ != null)) { return fetchInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.FetchInterface.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * .daml_lf_1.Update.FetchInterface fetch_interface = 14; */ 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_ == 14)) { 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_ = 14; onChanged(); return fetchInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder> dynamicExerciseBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; * @return Whether the dynamicExercise field is set. */ @java.lang.Override public boolean hasDynamicExercise() { return sumCase_ == 15; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; * @return The dynamicExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise getDynamicExercise() { if (dynamicExerciseBuilder_ == null) { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } else { if (sumCase_ == 15) { return dynamicExerciseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ public Builder setDynamicExercise(com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise value) { if (dynamicExerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { dynamicExerciseBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ public Builder setDynamicExercise( com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder builderForValue) { if (dynamicExerciseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { dynamicExerciseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 15; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ public Builder mergeDynamicExercise(com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise value) { if (dynamicExerciseBuilder_ == null) { if (sumCase_ == 15 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 15) { dynamicExerciseBuilder_.mergeFrom(value); } else { dynamicExerciseBuilder_.setMessage(value); } } sumCase_ = 15; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ public Builder clearDynamicExercise() { if (dynamicExerciseBuilder_ == null) { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; } dynamicExerciseBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder getDynamicExerciseBuilder() { return getDynamicExerciseFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder getDynamicExerciseOrBuilder() { if ((sumCase_ == 15) && (dynamicExerciseBuilder_ != null)) { return dynamicExerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.DynamicExercise dynamic_exercise = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder> getDynamicExerciseFieldBuilder() { if (dynamicExerciseBuilder_ == null) { if (!(sumCase_ == 15)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.getDefaultInstance(); } dynamicExerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.DynamicExerciseOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.DynamicExercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 15; onChanged(); return dynamicExerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder> softFetchBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; * @return Whether the softFetch field is set. */ @java.lang.Override public boolean hasSoftFetch() { return sumCase_ == 16; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; * @return The softFetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch getSoftFetch() { if (softFetchBuilder_ == null) { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } else { if (sumCase_ == 16) { return softFetchBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ public Builder setSoftFetch(com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch value) { if (softFetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { softFetchBuilder_.setMessage(value); } sumCase_ = 16; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ public Builder setSoftFetch( com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder builderForValue) { if (softFetchBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { softFetchBuilder_.setMessage(builderForValue.build()); } sumCase_ = 16; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ public Builder mergeSoftFetch(com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch value) { if (softFetchBuilder_ == null) { if (sumCase_ == 16 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 16) { softFetchBuilder_.mergeFrom(value); } else { softFetchBuilder_.setMessage(value); } } sumCase_ = 16; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ public Builder clearSoftFetch() { if (softFetchBuilder_ == null) { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; } softFetchBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder getSoftFetchBuilder() { return getSoftFetchFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder getSoftFetchOrBuilder() { if ((sumCase_ == 16) && (softFetchBuilder_ != null)) { return softFetchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftFetch soft_fetch = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder> getSoftFetchFieldBuilder() { if (softFetchBuilder_ == null) { if (!(sumCase_ == 16)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.getDefaultInstance(); } softFetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch.Builder, com.daml.daml_lf_dev.DamlLf1.Update.SoftFetchOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.SoftFetch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 16; onChanged(); return softFetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise, com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder> softExerciseBuilder_; /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; * @return Whether the softExercise field is set. */ @java.lang.Override public boolean hasSoftExercise() { return sumCase_ == 17; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; * @return The softExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise getSoftExercise() { if (softExerciseBuilder_ == null) { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance(); } else { if (sumCase_ == 17) { return softExerciseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ public Builder setSoftExercise(com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise value) { if (softExerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { softExerciseBuilder_.setMessage(value); } sumCase_ = 17; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ public Builder setSoftExercise( com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder builderForValue) { if (softExerciseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { softExerciseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 17; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ public Builder mergeSoftExercise(com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise value) { if (softExerciseBuilder_ == null) { if (sumCase_ == 17 && sum_ != com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.newBuilder((com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 17) { softExerciseBuilder_.mergeFrom(value); } else { softExerciseBuilder_.setMessage(value); } } sumCase_ = 17; return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ public Builder clearSoftExercise() { if (softExerciseBuilder_ == null) { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; } softExerciseBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ public com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder getSoftExerciseBuilder() { return getSoftExerciseFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder getSoftExerciseOrBuilder() { if ((sumCase_ == 17) && (softExerciseBuilder_ != null)) { return softExerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.Update.SoftExercise soft_exercise = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise, com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder> getSoftExerciseFieldBuilder() { if (softExerciseBuilder_ == null) { if (!(sumCase_ == 17)) { sum_ = com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.getDefaultInstance(); } softExerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise, com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise.Builder, com.daml.daml_lf_dev.DamlLf1.Update.SoftExerciseOrBuilder>( (com.daml.daml_lf_dev.DamlLf1.Update.SoftExercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 17; onChanged(); return softExerciseBuilder_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 party_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : party_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 
* * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
       * 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 retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getParty()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getRetType()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParty()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRetType()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getPartyFieldBuilder(); getExprFieldBuilder(); getRetTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; party_ = null; if (partyBuilder_ != null) { partyBuilder_.dispose(); partyBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } retType_ = null; if (retTypeBuilder_ != null) { retTypeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Scenario.Commit result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.party_ = partyBuilder_ == null ? party_ : partyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.retType_ = retTypeBuilder_ == null ? retType_ : retTypeBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPartyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getRetTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { partyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { partyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && party_ != null && party_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getPartyBuilder().mergeFrom(value); } else { party_ = value; } } else { partyBuilder_.mergeFrom(value); } if (party_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; */ public Builder clearParty() { bitField0_ = (bitField0_ & ~0x00000001); party_ = null; if (partyBuilder_ != null) { partyBuilder_.dispose(); partyBuilder_ = null; } onChanged(); return this; } /** *
         * committing party
         * 
* * .daml_lf_1.Expr party = 1; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getPartyBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
         * 
* * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * 
* * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { retTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { retTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && retType_ != null && retType_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getRetTypeBuilder().mergeFrom(value); } else { retType_ = value; } } else { retTypeBuilder_.mergeFrom(value); } if (retType_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000004); retType_ = null; if (retTypeBuilder_ != null) { retTypeBuilder_.dispose(); retTypeBuilder_ = null; } onChanged(); return this; } /** *
         * type of result
         * 
* * .daml_lf_1.Type ret_type = 3; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getRetTypeBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 body_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : body_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBody()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getBodyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Scenario.EmbedExpr result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (pureBuilder_ != null) { pureBuilder_.clear(); } if (blockBuilder_ != null) { blockBuilder_.clear(); } if (commitBuilder_ != null) { commitBuilder_.clear(); } if (mustFailAtBuilder_ != null) { mustFailAtBuilder_.clear(); } if (passBuilder_ != null) { passBuilder_.clear(); } if (getTimeBuilder_ != null) { getTimeBuilder_.clear(); } if (getPartyBuilder_ != null) { getPartyBuilder_.clear(); } if (embedExprBuilder_ != null) { embedExprBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Scenario result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Scenario result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && pureBuilder_ != null) { result.sum_ = pureBuilder_.build(); } if (sumCase_ == 2 && blockBuilder_ != null) { result.sum_ = blockBuilder_.build(); } if (sumCase_ == 3 && commitBuilder_ != null) { result.sum_ = commitBuilder_.build(); } if (sumCase_ == 4 && mustFailAtBuilder_ != null) { result.sum_ = mustFailAtBuilder_.build(); } if (sumCase_ == 5 && passBuilder_ != null) { result.sum_ = passBuilder_.build(); } if (sumCase_ == 6 && getTimeBuilder_ != null) { result.sum_ = getTimeBuilder_.build(); } if (sumCase_ == 7 && getPartyBuilder_ != null) { result.sum_ = getPartyBuilder_.build(); } if (sumCase_ == 8 && embedExprBuilder_ != null) { result.sum_ = embedExprBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPureFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getBlockFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCommitFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 case 34: { input.readMessage( getMustFailAtFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 4; break; } // case 34 case 42: { input.readMessage( getPassFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 50: { input.readMessage( getGetTimeFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 6; break; } // case 50 case 58: { input.readMessage( getGetPartyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 66: { input.readMessage( getEmbedExprFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 8; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } else { 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); } 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 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); /** *
     * The optional authorizers of the choice. When present they have type `List Party`.
     * When missing, we assume the default value: template-signatories + choice-cotrollers.
     * 
* * .daml_lf_1.Expr authorizers = 12; * @return Whether the authorizers field is set. */ boolean hasAuthorizers(); /** *
     * The optional authorizers of the choice. When present they have type `List Party`.
     * When missing, we assume the default value: template-signatories + choice-cotrollers.
     * 
* * .daml_lf_1.Expr authorizers = 12; * @return The authorizers. */ com.daml.daml_lf_dev.DamlLf1.Expr getAuthorizers(); /** *
     * The optional authorizers of the choice. When present they have type `List Party`.
     * When missing, we assume the default value: template-signatories + choice-cotrollers.
     * 
* * .daml_lf_1.Expr authorizers = 12; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getAuthorizersOrBuilder(); /** *
     * 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(); com.daml.daml_lf_dev.DamlLf1.TemplateChoice.NameCase getNameCase(); 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(); } 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 bitField0_; private int nameCase_ = 0; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = false; /** *
     * 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 controllers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : controllers_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * 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 observers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : observers_; } public static final int AUTHORIZERS_FIELD_NUMBER = 12; private com.daml.daml_lf_dev.DamlLf1.Expr authorizers_; /** *
     * The optional authorizers of the choice. When present they have type `List Party`.
     * When missing, we assume the default value: template-signatories + choice-cotrollers.
     * 
* * .daml_lf_1.Expr authorizers = 12; * @return Whether the authorizers field is set. */ @java.lang.Override public boolean hasAuthorizers() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The optional authorizers of the choice. When present they have type `List Party`.
     * When missing, we assume the default value: template-signatories + choice-cotrollers.
     * 
* * .daml_lf_1.Expr authorizers = 12; * @return The authorizers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getAuthorizers() { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : authorizers_; } /** *
     * The optional authorizers of the choice. When present they have type `List Party`.
     * When missing, we assume the default value: template-signatories + choice-cotrollers.
     * 
* * .daml_lf_1.Expr authorizers = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getAuthorizersOrBuilder() { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : authorizers_; } 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 ((bitField0_ & 0x00000008) != 0); } /** *
     * 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 argBinder_ == null ? com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance() : argBinder_; } 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 ((bitField0_ & 0x00000010) != 0); } /** *
     * 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 retType_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : retType_; } 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 ((bitField0_ & 0x00000020) != 0); } /** *
     * 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 update_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : update_; } 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 ((bitField0_ & 0x00000040) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getControllers()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getArgBinder()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getRetType()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getUpdate()); } if (selfBinderCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, selfBinder_); } if (((bitField0_ & 0x00000040) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getObservers()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(12, getAuthorizers()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getControllers()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getArgBinder()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRetType()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getUpdate()); } if (selfBinderCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, selfBinder_); } if (((bitField0_ & 0x00000040) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getObservers()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getAuthorizers()); } size += getUnknownFields().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 (hasAuthorizers() != other.hasAuthorizers()) return false; if (hasAuthorizers()) { if (!getAuthorizers() .equals(other.getAuthorizers())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasAuthorizers()) { hash = (37 * hash) + AUTHORIZERS_FIELD_NUMBER; hash = (53 * hash) + getAuthorizers().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) + getUnknownFields().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) { getControllersFieldBuilder(); getObserversFieldBuilder(); getAuthorizersFieldBuilder(); getArgBinderFieldBuilder(); getRetTypeFieldBuilder(); getUpdateFieldBuilder(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; consuming_ = false; controllers_ = null; if (controllersBuilder_ != null) { controllersBuilder_.dispose(); controllersBuilder_ = null; } observers_ = null; if (observersBuilder_ != null) { observersBuilder_.dispose(); observersBuilder_ = null; } authorizers_ = null; if (authorizersBuilder_ != null) { authorizersBuilder_.dispose(); authorizersBuilder_ = null; } argBinder_ = null; if (argBinderBuilder_ != null) { argBinderBuilder_.dispose(); argBinderBuilder_ = null; } retType_ = null; if (retTypeBuilder_ != null) { retTypeBuilder_.dispose(); retTypeBuilder_ = null; } update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.TemplateChoice result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.consuming_ = consuming_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.controllers_ = controllersBuilder_ == null ? controllers_ : controllersBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.observers_ = observersBuilder_ == null ? observers_ : observersBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.authorizers_ = authorizersBuilder_ == null ? authorizers_ : authorizersBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.argBinder_ = argBinderBuilder_ == null ? argBinder_ : argBinderBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.retType_ = retTypeBuilder_ == null ? retType_ : retTypeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.TemplateChoice result) { result.nameCase_ = nameCase_; result.name_ = this.name_; result.selfBinderCase_ = selfBinderCase_; result.selfBinder_ = this.selfBinder_; } @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.hasAuthorizers()) { mergeAuthorizers(other.getAuthorizers()); } 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 16: { consuming_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 16 case 26: { input.readMessage( getControllersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getArgBinderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 34 case 42: { input.readMessage( getRetTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); selfBinderCase_ = 7; selfBinder_ = s; break; } // case 58 case 66: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 66 case 72: { name_ = input.readInt32(); nameCase_ = 9; break; } // case 72 case 80: { selfBinder_ = input.readInt32(); selfBinderCase_ = 10; break; } // case 80 case 90: { input.readMessage( getObserversFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 90 case 98: { input.readMessage( getAuthorizersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; } private int bitField0_; /** *
       * *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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Choice type
       * 
* * bool consuming = 2; * @return This builder for chaining. */ public Builder clearConsuming() { bitField0_ = (bitField0_ & ~0x00000004); 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 ((bitField0_ & 0x00000008) != 0); } /** *
       * 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; } else { controllersBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { controllersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && controllers_ != null && controllers_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getControllersBuilder().mergeFrom(value); } else { controllers_ = value; } } else { controllersBuilder_.mergeFrom(value); } if (controllers_ != null) { bitField0_ |= 0x00000008; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000008); controllers_ = null; if (controllersBuilder_ != null) { controllersBuilder_.dispose(); controllersBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
       * 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; } else { observersBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { observersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && observers_ != null && observers_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getObserversBuilder().mergeFrom(value); } else { observers_ = value; } } else { observersBuilder_.mergeFrom(value); } if (observers_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_1.Expr observers = 11; */ public Builder clearObservers() { bitField0_ = (bitField0_ & ~0x00000010); observers_ = null; if (observersBuilder_ != null) { observersBuilder_.dispose(); observersBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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.Expr authorizers_; 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> authorizersBuilder_; /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; * @return Whether the authorizers field is set. */ public boolean hasAuthorizers() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; * @return The authorizers. */ public com.daml.daml_lf_dev.DamlLf1.Expr getAuthorizers() { if (authorizersBuilder_ == null) { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : authorizers_; } else { return authorizersBuilder_.getMessage(); } } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ public Builder setAuthorizers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (authorizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } authorizers_ = value; } else { authorizersBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ public Builder setAuthorizers( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (authorizersBuilder_ == null) { authorizers_ = builderForValue.build(); } else { authorizersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ public Builder mergeAuthorizers(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (authorizersBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && authorizers_ != null && authorizers_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getAuthorizersBuilder().mergeFrom(value); } else { authorizers_ = value; } } else { authorizersBuilder_.mergeFrom(value); } if (authorizers_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ public Builder clearAuthorizers() { bitField0_ = (bitField0_ & ~0x00000020); authorizers_ = null; if (authorizersBuilder_ != null) { authorizersBuilder_.dispose(); authorizersBuilder_ = null; } onChanged(); return this; } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getAuthorizersBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAuthorizersFieldBuilder().getBuilder(); } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getAuthorizersOrBuilder() { if (authorizersBuilder_ != null) { return authorizersBuilder_.getMessageOrBuilder(); } else { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : authorizers_; } } /** *
       * The optional authorizers of the choice. When present they have type `List Party`.
       * When missing, we assume the default value: template-signatories + choice-cotrollers.
       * 
* * .daml_lf_1.Expr authorizers = 12; */ 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> getAuthorizersFieldBuilder() { if (authorizersBuilder_ == null) { authorizersBuilder_ = 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>( getAuthorizers(), getParentForChildren(), isClean()); authorizers_ = null; } return authorizersBuilder_; } 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 ((bitField0_ & 0x00000040) != 0); } /** *
       * 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; } else { argBinderBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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(); } else { argBinderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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 (((bitField0_ & 0x00000040) != 0) && argBinder_ != null && argBinder_ != com.daml.daml_lf_dev.DamlLf1.VarWithType.getDefaultInstance()) { getArgBinderBuilder().mergeFrom(value); } else { argBinder_ = value; } } else { argBinderBuilder_.mergeFrom(value); } if (argBinder_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_1.VarWithType arg_binder = 4; */ public Builder clearArgBinder() { bitField0_ = (bitField0_ & ~0x00000040); argBinder_ = null; if (argBinderBuilder_ != null) { argBinderBuilder_.dispose(); argBinderBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000040; 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 ((bitField0_ & 0x00000080) != 0); } /** *
       * 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; } else { retTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); 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(); } else { retTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); 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 (((bitField0_ & 0x00000080) != 0) && retType_ != null && retType_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getRetTypeBuilder().mergeFrom(value); } else { retType_ = value; } } else { retTypeBuilder_.mergeFrom(value); } if (retType_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000080); retType_ = null; if (retTypeBuilder_ != null) { retTypeBuilder_.dispose(); retTypeBuilder_ = null; } onChanged(); return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_1.Type ret_type = 5; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getRetTypeBuilder() { bitField0_ |= 0x00000080; 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 ((bitField0_ & 0x00000100) != 0); } /** *
       * 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; } else { updateBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); 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(); } else { updateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); 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 (((bitField0_ & 0x00000100) != 0) && update_ != null && update_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; } } else { updateBuilder_.mergeFrom(value); } if (update_ != null) { bitField0_ |= 0x00000100; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000100); update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000100; 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 ((bitField0_ & 0x00000800) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * .daml_lf_1.Location location = 8; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * .daml_lf_1.Location location = 8; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000800); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 8; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000800; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); fieldCase_ = 2; field_ = s; break; } // case 18 case 24: { field_ = input.readInt32(); fieldCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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; @SuppressWarnings("serial") 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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (projectionsBuilder_ == null) { projections_ = java.util.Collections.emptyList(); } else { projections_ = null; projectionsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections result) { if (projectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { projections_ = java.util.Collections.unmodifiableList(projections_); bitField0_ = (bitField0_ & ~0x00000001); } result.projections_ = projections_; } else { result.projections_ = projectionsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projections result) { int from_bitField0_ = bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.KeyExpr.Projection.parser(), extensionRegistry); if (projectionsBuilder_ == null) { ensureProjectionsIsMutable(); projections_.add(m); } else { projectionsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int fieldCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance() : expr_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getExpr()); } if (fieldCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) field_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpr()); } if (fieldCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) field_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField result) { result.fieldCase_ = fieldCase_; result.field_ = this.field_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { field_ = input.readInt32(); fieldCase_ = 3; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
         * *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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.KeyExpr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.KeyExpr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.KeyExpr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.KeyExpr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.KeyExpr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.KeyExpr.Builder getExprBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 tycon_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance() : tycon_; } public static final int FIELDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTycon()); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(2, fields_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTyconFieldBuilder(); getFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000002); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.KeyExpr.Record result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tycon_ = tyconBuilder_ == null ? tycon_ : tyconBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ & ~0x00000002); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.KeyExpr.RecordField.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** *
         * 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; } else { tyconBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { tyconBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf1.Type.Con.getDefaultInstance()) { getTyconBuilder().mergeFrom(value); } else { tycon_ = value; } } else { tyconBuilder_.mergeFrom(value); } if (tycon_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public Builder clearTycon() { bitField0_ = (bitField0_ & ~0x00000001); tycon_ = null; if (tyconBuilder_ != null) { tyconBuilder_.dispose(); tyconBuilder_ = null; } onChanged(); return this; } /** *
         * Always fully applied
         * 
* * .daml_lf_1.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Con.Builder getTyconBuilder() { bitField0_ |= 0x00000001; 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_ & 0x00000002) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; @SuppressWarnings("serial") 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (projectionsBuilder_ != null) { projectionsBuilder_.clear(); } if (recordBuilder_ != null) { recordBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.KeyExpr result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.KeyExpr result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 1 && projectionsBuilder_ != null) { result.sum_ = projectionsBuilder_.build(); } if (sumCase_ == 2 && recordBuilder_ != null) { result.sum_ = recordBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getProjectionsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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); } else { 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); } else { 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 InterfaceInstanceBodyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.InterfaceInstanceBody) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ java.util.List getMethodsList(); /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod getMethods(int index); /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ int getMethodsCount(); /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ java.util.List getMethodsOrBuilderList(); /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder getMethodsOrBuilder( int index); /** * .daml_lf_1.Expr view = 2; * @return Whether the view field is set. */ boolean hasView(); /** * .daml_lf_1.Expr view = 2; * @return The view. */ com.daml.daml_lf_dev.DamlLf1.Expr getView(); /** * .daml_lf_1.Expr view = 2; */ com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getViewOrBuilder(); } /** *
   * Contents of an interface instance.
   * *Available in versions >= 1.15*
   * 
* * Protobuf type {@code daml_lf_1.InterfaceInstanceBody} */ public static final class InterfaceInstanceBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.InterfaceInstanceBody) InterfaceInstanceBodyOrBuilder { private static final long serialVersionUID = 0L; // Use InterfaceInstanceBody.newBuilder() to construct. private InterfaceInstanceBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterfaceInstanceBody() { methods_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterfaceInstanceBody(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.class, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder.class); } public interface InterfaceInstanceMethodOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod) 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(); } /** * Protobuf type {@code daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod} */ public static final class InterfaceInstanceMethod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod) InterfaceInstanceMethodOrBuilder { private static final long serialVersionUID = 0L; // Use InterfaceInstanceMethod.newBuilder() to construct. private InterfaceInstanceMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterfaceInstanceMethod() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterfaceInstanceMethod(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.class, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder.class); } private int bitField0_; public static final int METHOD_INTERNED_NAME_FIELD_NUMBER = 1; private int methodInternedName_ = 0; /** * 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 value_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : value_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } size += getUnknownFields().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.InterfaceInstanceBody.InterfaceInstanceMethod)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod other = (com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod) obj; if (getMethodInternedName() != other.getMethodInternedName()) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod) com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.class, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; methodInternedName_ = 0; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); 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_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod build() { com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod buildPartial() { com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod result = new com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.methodInternedName_ = methodInternedName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.InterfaceInstanceBody.InterfaceInstanceMethod) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod other) { if (other == com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance()) return this; if (other.getMethodInternedName() != 0) { setMethodInternedName(other.getMethodInternedName()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { methodInternedName_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 method_interned_name = 1; * @return This builder for chaining. */ public Builder clearMethodInternedName() { bitField0_ = (bitField0_ & ~0x00000001); 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr value = 2; */ public Builder mergeValue(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getValueBuilder() { bitField0_ |= 0x00000002; 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.InterfaceInstanceBody.InterfaceInstanceMethod) } // @@protoc_insertion_point(class_scope:daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod) private static final com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod(); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterfaceInstanceMethod parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.InterfaceInstanceBody.InterfaceInstanceMethod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int METHODS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List methods_; /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public java.util.List getMethodsOrBuilderList() { return methods_; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod getMethods(int index) { return methods_.get(index); } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder getMethodsOrBuilder( int index) { return methods_.get(index); } public static final int VIEW_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.Expr view_; /** * .daml_lf_1.Expr view = 2; * @return Whether the view field is set. */ @java.lang.Override public boolean hasView() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_1.Expr view = 2; * @return The view. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Expr getView() { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : view_; } /** * .daml_lf_1.Expr view = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getViewOrBuilder() { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : view_; } 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 < methods_.size(); i++) { output.writeMessage(1, methods_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getView()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < methods_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, methods_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getView()); } size += getUnknownFields().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.InterfaceInstanceBody)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody other = (com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody) obj; if (!getMethodsList() .equals(other.getMethodsList())) return false; if (hasView() != other.hasView()) return false; if (hasView()) { if (!getView() .equals(other.getView())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMethodsCount() > 0) { hash = (37 * hash) + METHODS_FIELD_NUMBER; hash = (53 * hash) + getMethodsList().hashCode(); } if (hasView()) { hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + getView().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody 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.InterfaceInstanceBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody 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.InterfaceInstanceBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody 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.InterfaceInstanceBody 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.InterfaceInstanceBody 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.InterfaceInstanceBody 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.InterfaceInstanceBody 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.InterfaceInstanceBody 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.InterfaceInstanceBody 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.InterfaceInstanceBody 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; } /** *
     * Contents of an interface instance.
     * *Available in versions >= 1.15*
     * 
* * Protobuf type {@code daml_lf_1.InterfaceInstanceBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.InterfaceInstanceBody) com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_InterfaceInstanceBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.class, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.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(); getViewFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); } else { methods_ = null; methodsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = 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_InterfaceInstanceBody_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody build() { com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody buildPartial() { com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody result = new com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody result) { if (methodsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000001); } result.methods_ = methods_; } else { result.methods_ = methodsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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.InterfaceInstanceBody) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody other) { if (other == com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance()) return this; 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.hasView()) { mergeView(other.getView()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.InterfaceInstanceBody.InterfaceInstanceMethod m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.parser(), extensionRegistry); if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(m); } else { methodsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getViewFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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.InterfaceInstanceBody.InterfaceInstanceMethod, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder> methodsBuilder_; /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public java.util.List getMethodsList() { if (methodsBuilder_ == null) { return java.util.Collections.unmodifiableList(methods_); } else { return methodsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public int getMethodsCount() { if (methodsBuilder_ == null) { return methods_.size(); } else { return methodsBuilder_.getCount(); } } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod getMethods(int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.set(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod 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.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ 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.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder clearMethods() { if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { methodsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder removeMethods(int index) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.remove(index); onChanged(); } else { methodsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder getMethodsBuilder( int index) { return getMethodsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder getMethodsOrBuilder( int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public java.util.List getMethodsOrBuilderList() { if (methodsBuilder_ != null) { return methodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(methods_); } } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder addMethodsBuilder() { return getMethodsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance()); } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder addMethodsBuilder( int index) { return getMethodsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance()); } /** * repeated .daml_lf_1.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public java.util.List getMethodsBuilderList() { return getMethodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder> getMethodsFieldBuilder() { if (methodsBuilder_ == null) { methodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethod.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder>( methods_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); methods_ = null; } return methodsBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Expr view_; 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> viewBuilder_; /** * .daml_lf_1.Expr view = 2; * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.Expr view = 2; * @return The view. */ public com.daml.daml_lf_dev.DamlLf1.Expr getView() { if (viewBuilder_ == null) { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : view_; } else { return viewBuilder_.getMessage(); } } /** * .daml_lf_1.Expr view = 2; */ public Builder setView(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (viewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } view_ = value; } else { viewBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr view = 2; */ public Builder setView( com.daml.daml_lf_dev.DamlLf1.Expr.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { viewBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr view = 2; */ public Builder mergeView(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (viewBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && view_ != null && view_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; } } else { viewBuilder_.mergeFrom(value); } if (view_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr view = 2; */ public Builder clearView() { bitField0_ = (bitField0_ & ~0x00000002); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr view = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getViewBuilder() { bitField0_ |= 0x00000002; onChanged(); return getViewFieldBuilder().getBuilder(); } /** * .daml_lf_1.Expr view = 2; */ public com.daml.daml_lf_dev.DamlLf1.ExprOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : view_; } } /** * .daml_lf_1.Expr view = 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> getViewFieldBuilder() { if (viewBuilder_ == null) { viewBuilder_ = 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>( getView(), getParentForChildren(), isClean()); view_ = null; } return viewBuilder_; } @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.InterfaceInstanceBody) } // @@protoc_insertion_point(class_scope:daml_lf_1.InterfaceInstanceBody) private static final com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody(); } public static com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterfaceInstanceBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.InterfaceInstanceBody 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(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ java.util.List getImplementsList(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements getImplements(int index); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ int getImplementsCount(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ java.util.List getImplementsOrBuilderList(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ com.daml.daml_lf_dev.DamlLf1.DefTemplate.ImplementsOrBuilder getImplementsOrBuilder( int index); com.daml.daml_lf_dev.DamlLf1.DefTemplate.TyconCase getTyconCase(); 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(); } 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(); 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(); } 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 bitField0_; private int keyExprCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
       * 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 maintainers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : maintainers_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (keyExprCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf1.KeyExpr) keyExpr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMaintainers()); } if (keyExprCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf1.Expr) keyExpr_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000002) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); getMaintainersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } if (keyBuilder_ != null) { keyBuilder_.clear(); } if (complexKeyBuilder_ != null) { complexKeyBuilder_.clear(); } maintainers_ = null; if (maintainersBuilder_ != null) { maintainersBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maintainers_ = maintainersBuilder_ == null ? maintainers_ : maintainersBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey result) { result.keyExprCase_ = keyExprCase_; result.keyExpr_ = this.keyExpr_; if (keyExprCase_ == 2 && keyBuilder_ != null) { result.keyExpr_ = keyBuilder_.build(); } if (keyExprCase_ == 4 && complexKeyBuilder_ != null) { result.keyExpr_ = complexKeyBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); keyExprCase_ = 2; break; } // case 18 case 26: { input.readMessage( getMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getComplexKeyFieldBuilder().getBuilder(), extensionRegistry); keyExprCase_ = 4; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 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_; /** * .daml_lf_1.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; 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); } else { 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); } else { 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 ((bitField0_ & 0x00000008) != 0); } /** *
         * 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; } else { maintainersBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { maintainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && maintainers_ != null && maintainers_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getMaintainersBuilder().mergeFrom(value); } else { maintainers_ = value; } } else { maintainersBuilder_.mergeFrom(value); } if (maintainers_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_1.Expr maintainers = 3; */ public Builder clearMaintainers() { bitField0_ = (bitField0_ & ~0x00000008); maintainers_ = null; if (maintainersBuilder_ != null) { maintainersBuilder_.dispose(); maintainersBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 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(); /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getBody(); /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder getBodyOrBuilder(); /** * .daml_lf_1.Location location = 3; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 3; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 3; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); } /** *
     * An interface instance defined in this template.
     * *Available in versions >= 1.15*
     * 
* * 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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Implements(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 interface_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : interface_; } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody body_; /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } public static final int LOCATION_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Location location = 3; * @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 = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBody()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterface()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLocation()); } size += getUnknownFields().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 (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().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; } /** *
       * An interface instance defined in this template.
       * *Available in versions >= 1.15*
       * 
* * 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) { getInterfaceFieldBuilder(); getBodyFieldBuilder(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); 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_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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.interface_ = interfaceBuilder_ == null ? interface_ : interfaceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 (other.hasBody()) { mergeBody(other.getBody()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; 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 com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder> bodyBuilder_; /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } 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 = 3; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Location location = 3; * @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 = 3; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Location location = 3; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Location location = 3; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Location location = 3; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000004); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 3; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 3; */ 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 = 3; */ 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.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 bitField0_; private int tyconCase_ = 0; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 precond_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : precond_; } 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * 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 signatories_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : signatories_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
     * 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 agreement_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : agreement_; } public static final int CHOICES_FIELD_NUMBER = 7; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000008) != 0); } /** *
     * 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 observers_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : observers_; } 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 ((bitField0_ & 0x00000010) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 ((bitField0_ & 0x00000020) != 0); } /** *
     * 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 key_ == null ? com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.getDefaultInstance() : key_; } public static final int IMPLEMENTS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List implements_; /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public java.util.List getImplementsList() { return implements_; } /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public java.util.List getImplementsOrBuilderList() { return implements_; } /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ @java.lang.Override public int getImplementsCount() { return implements_.size(); } /** *
     * Interface instances defined in this template.
     * 
* * 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); } /** *
     * Interface instances defined in this template.
     * 
* * 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPrecond()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getSignatories()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getAgreement()); } for (int i = 0; i < choices_.size(); i++) { output.writeMessage(7, choices_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getObservers()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getLocation()); } if (((bitField0_ & 0x00000020) != 0)) { 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)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPrecond()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSignatories()); } if (((bitField0_ & 0x00000004) != 0)) { 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 (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getObservers()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getLocation()); } if (((bitField0_ & 0x00000020) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getPrecondFieldBuilder(); getSignatoriesFieldBuilder(); getAgreementFieldBuilder(); getChoicesFieldBuilder(); getObserversFieldBuilder(); getLocationFieldBuilder(); getKeyFieldBuilder(); getImplementsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tyconDnameBuilder_ != null) { tyconDnameBuilder_.clear(); } precond_ = null; if (precondBuilder_ != null) { precondBuilder_.dispose(); precondBuilder_ = null; } signatories_ = null; if (signatoriesBuilder_ != null) { signatoriesBuilder_.dispose(); signatoriesBuilder_ = null; } agreement_ = null; if (agreementBuilder_ != null) { agreementBuilder_.dispose(); agreementBuilder_ = null; } if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); } else { choices_ = null; choicesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); observers_ = null; if (observersBuilder_ != null) { observersBuilder_.dispose(); observersBuilder_ = null; } location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } if (implementsBuilder_ == null) { implements_ = java.util.Collections.emptyList(); } else { implements_ = null; implementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.DefTemplate result) { if (choicesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { choices_ = java.util.Collections.unmodifiableList(choices_); bitField0_ = (bitField0_ & ~0x00000080); } result.choices_ = choices_; } else { result.choices_ = choicesBuilder_.build(); } if (implementsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { implements_ = java.util.Collections.unmodifiableList(implements_); bitField0_ = (bitField0_ & ~0x00000800); } result.implements_ = implements_; } else { result.implements_ = implementsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefTemplate result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.precond_ = precondBuilder_ == null ? precond_ : precondBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.signatories_ = signatoriesBuilder_ == null ? signatories_ : signatoriesBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.agreement_ = agreementBuilder_ == null ? agreement_ : agreementBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000100) != 0)) { result.observers_ = observersBuilder_ == null ? observers_ : observersBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.DefTemplate result) { result.tyconCase_ = tyconCase_; result.tycon_ = this.tycon_; if (tyconCase_ == 1 && tyconDnameBuilder_ != null) { result.tycon_ = tyconDnameBuilder_.build(); } result.paramCase_ = paramCase_; result.param_ = this.param_; } @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_ & ~0x00000080); } else { ensureChoicesIsMutable(); choices_.addAll(other.choices_); } onChanged(); } } else { if (!other.choices_.isEmpty()) { if (choicesBuilder_.isEmpty()) { choicesBuilder_.dispose(); choicesBuilder_ = null; choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00000080); 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_ & ~0x00000800); } else { ensureImplementsIsMutable(); implements_.addAll(other.implements_); } onChanged(); } } else { if (!other.implements_.isEmpty()) { if (implementsBuilder_.isEmpty()) { implementsBuilder_.dispose(); implementsBuilder_ = null; implements_ = other.implements_; bitField0_ = (bitField0_ & ~0x00000800); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTyconDnameFieldBuilder().getBuilder(), extensionRegistry); tyconCase_ = 1; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); paramCase_ = 2; param_ = s; break; } // case 18 case 34: { input.readMessage( getPrecondFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getSignatoriesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( getAgreementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 50 case 58: { com.daml.daml_lf_dev.DamlLf1.TemplateChoice m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.parser(), extensionRegistry); if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(m); } else { choicesBuilder_.addMessage(m); } break; } // case 58 case 66: { input.readMessage( getObserversFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 66 case 74: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 74 case 82: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 82 case 88: { param_ = input.readInt32(); paramCase_ = 11; break; } // case 88 case 96: { tycon_ = input.readInt32(); tyconCase_ = 12; break; } // case 96 case 106: { com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefTemplate.Implements.parser(), extensionRegistry); if (implementsBuilder_ == null) { ensureImplementsIsMutable(); implements_.add(m); } else { implementsBuilder_.addMessage(m); } break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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); } else { 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 ((bitField0_ & 0x00000010) != 0); } /** *
       * 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; } else { precondBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { precondBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && precond_ != null && precond_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getPrecondBuilder().mergeFrom(value); } else { precond_ = value; } } else { precondBuilder_.mergeFrom(value); } if (precond_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); precond_ = null; if (precondBuilder_ != null) { precondBuilder_.dispose(); precondBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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 ((bitField0_ & 0x00000020) != 0); } /** *
       * 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; } else { signatoriesBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); 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(); } else { signatoriesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); 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 (((bitField0_ & 0x00000020) != 0) && signatories_ != null && signatories_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getSignatoriesBuilder().mergeFrom(value); } else { signatories_ = value; } } else { signatoriesBuilder_.mergeFrom(value); } if (signatories_ != null) { bitField0_ |= 0x00000020; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000020); signatories_ = null; if (signatoriesBuilder_ != null) { signatoriesBuilder_.dispose(); signatoriesBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000020; 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 ((bitField0_ & 0x00000040) != 0); } /** *
       * 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; } else { agreementBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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(); } else { agreementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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 (((bitField0_ & 0x00000040) != 0) && agreement_ != null && agreement_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getAgreementBuilder().mergeFrom(value); } else { agreement_ = value; } } else { agreementBuilder_.mergeFrom(value); } if (agreement_ != null) { bitField0_ |= 0x00000040; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000040); agreement_ = null; if (agreementBuilder_ != null) { agreementBuilder_.dispose(); agreementBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000040; 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_ & 0x00000080) != 0)) { choices_ = new java.util.ArrayList(choices_); bitField0_ |= 0x00000080; } } 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_ & ~0x00000080); 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_ & 0x00000080) != 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 ((bitField0_ & 0x00000100) != 0); } /** *
       * 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; } else { observersBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); 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(); } else { observersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); 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 (((bitField0_ & 0x00000100) != 0) && observers_ != null && observers_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getObserversBuilder().mergeFrom(value); } else { observers_ = value; } } else { observersBuilder_.mergeFrom(value); } if (observers_ != null) { bitField0_ |= 0x00000100; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000100); observers_ = null; if (observersBuilder_ != null) { observersBuilder_.dispose(); observersBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000100; 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 ((bitField0_ & 0x00000200) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * .daml_lf_1.Location location = 9; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * .daml_lf_1.Location location = 9; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000200); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 9; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000200; 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 ((bitField0_ & 0x00000400) != 0); } /** *
       * 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; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); 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(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); 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 (((bitField0_ & 0x00000400) != 0) && key_ != null && key_ != com.daml.daml_lf_dev.DamlLf1.DefTemplate.DefKey.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_1.DefTemplate.DefKey key = 10; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000400); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000400; 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_ & 0x00000800) != 0)) { implements_ = new java.util.ArrayList(implements_); bitField0_ |= 0x00000800; } } 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_; /** *
       * Interface instances defined in this template.
       * 
* * 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(); } } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public int getImplementsCount() { if (implementsBuilder_ == null) { return implements_.size(); } else { return implementsBuilder_.getCount(); } } /** *
       * Interface instances defined in this template.
       * 
* * 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); } } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_1.DefTemplate.Implements implements = 13; */ public Builder clearImplements() { if (implementsBuilder_ == null) { implements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { implementsBuilder_.clear(); } return this; } /** *
       * Interface instances defined in this template.
       * 
* * 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; } /** *
       * Interface instances defined in this template.
       * 
* * 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); } /** *
       * Interface instances defined in this template.
       * 
* * 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); } } /** *
       * Interface instances defined in this template.
       * 
* * 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_); } } /** *
       * Interface instances defined in this template.
       * 
* * 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()); } /** *
       * Interface instances defined in this template.
       * 
* * 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()); } /** *
       * Interface instances defined in this template.
       * 
* * 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_ & 0x00000800) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.15*
   * 
* * 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(); } 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); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } public static final int METHOD_INTERNED_NAME_FIELD_NUMBER = 2; private int methodInternedName_ = 0; /** * 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLocation()); } if (methodInternedName_ != 0) { output.writeInt32(2, methodInternedName_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getType()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } if (methodInternedName_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, methodInternedName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getType()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.15*
     * 
* * 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) { getLocationFieldBuilder(); getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } methodInternedName_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.InterfaceMethod result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.methodInternedName_ = methodInternedName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { methodInternedName_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 method_interned_name = 2; * @return This builder for chaining. */ public Builder clearMethodInternedName() { bitField0_ = (bitField0_ & ~0x00000002); 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Type type = 3; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Type type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.InterfaceMethod methods = 3; */ java.util.List getMethodsList(); /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getMethods(int index); /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ int getMethodsCount(); /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ java.util.List getMethodsOrBuilderList(); /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ com.daml.daml_lf_dev.DamlLf1.InterfaceMethodOrBuilder getMethodsOrBuilder( int index); /** *
     * Binder for interface value ("this") in precond and fixed choices.
     * 
* * int32 param_interned_str = 4; * @return The paramInternedStr. */ int getParamInternedStr(); /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ java.util.List getChoicesList(); /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ com.daml.daml_lf_dev.DamlLf1.TemplateChoice getChoices(int index); /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ int getChoicesCount(); /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ java.util.List getChoicesOrBuilderList(); /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index); /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ java.util.List getCoImplementsList(); /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements getCoImplements(int index); /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ int getCoImplementsCount(); /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ java.util.List getCoImplementsOrBuilderList(); /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder getCoImplementsOrBuilder( int index); /** *
     * View type for this interface
     * 
* * .daml_lf_1.Type view = 8; * @return Whether the view field is set. */ boolean hasView(); /** *
     * View type for this interface
     * 
* * .daml_lf_1.Type view = 8; * @return The view. */ com.daml.daml_lf_dev.DamlLf1.Type getView(); /** *
     * View type for this interface
     * 
* * .daml_lf_1.Type view = 8; */ com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getViewOrBuilder(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ java.util.List getRequiresList(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ com.daml.daml_lf_dev.DamlLf1.TypeConName getRequires(int index); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ int getRequiresCount(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ java.util.List getRequiresOrBuilderList(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiresOrBuilder( int index); } /** *
   * Interface definition.
   * *Available in versions >= 1.15*
   * 
* * 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() { methods_ = java.util.Collections.emptyList(); choices_ = java.util.Collections.emptyList(); coImplements_ = java.util.Collections.emptyList(); requires_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DefInterface(); } 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 interface CoImplementsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.DefInterface.CoImplements) 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.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getBody(); /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder getBodyOrBuilder(); /** * .daml_lf_1.Location location = 3; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_1.Location location = 3; * @return The location. */ com.daml.daml_lf_dev.DamlLf1.Location getLocation(); /** * .daml_lf_1.Location location = 3; */ com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder(); } /** *
     * An interface instance defined in this interface.
     * 
* * Protobuf type {@code daml_lf_1.DefInterface.CoImplements} */ public static final class CoImplements extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.DefInterface.CoImplements) CoImplementsOrBuilder { private static final long serialVersionUID = 0L; // Use CoImplements.newBuilder() to construct. private CoImplements(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CoImplements() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CoImplements(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_CoImplements_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_CoImplements_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.class, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder.class); } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 template_ == null ? com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance() : template_; } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody body_; /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } public static final int LOCATION_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.Location location_; /** * .daml_lf_1.Location location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Location location = 3; * @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 = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBody()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBody()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLocation()); } size += getUnknownFields().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.CoImplements)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements other = (com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements 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.CoImplements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements 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.CoImplements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements 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.CoImplements 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.CoImplements 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.CoImplements 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.CoImplements 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.CoImplements 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.CoImplements 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.CoImplements 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; } /** *
       * An interface instance defined in this interface.
       * 
* * Protobuf type {@code daml_lf_1.DefInterface.CoImplements} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.DefInterface.CoImplements) com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_CoImplements_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_DefInterface_CoImplements_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.class, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTemplateFieldBuilder(); getBodyFieldBuilder(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); 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_DefInterface_CoImplements_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements build() { com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements buildPartial() { com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements result = new com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.template_ = templateBuilder_ == null ? template_ : templateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.CoImplements) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements other) { if (other == com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } if (other.hasBody()) { mergeBody(other.getBody()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf1.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; 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.InterfaceInstanceBody body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder> bodyBuilder_; /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_1.InterfaceInstanceBody body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.getDefaultInstance() : body_; } } /** * .daml_lf_1.InterfaceInstanceBody body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf1.InterfaceInstanceBodyOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } 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 = 3; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_1.Location location = 3; * @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 = 3; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Location location = 3; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Location location = 3; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Location location = 3; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000004); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 3; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_1.Location location = 3; */ 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 = 3; */ 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.DefInterface.CoImplements) } // @@protoc_insertion_point(class_scope:daml_lf_1.DefInterface.CoImplements) private static final com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements(); } public static com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CoImplements parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.CoImplements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } public static final int TYCON_INTERNED_DNAME_FIELD_NUMBER = 2; private int tyconInternedDname_ = 0; /** * int32 tycon_interned_dname = 2; * @return The tyconInternedDname. */ @java.lang.Override public int getTyconInternedDname() { return tyconInternedDname_; } public static final int METHODS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List methods_; /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ @java.lang.Override public java.util.List getMethodsOrBuilderList() { return methods_; } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod getMethods(int index) { return methods_.get(index); } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ @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 = 4; private int paramInternedStr_ = 0; /** *
     * Binder for interface value ("this") in precond and fixed choices.
     * 
* * int32 param_interned_str = 4; * @return The paramInternedStr. */ @java.lang.Override public int getParamInternedStr() { return paramInternedStr_; } public static final int CHOICES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List choices_; /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ @java.lang.Override public java.util.List getChoicesList() { return choices_; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ @java.lang.Override public java.util.List getChoicesOrBuilderList() { return choices_; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ @java.lang.Override public int getChoicesCount() { return choices_.size(); } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoice getChoices(int index) { return choices_.get(index); } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { return choices_.get(index); } public static final int COIMPLEMENTS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List coImplements_; /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ @java.lang.Override public java.util.List getCoImplementsList() { return coImplements_; } /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ @java.lang.Override public java.util.List getCoImplementsOrBuilderList() { return coImplements_; } /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ @java.lang.Override public int getCoImplementsCount() { return coImplements_.size(); } /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements getCoImplements(int index) { return coImplements_.get(index); } /** *
     * Interface instances defined in this interface.
     * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder getCoImplementsOrBuilder( int index) { return coImplements_.get(index); } public static final int VIEW_FIELD_NUMBER = 8; private com.daml.daml_lf_dev.DamlLf1.Type view_; /** *
     * View type for this interface
     * 
* * .daml_lf_1.Type view = 8; * @return Whether the view field is set. */ @java.lang.Override public boolean hasView() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * View type for this interface
     * 
* * .daml_lf_1.Type view = 8; * @return The view. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.Type getView() { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : view_; } /** *
     * View type for this interface
     * 
* * .daml_lf_1.Type view = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getViewOrBuilder() { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : view_; } public static final int REQUIRES_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List requires_; /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ @java.lang.Override public java.util.List getRequiresList() { return requires_; } /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ @java.lang.Override public java.util.List getRequiresOrBuilderList() { return requires_; } /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ @java.lang.Override public int getRequiresCount() { return requires_.size(); } /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequires(int index) { return requires_.get(index); } /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiresOrBuilder( int index) { return requires_.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLocation()); } if (tyconInternedDname_ != 0) { output.writeInt32(2, tyconInternedDname_); } for (int i = 0; i < methods_.size(); i++) { output.writeMessage(3, methods_.get(i)); } if (paramInternedStr_ != 0) { output.writeInt32(4, paramInternedStr_); } for (int i = 0; i < choices_.size(); i++) { output.writeMessage(5, choices_.get(i)); } for (int i = 0; i < coImplements_.size(); i++) { output.writeMessage(6, coImplements_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getView()); } for (int i = 0; i < requires_.size(); i++) { output.writeMessage(9, requires_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } if (tyconInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, tyconInternedDname_); } for (int i = 0; i < methods_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, methods_.get(i)); } if (paramInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, paramInternedStr_); } for (int i = 0; i < choices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, choices_.get(i)); } for (int i = 0; i < coImplements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, coImplements_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getView()); } for (int i = 0; i < requires_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, requires_.get(i)); } size += getUnknownFields().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 (!getMethodsList() .equals(other.getMethodsList())) return false; if (getParamInternedStr() != other.getParamInternedStr()) return false; if (!getChoicesList() .equals(other.getChoicesList())) return false; if (!getCoImplementsList() .equals(other.getCoImplementsList())) return false; if (hasView() != other.hasView()) return false; if (hasView()) { if (!getView() .equals(other.getView())) return false; } if (!getRequiresList() .equals(other.getRequiresList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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 (getChoicesCount() > 0) { hash = (37 * hash) + CHOICES_FIELD_NUMBER; hash = (53 * hash) + getChoicesList().hashCode(); } if (getCoImplementsCount() > 0) { hash = (37 * hash) + COIMPLEMENTS_FIELD_NUMBER; hash = (53 * hash) + getCoImplementsList().hashCode(); } if (hasView()) { hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + getView().hashCode(); } if (getRequiresCount() > 0) { hash = (37 * hash) + REQUIRES_FIELD_NUMBER; hash = (53 * hash) + getRequiresList().hashCode(); } hash = (29 * hash) + getUnknownFields().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.15*
     * 
* * 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) { getLocationFieldBuilder(); getMethodsFieldBuilder(); getChoicesFieldBuilder(); getCoImplementsFieldBuilder(); getViewFieldBuilder(); getRequiresFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } tyconInternedDname_ = 0; if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); } else { methods_ = null; methodsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); paramInternedStr_ = 0; if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); } else { choices_ = null; choicesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (coImplementsBuilder_ == null) { coImplements_ = java.util.Collections.emptyList(); } else { coImplements_ = null; coImplementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = null; } if (requiresBuilder_ == null) { requires_ = java.util.Collections.emptyList(); } else { requires_ = null; requiresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.DefInterface result) { if (methodsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000004); } result.methods_ = methods_; } else { result.methods_ = methodsBuilder_.build(); } if (choicesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { choices_ = java.util.Collections.unmodifiableList(choices_); bitField0_ = (bitField0_ & ~0x00000010); } result.choices_ = choices_; } else { result.choices_ = choicesBuilder_.build(); } if (coImplementsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { coImplements_ = java.util.Collections.unmodifiableList(coImplements_); bitField0_ = (bitField0_ & ~0x00000020); } result.coImplements_ = coImplements_; } else { result.coImplements_ = coImplementsBuilder_.build(); } if (requiresBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { requires_ = java.util.Collections.unmodifiableList(requires_); bitField0_ = (bitField0_ & ~0x00000080); } result.requires_ = requires_; } else { result.requires_ = requiresBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefInterface result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tyconInternedDname_ = tyconInternedDname_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.paramInternedStr_ = paramInternedStr_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 (methodsBuilder_ == null) { if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } } else { if (!other.methods_.isEmpty()) { if (methodsBuilder_.isEmpty()) { methodsBuilder_.dispose(); methodsBuilder_ = null; methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000004); methodsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMethodsFieldBuilder() : null; } else { methodsBuilder_.addAllMessages(other.methods_); } } } if (other.getParamInternedStr() != 0) { setParamInternedStr(other.getParamInternedStr()); } if (choicesBuilder_ == null) { if (!other.choices_.isEmpty()) { if (choices_.isEmpty()) { choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureChoicesIsMutable(); choices_.addAll(other.choices_); } onChanged(); } } else { if (!other.choices_.isEmpty()) { if (choicesBuilder_.isEmpty()) { choicesBuilder_.dispose(); choicesBuilder_ = null; choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00000010); choicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChoicesFieldBuilder() : null; } else { choicesBuilder_.addAllMessages(other.choices_); } } } if (coImplementsBuilder_ == null) { if (!other.coImplements_.isEmpty()) { if (coImplements_.isEmpty()) { coImplements_ = other.coImplements_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureCoImplementsIsMutable(); coImplements_.addAll(other.coImplements_); } onChanged(); } } else { if (!other.coImplements_.isEmpty()) { if (coImplementsBuilder_.isEmpty()) { coImplementsBuilder_.dispose(); coImplementsBuilder_ = null; coImplements_ = other.coImplements_; bitField0_ = (bitField0_ & ~0x00000020); coImplementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCoImplementsFieldBuilder() : null; } else { coImplementsBuilder_.addAllMessages(other.coImplements_); } } } if (other.hasView()) { mergeView(other.getView()); } if (requiresBuilder_ == null) { if (!other.requires_.isEmpty()) { if (requires_.isEmpty()) { requires_ = other.requires_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureRequiresIsMutable(); requires_.addAll(other.requires_); } onChanged(); } } else { if (!other.requires_.isEmpty()) { if (requiresBuilder_.isEmpty()) { requiresBuilder_.dispose(); requiresBuilder_ = null; requires_ = other.requires_; bitField0_ = (bitField0_ & ~0x00000080); requiresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequiresFieldBuilder() : null; } else { requiresBuilder_.addAllMessages(other.requires_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { tyconInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { com.daml.daml_lf_dev.DamlLf1.InterfaceMethod m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.parser(), extensionRegistry); if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(m); } else { methodsBuilder_.addMessage(m); } break; } // case 26 case 32: { paramInternedStr_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.daml.daml_lf_dev.DamlLf1.TemplateChoice m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.parser(), extensionRegistry); if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(m); } else { choicesBuilder_.addMessage(m); } break; } // case 42 case 50: { com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.parser(), extensionRegistry); if (coImplementsBuilder_ == null) { ensureCoImplementsIsMutable(); coImplements_.add(m); } else { coImplementsBuilder_.addMessage(m); } break; } // case 50 case 66: { input.readMessage( getViewFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 66 case 74: { com.daml.daml_lf_dev.DamlLf1.TypeConName m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TypeConName.parser(), extensionRegistry); if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.add(m); } else { requiresBuilder_.addMessage(m); } break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_1.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 tycon_interned_dname = 2; * @return This builder for chaining. */ public Builder clearTyconInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); tyconInternedDname_ = 0; onChanged(); return this; } private java.util.List methods_ = java.util.Collections.emptyList(); private void ensureMethodsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { methods_ = new java.util.ArrayList(methods_); bitField0_ |= 0x00000004; } } 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 = 3; */ public java.util.List getMethodsList() { if (methodsBuilder_ == null) { return java.util.Collections.unmodifiableList(methods_); } else { return methodsBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ public int getMethodsCount() { if (methodsBuilder_ == null) { return methods_.size(); } else { return methodsBuilder_.getCount(); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearMethods() { if (methodsBuilder_ == null) { methods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { methodsBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ 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 = 3; */ public com.daml.daml_lf_dev.DamlLf1.InterfaceMethod.Builder getMethodsBuilder( int index) { return getMethodsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ 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 = 3; */ public java.util.List getMethodsOrBuilderList() { if (methodsBuilder_ != null) { return methodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(methods_); } } /** * repeated .daml_lf_1.InterfaceMethod methods = 3; */ 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 = 3; */ 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 = 3; */ 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); methods_ = null; } return methodsBuilder_; } private int paramInternedStr_ ; /** *
       * Binder for interface value ("this") in precond and fixed choices.
       * 
* * int32 param_interned_str = 4; * @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 = 4; * @param value The paramInternedStr to set. * @return This builder for chaining. */ public Builder setParamInternedStr(int value) { paramInternedStr_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Binder for interface value ("this") in precond and fixed choices.
       * 
* * int32 param_interned_str = 4; * @return This builder for chaining. */ public Builder clearParamInternedStr() { bitField0_ = (bitField0_ & ~0x00000008); paramInternedStr_ = 0; onChanged(); return this; } private java.util.List choices_ = java.util.Collections.emptyList(); private void ensureChoicesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { choices_ = new java.util.ArrayList(choices_); bitField0_ |= 0x00000010; } } 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_; /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public java.util.List getChoicesList() { if (choicesBuilder_ == null) { return java.util.Collections.unmodifiableList(choices_); } else { return choicesBuilder_.getMessageList(); } } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public int getChoicesCount() { if (choicesBuilder_ == null) { return choices_.size(); } else { return choicesBuilder_.getCount(); } } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice getChoices(int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessage(index); } } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public Builder clearChoices() { if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { choicesBuilder_.clear(); } return this; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public Builder removeChoices(int index) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.remove(index); onChanged(); } else { choicesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder getChoicesBuilder( int index) { return getChoicesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public java.util.List getChoicesOrBuilderList() { if (choicesBuilder_ != null) { return choicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(choices_); } } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder addChoicesBuilder() { return getChoicesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()); } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf1.TemplateChoice.Builder addChoicesBuilder( int index) { return getChoicesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TemplateChoice.getDefaultInstance()); } /** * repeated .daml_lf_1.TemplateChoice choices = 5; */ 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); choices_ = null; } return choicesBuilder_; } private java.util.List coImplements_ = java.util.Collections.emptyList(); private void ensureCoImplementsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { coImplements_ = new java.util.ArrayList(coImplements_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder> coImplementsBuilder_; /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public java.util.List getCoImplementsList() { if (coImplementsBuilder_ == null) { return java.util.Collections.unmodifiableList(coImplements_); } else { return coImplementsBuilder_.getMessageList(); } } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public int getCoImplementsCount() { if (coImplementsBuilder_ == null) { return coImplements_.size(); } else { return coImplementsBuilder_.getCount(); } } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements getCoImplements(int index) { if (coImplementsBuilder_ == null) { return coImplements_.get(index); } else { return coImplementsBuilder_.getMessage(index); } } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder setCoImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements value) { if (coImplementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoImplementsIsMutable(); coImplements_.set(index, value); onChanged(); } else { coImplementsBuilder_.setMessage(index, value); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder setCoImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder builderForValue) { if (coImplementsBuilder_ == null) { ensureCoImplementsIsMutable(); coImplements_.set(index, builderForValue.build()); onChanged(); } else { coImplementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder addCoImplements(com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements value) { if (coImplementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoImplementsIsMutable(); coImplements_.add(value); onChanged(); } else { coImplementsBuilder_.addMessage(value); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder addCoImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements value) { if (coImplementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoImplementsIsMutable(); coImplements_.add(index, value); onChanged(); } else { coImplementsBuilder_.addMessage(index, value); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder addCoImplements( com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder builderForValue) { if (coImplementsBuilder_ == null) { ensureCoImplementsIsMutable(); coImplements_.add(builderForValue.build()); onChanged(); } else { coImplementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder addCoImplements( int index, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder builderForValue) { if (coImplementsBuilder_ == null) { ensureCoImplementsIsMutable(); coImplements_.add(index, builderForValue.build()); onChanged(); } else { coImplementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder addAllCoImplements( java.lang.Iterable values) { if (coImplementsBuilder_ == null) { ensureCoImplementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, coImplements_); onChanged(); } else { coImplementsBuilder_.addAllMessages(values); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder clearCoImplements() { if (coImplementsBuilder_ == null) { coImplements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { coImplementsBuilder_.clear(); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public Builder removeCoImplements(int index) { if (coImplementsBuilder_ == null) { ensureCoImplementsIsMutable(); coImplements_.remove(index); onChanged(); } else { coImplementsBuilder_.remove(index); } return this; } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder getCoImplementsBuilder( int index) { return getCoImplementsFieldBuilder().getBuilder(index); } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder getCoImplementsOrBuilder( int index) { if (coImplementsBuilder_ == null) { return coImplements_.get(index); } else { return coImplementsBuilder_.getMessageOrBuilder(index); } } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public java.util.List getCoImplementsOrBuilderList() { if (coImplementsBuilder_ != null) { return coImplementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(coImplements_); } } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder addCoImplementsBuilder() { return getCoImplementsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.getDefaultInstance()); } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder addCoImplementsBuilder( int index) { return getCoImplementsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.getDefaultInstance()); } /** *
       * Interface instances defined in this interface.
       * 
* * repeated .daml_lf_1.DefInterface.CoImplements coImplements = 6; */ public java.util.List getCoImplementsBuilderList() { return getCoImplementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder> getCoImplementsFieldBuilder() { if (coImplementsBuilder_ == null) { coImplementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplements.Builder, com.daml.daml_lf_dev.DamlLf1.DefInterface.CoImplementsOrBuilder>( coImplements_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); coImplements_ = null; } return coImplementsBuilder_; } private com.daml.daml_lf_dev.DamlLf1.Type view_; 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> viewBuilder_; /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; * @return The view. */ public com.daml.daml_lf_dev.DamlLf1.Type getView() { if (viewBuilder_ == null) { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : view_; } else { return viewBuilder_.getMessage(); } } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ public Builder setView(com.daml.daml_lf_dev.DamlLf1.Type value) { if (viewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } view_ = value; } else { viewBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ public Builder setView( com.daml.daml_lf_dev.DamlLf1.Type.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { viewBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ public Builder mergeView(com.daml.daml_lf_dev.DamlLf1.Type value) { if (viewBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && view_ != null && view_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; } } else { viewBuilder_.mergeFrom(value); } if (view_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ public Builder clearView() { bitField0_ = (bitField0_ & ~0x00000040); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = null; } onChanged(); return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getViewBuilder() { bitField0_ |= 0x00000040; onChanged(); return getViewFieldBuilder().getBuilder(); } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ public com.daml.daml_lf_dev.DamlLf1.TypeOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { return view_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : view_; } } /** *
       * View type for this interface
       * 
* * .daml_lf_1.Type view = 8; */ 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> getViewFieldBuilder() { if (viewBuilder_ == null) { viewBuilder_ = 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>( getView(), getParentForChildren(), isClean()); view_ = null; } return viewBuilder_; } private java.util.List requires_ = java.util.Collections.emptyList(); private void ensureRequiresIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { requires_ = new java.util.ArrayList(requires_); bitField0_ |= 0x00000080; } } 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_; /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public java.util.List getRequiresList() { if (requiresBuilder_ == null) { return java.util.Collections.unmodifiableList(requires_); } else { return requiresBuilder_.getMessageList(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public int getRequiresCount() { if (requiresBuilder_ == null) { return requires_.size(); } else { return requiresBuilder_.getCount(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName getRequires(int index) { if (requiresBuilder_ == null) { return requires_.get(index); } else { return requiresBuilder_.getMessage(index); } } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public Builder clearRequires() { if (requiresBuilder_ == null) { requires_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { requiresBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public Builder removeRequires(int index) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.remove(index); onChanged(); } else { requiresBuilder_.remove(index); } return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder getRequiresBuilder( int index) { return getRequiresFieldBuilder().getBuilder(index); } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public com.daml.daml_lf_dev.DamlLf1.TypeConNameOrBuilder getRequiresOrBuilder( int index) { if (requiresBuilder_ == null) { return requires_.get(index); } else { return requiresBuilder_.getMessageOrBuilder(index); } } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public java.util.List getRequiresOrBuilderList() { if (requiresBuilder_ != null) { return requiresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requires_); } } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder addRequiresBuilder() { return getRequiresFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()); } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ public com.daml.daml_lf_dev.DamlLf1.TypeConName.Builder addRequiresBuilder( int index) { return getRequiresFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf1.TypeConName.getDefaultInstance()); } /** *
       * *Available in versions >= 1.15*
       * 
* * repeated .daml_lf_1.TypeConName requires = 9; */ 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_ & 0x00000080) != 0), getParentForChildren(), isClean()); requires_ = null; } return requiresBuilder_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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); } private int bitField0_; public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 1; private int nameInternedDname_ = 0; /** *
     * *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 ((bitField0_ & 0x00000001) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 message_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : message_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getLocation()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMessage()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocation()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMessage()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getLocationFieldBuilder(); getMessageFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nameInternedDname_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } message_ = null; if (messageBuilder_ != null) { messageBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefException result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nameInternedDname_ = nameInternedDname_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *Must be a valid interned dotted name*
       * 
* * int32 name_interned_dname = 1; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000001); 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Location location = 2; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Location location = 2; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000002); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 2; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { messageBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { messageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.Expr message = 3; */ public Builder mergeMessage(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (messageBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && message_ != null && message_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; } } else { messageBuilder_.mergeFrom(value); } if (message_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.Expr message = 3; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = null; if (messageBuilder_ != null) { messageBuilder_.dispose(); messageBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr message = 3; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getMessageBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); com.daml.daml_lf_dev.DamlLf1.DefDataType.NameCase getNameCase(); 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(); } 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(); } 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; @SuppressWarnings("serial") 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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000001); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefDataType.Fields result) { int from_bitField0_ = bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.FieldWithType m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.FieldWithType.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.emptyList(); constructorsInternedStr_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumConstructors(); } 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList constructorsStr_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
       * *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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList constructorsInternedStr_ = emptyIntList(); /** *
       * *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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; constructorsStr_ = com.google.protobuf.LazyStringArrayList.emptyList(); constructorsInternedStr_ = emptyIntList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefDataType.EnumConstructors result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { constructorsStr_.makeImmutable(); result.constructorsStr_ = constructorsStr_; } if (((from_bitField0_ & 0x00000002) != 0)) { constructorsInternedStr_.makeImmutable(); result.constructorsInternedStr_ = constructorsInternedStr_; } } @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_ |= 0x00000001; } else { ensureConstructorsStrIsMutable(); constructorsStr_.addAll(other.constructorsStr_); } onChanged(); } if (!other.constructorsInternedStr_.isEmpty()) { if (constructorsInternedStr_.isEmpty()) { constructorsInternedStr_ = other.constructorsInternedStr_; constructorsInternedStr_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureConstructorsInternedStrIsMutable(); constructorsInternedStr_.addAll(other.constructorsInternedStr_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureConstructorsStrIsMutable(); constructorsStr_.add(s); break; } // case 10 case 16: { int v = input.readInt32(); ensureConstructorsInternedStrIsMutable(); constructorsInternedStr_.addInt(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureConstructorsInternedStrIsMutable(); while (input.getBytesUntilLimit() > 0) { constructorsInternedStr_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList constructorsStr_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureConstructorsStrIsMutable() { if (!constructorsStr_.isModifiable()) { 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() { constructorsStr_.makeImmutable(); 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); } /** *
         * *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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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_); bitField0_ |= 0x00000001; 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.emptyList(); 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); bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Internal.IntList constructorsInternedStr_ = emptyIntList(); private void ensureConstructorsInternedStrIsMutable() { if (!constructorsInternedStr_.isModifiable()) { constructorsInternedStr_ = makeMutableCopy(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() { constructorsInternedStr_.makeImmutable(); 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); } /** *
         * *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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 bitField0_; private int nameCase_ = 0; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = false; /** *
     * 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 (((bitField0_ & 0x00000001) != 0)) { 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_); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (nameDnameBuilder_ != null) { nameDnameBuilder_.clear(); } if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); } else { params_ = null; paramsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (recordBuilder_ != null) { recordBuilder_.clear(); } if (variantBuilder_ != null) { variantBuilder_.clear(); } if (enumBuilder_ != null) { enumBuilder_.clear(); } if (interfaceBuilder_ != null) { interfaceBuilder_.clear(); } serializable_ = false; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.DefDataType result) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000004); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefDataType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000080) != 0)) { result.serializable_ = serializable_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.DefDataType result) { result.nameCase_ = nameCase_; result.name_ = this.name_; if (nameCase_ == 1 && nameDnameBuilder_ != null) { result.name_ = nameDnameBuilder_.build(); } result.dataConsCase_ = dataConsCase_; result.dataCons_ = this.dataCons_; if (dataConsCase_ == 3 && recordBuilder_ != null) { result.dataCons_ = recordBuilder_.build(); } if (dataConsCase_ == 4 && variantBuilder_ != null) { result.dataCons_ = variantBuilder_.build(); } if (dataConsCase_ == 7 && enumBuilder_ != null) { result.dataCons_ = enumBuilder_.build(); } if (dataConsCase_ == 9 && interfaceBuilder_ != null) { result.dataCons_ = interfaceBuilder_.build(); } } @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_ & ~0x00000004); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000004); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNameDnameFieldBuilder().getBuilder(), extensionRegistry); nameCase_ = 1; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 3; break; } // case 26 case 34: { input.readMessage( getVariantFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 4; break; } // case 34 case 40: { serializable_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 40 case 50: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( getEnumFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 7; break; } // case 58 case 64: { name_ = input.readInt32(); nameCase_ = 8; break; } // case 64 case 74: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 9; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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); } else { 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_ & 0x00000004) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000004; } } 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_ & ~0x00000004); 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_ & 0x00000004) != 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); } else { 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); } else { 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); } else { 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); } 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 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; bitField0_ |= 0x00000080; 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() { bitField0_ = (bitField0_ & ~0x00000080); 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 ((bitField0_ & 0x00000100) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .daml_lf_1.Location location = 6; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * .daml_lf_1.Location location = 6; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000100); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 6; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000100; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); 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(); } 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 bitField0_; private int nameCase_ = 0; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getLocation()); } if (nameCase_ == 8) { output.writeInt32( 8, (int)((java.lang.Integer) name_)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLocation()); } if (nameCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 8, (int)((java.lang.Integer) name_)); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getTypeFieldBuilder(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (nameDnameBuilder_ != null) { nameDnameBuilder_.clear(); } if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); } else { params_ = null; paramsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn result) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000004); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.DefTypeSyn result) { result.nameCase_ = nameCase_; result.name_ = this.name_; if (nameCase_ == 1 && nameDnameBuilder_ != null) { result.name_ = nameDnameBuilder_.build(); } } @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_ & ~0x00000004); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000004); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNameDnameFieldBuilder().getBuilder(), extensionRegistry); nameCase_ = 1; break; } // case 10 case 18: { com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.TypeVarWithKind.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 64: { name_ = input.readInt32(); nameCase_ = 8; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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); } else { 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_ & 0x00000004) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000004; } } 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_ & ~0x00000004); 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_ & 0x00000004) != 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 ((bitField0_ & 0x00000008) != 0); } /** * .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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_1.Type type = 3; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf1.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_1.Type type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .daml_lf_1.Location location = 4; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * .daml_lf_1.Location location = 4; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000010); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 4; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NameWithType(); } 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); } private int bitField0_; public static final int NAME_DNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList nameDname_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
       * *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_ = 0; /** *
       * *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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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 type_ == null ? com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance() : type_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getType()); } if (nameInternedDname_ != 0) { output.writeInt32(3, nameInternedDname_); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getType()); } if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, nameInternedDname_); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nameDname_ = com.google.protobuf.LazyStringArrayList.emptyList(); nameInternedDname_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { nameDname_.makeImmutable(); result.nameDname_ = nameDname_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nameInternedDname_ = nameInternedDname_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ |= 0x00000001; } else { ensureNameDnameIsMutable(); nameDname_.addAll(other.nameDname_); } onChanged(); } if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } if (other.hasType()) { mergeType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureNameDnameIsMutable(); nameDname_.add(s); break; } // case 10 case 18: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 24: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList nameDname_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureNameDnameIsMutable() { if (!nameDname_.isModifiable()) { 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() { nameDname_.makeImmutable(); 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); } /** *
         * *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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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_); bitField0_ |= 0x00000001; 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.emptyList(); 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); bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 3; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); 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 ((bitField0_ & 0x00000004) != 0); } /** *
         * 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; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * Type of the value
         * 
* * .daml_lf_1.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf1.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; } } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } 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 ((bitField0_ & 0x00000002) != 0); } /** * .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 expr_ == null ? com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance() : expr_; } public static final int NO_PARTY_LITERALS_FIELD_NUMBER = 3; private boolean noPartyLiterals_ = false; /** *
     * 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_ = false; /** * 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 ((bitField0_ & 0x00000004) != 0); } /** * .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 location_ == null ? com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance() : location_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNameWithType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExpr()); } if (noPartyLiterals_ != false) { output.writeBool(3, noPartyLiterals_); } if (isTest_ != false) { output.writeBool(4, isTest_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNameWithType()); } if (((bitField0_ & 0x00000002) != 0)) { 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 (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLocation()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getNameWithTypeFieldBuilder(); getExprFieldBuilder(); getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nameWithType_ = null; if (nameWithTypeBuilder_ != null) { nameWithTypeBuilder_.dispose(); nameWithTypeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } noPartyLiterals_ = false; isTest_ = false; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.DefValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.nameWithType_ = nameWithTypeBuilder_ == null ? nameWithType_ : nameWithTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.noPartyLiterals_ = noPartyLiterals_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.isTest_ = isTest_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNameWithTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { noPartyLiterals_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { isTest_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { nameWithTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { nameWithTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && nameWithType_ != null && nameWithType_ != com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.getDefaultInstance()) { getNameWithTypeBuilder().mergeFrom(value); } else { nameWithType_ = value; } } else { nameWithTypeBuilder_.mergeFrom(value); } if (nameWithType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ public Builder clearNameWithType() { bitField0_ = (bitField0_ & ~0x00000001); nameWithType_ = null; if (nameWithTypeBuilder_ != null) { nameWithTypeBuilder_.dispose(); nameWithTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.DefValue.NameWithType name_with_type = 1; */ public com.daml.daml_lf_dev.DamlLf1.DefValue.NameWithType.Builder getNameWithTypeBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** * .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; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf1.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf1.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_1.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf1.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; 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() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool is_test = 4; * @return This builder for chaining. */ public Builder clearIsTest() { bitField0_ = (bitField0_ & ~0x00000008); 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 ((bitField0_ & 0x00000010) != 0); } /** * .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; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .daml_lf_1.Location location = 5; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * .daml_lf_1.Location location = 5; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000010); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.Location location = 5; */ public com.daml.daml_lf_dev.DamlLf1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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_ = false; /** * 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_ = false; /** * 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_ = false; /** * 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.FeatureFlags result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.forbidPartyLiterals_ = forbidPartyLiterals_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dontDivulgeContractIdsInCreateArguments_ = dontDivulgeContractIdsInCreateArguments_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.dontDiscloseNonConsumingChoicesToObservers_ = dontDiscloseNonConsumingChoicesToObservers_; } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { forbidPartyLiterals_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { dontDivulgeContractIdsInCreateArguments_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { dontDiscloseNonConsumingChoicesToObservers_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bool forbidPartyLiterals = 1; * @return This builder for chaining. */ public Builder clearForbidPartyLiterals() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bool dontDivulgeContractIdsInCreateArguments = 2; * @return This builder for chaining. */ public Builder clearDontDivulgeContractIdsInCreateArguments() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bool dontDiscloseNonConsumingChoicesToObservers = 3; * @return This builder for chaining. */ public Builder clearDontDiscloseNonConsumingChoicesToObservers() { bitField0_ = (bitField0_ & ~0x00000004); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ java.util.List getInterfacesList(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ com.daml.daml_lf_dev.DamlLf1.DefInterface getInterfaces(int index); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ int getInterfacesCount(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ java.util.List getInterfacesOrBuilderList(); /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ com.daml.daml_lf_dev.DamlLf1.DefInterfaceOrBuilder getInterfacesOrBuilder( int index); 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(); } 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 bitField0_; private int nameCase_ = 0; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** * .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 flags_ == null ? com.daml.daml_lf_dev.DamlLf1.FeatureFlags.getDefaultInstance() : flags_; } public static final int SYNONYMS_FIELD_NUMBER = 9; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") private java.util.List interfaces_; /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public java.util.List getInterfacesList() { return interfaces_; } /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public java.util.List getInterfacesOrBuilderList() { return interfaces_; } /** *
     * *Available in versions >= 1.15*
     * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ @java.lang.Override public int getInterfacesCount() { return interfaces_.size(); } /** *
     * *Available in versions >= 1.15*
     * 
* * 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.15*
     * 
* * 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 (((bitField0_ & 0x00000001) != 0)) { 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)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getFlagsFieldBuilder(); getSynonymsFieldBuilder(); getDataTypesFieldBuilder(); getValuesFieldBuilder(); getTemplatesFieldBuilder(); getExceptionsFieldBuilder(); getInterfacesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (nameDnameBuilder_ != null) { nameDnameBuilder_.clear(); } flags_ = null; if (flagsBuilder_ != null) { flagsBuilder_.dispose(); flagsBuilder_ = null; } if (synonymsBuilder_ == null) { synonyms_ = java.util.Collections.emptyList(); } else { synonyms_ = null; synonymsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); } else { dataTypes_ = null; dataTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); } else { templates_ = null; templatesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); } else { exceptions_ = null; exceptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); } else { interfaces_ = null; interfacesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Module result) { if (synonymsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { synonyms_ = java.util.Collections.unmodifiableList(synonyms_); bitField0_ = (bitField0_ & ~0x00000008); } result.synonyms_ = synonyms_; } else { result.synonyms_ = synonymsBuilder_.build(); } if (dataTypesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { dataTypes_ = java.util.Collections.unmodifiableList(dataTypes_); bitField0_ = (bitField0_ & ~0x00000010); } result.dataTypes_ = dataTypes_; } else { result.dataTypes_ = dataTypesBuilder_.build(); } if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000020); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } if (templatesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { templates_ = java.util.Collections.unmodifiableList(templates_); bitField0_ = (bitField0_ & ~0x00000040); } result.templates_ = templates_; } else { result.templates_ = templatesBuilder_.build(); } if (exceptionsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { exceptions_ = java.util.Collections.unmodifiableList(exceptions_); bitField0_ = (bitField0_ & ~0x00000080); } result.exceptions_ = exceptions_; } else { result.exceptions_ = exceptionsBuilder_.build(); } if (interfacesBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { interfaces_ = java.util.Collections.unmodifiableList(interfaces_); bitField0_ = (bitField0_ & ~0x00000100); } result.interfaces_ = interfaces_; } else { result.interfaces_ = interfacesBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Module result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.flags_ = flagsBuilder_ == null ? flags_ : flagsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf1.Module result) { result.nameCase_ = nameCase_; result.name_ = this.name_; if (nameCase_ == 1 && nameDnameBuilder_ != null) { result.name_ = nameDnameBuilder_.build(); } } @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_ & ~0x00000008); } else { ensureSynonymsIsMutable(); synonyms_.addAll(other.synonyms_); } onChanged(); } } else { if (!other.synonyms_.isEmpty()) { if (synonymsBuilder_.isEmpty()) { synonymsBuilder_.dispose(); synonymsBuilder_ = null; synonyms_ = other.synonyms_; bitField0_ = (bitField0_ & ~0x00000008); 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_ & ~0x00000010); } else { ensureDataTypesIsMutable(); dataTypes_.addAll(other.dataTypes_); } onChanged(); } } else { if (!other.dataTypes_.isEmpty()) { if (dataTypesBuilder_.isEmpty()) { dataTypesBuilder_.dispose(); dataTypesBuilder_ = null; dataTypes_ = other.dataTypes_; bitField0_ = (bitField0_ & ~0x00000010); 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_ & ~0x00000020); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000020); 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_ & ~0x00000040); } else { ensureTemplatesIsMutable(); templates_.addAll(other.templates_); } onChanged(); } } else { if (!other.templates_.isEmpty()) { if (templatesBuilder_.isEmpty()) { templatesBuilder_.dispose(); templatesBuilder_ = null; templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000040); 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_ & ~0x00000080); } else { ensureExceptionsIsMutable(); exceptions_.addAll(other.exceptions_); } onChanged(); } } else { if (!other.exceptions_.isEmpty()) { if (exceptionsBuilder_.isEmpty()) { exceptionsBuilder_.dispose(); exceptionsBuilder_ = null; exceptions_ = other.exceptions_; bitField0_ = (bitField0_ & ~0x00000080); 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_ & ~0x00000100); } else { ensureInterfacesIsMutable(); interfaces_.addAll(other.interfaces_); } onChanged(); } } else { if (!other.interfaces_.isEmpty()) { if (interfacesBuilder_.isEmpty()) { interfacesBuilder_.dispose(); interfacesBuilder_ = null; interfaces_ = other.interfaces_; bitField0_ = (bitField0_ & ~0x00000100); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNameDnameFieldBuilder().getBuilder(), extensionRegistry); nameCase_ = 1; break; } // case 10 case 34: { input.readMessage( getFlagsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 34 case 42: { com.daml.daml_lf_dev.DamlLf1.DefDataType m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefDataType.parser(), extensionRegistry); if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.add(m); } else { dataTypesBuilder_.addMessage(m); } break; } // case 42 case 50: { com.daml.daml_lf_dev.DamlLf1.DefValue m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefValue.parser(), extensionRegistry); if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(m); } else { valuesBuilder_.addMessage(m); } break; } // case 50 case 58: { com.daml.daml_lf_dev.DamlLf1.DefTemplate m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefTemplate.parser(), extensionRegistry); if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.add(m); } else { templatesBuilder_.addMessage(m); } break; } // case 58 case 64: { name_ = input.readInt32(); nameCase_ = 8; break; } // case 64 case 74: { com.daml.daml_lf_dev.DamlLf1.DefTypeSyn m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefTypeSyn.parser(), extensionRegistry); if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(m); } else { synonymsBuilder_.addMessage(m); } break; } // case 74 case 82: { com.daml.daml_lf_dev.DamlLf1.DefException m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefException.parser(), extensionRegistry); if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(m); } else { exceptionsBuilder_.addMessage(m); } break; } // case 82 case 90: { com.daml.daml_lf_dev.DamlLf1.DefInterface m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.DefInterface.parser(), extensionRegistry); if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(m); } else { interfacesBuilder_.addMessage(m); } break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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); } else { 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 ((bitField0_ & 0x00000004) != 0); } /** * .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; } else { flagsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { flagsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_1.FeatureFlags flags = 4; */ public Builder mergeFlags(com.daml.daml_lf_dev.DamlLf1.FeatureFlags value) { if (flagsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && flags_ != null && flags_ != com.daml.daml_lf_dev.DamlLf1.FeatureFlags.getDefaultInstance()) { getFlagsBuilder().mergeFrom(value); } else { flags_ = value; } } else { flagsBuilder_.mergeFrom(value); } if (flags_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_1.FeatureFlags flags = 4; */ public Builder clearFlags() { bitField0_ = (bitField0_ & ~0x00000004); flags_ = null; if (flagsBuilder_ != null) { flagsBuilder_.dispose(); flagsBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_1.FeatureFlags flags = 4; */ public com.daml.daml_lf_dev.DamlLf1.FeatureFlags.Builder getFlagsBuilder() { bitField0_ |= 0x00000004; 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_ & 0x00000008) != 0)) { synonyms_ = new java.util.ArrayList(synonyms_); bitField0_ |= 0x00000008; } } 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_ & ~0x00000008); 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_ & 0x00000008) != 0), getParentForChildren(), isClean()); synonyms_ = null; } return synonymsBuilder_; } private java.util.List dataTypes_ = java.util.Collections.emptyList(); private void ensureDataTypesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { dataTypes_ = new java.util.ArrayList(dataTypes_); bitField0_ |= 0x00000010; } } 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_ & ~0x00000010); 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); dataTypes_ = null; } return dataTypesBuilder_; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000020; } } 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_ & ~0x00000020); 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_ & 0x00000020) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } private java.util.List templates_ = java.util.Collections.emptyList(); private void ensureTemplatesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { templates_ = new java.util.ArrayList(templates_); bitField0_ |= 0x00000040; } } 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_ & ~0x00000040); 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_ & 0x00000040) != 0), getParentForChildren(), isClean()); templates_ = null; } return templatesBuilder_; } private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { exceptions_ = new java.util.ArrayList(exceptions_); bitField0_ |= 0x00000080; } } 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_ & ~0x00000080); 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_ & 0x00000080) != 0), getParentForChildren(), isClean()); exceptions_ = null; } return exceptionsBuilder_; } private java.util.List interfaces_ = java.util.Collections.emptyList(); private void ensureInterfacesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { interfaces_ = new java.util.ArrayList(interfaces_); bitField0_ |= 0x00000100; } } 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.15*
       * 
* * 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.15*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public int getInterfacesCount() { if (interfacesBuilder_ == null) { return interfaces_.size(); } else { return interfacesBuilder_.getCount(); } } /** *
       * *Available in versions >= 1.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * repeated .daml_lf_1.DefInterface interfaces = 11; */ public Builder clearInterfaces() { if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { interfacesBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 1.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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.15*
       * 
* * 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_ & 0x00000100) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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(); } 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList segmentsInternedStr_ = emptyIntList(); /** *
     * *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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; segmentsInternedStr_ = emptyIntList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.InternedDottedName result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { segmentsInternedStr_.makeImmutable(); result.segmentsInternedStr_ = segmentsInternedStr_; } } @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_; segmentsInternedStr_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureSegmentsInternedStrIsMutable(); segmentsInternedStr_.addAll(other.segmentsInternedStr_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int v = input.readInt32(); ensureSegmentsInternedStrIsMutable(); segmentsInternedStr_.addInt(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureSegmentsInternedStrIsMutable(); while (input.getBytesUntilLimit() > 0) { segmentsInternedStr_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList segmentsInternedStr_ = emptyIntList(); private void ensureSegmentsInternedStrIsMutable() { if (!segmentsInternedStr_.isModifiable()) { segmentsInternedStr_ = makeMutableCopy(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() { segmentsInternedStr_.makeImmutable(); 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); } /** *
       * *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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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_); bitField0_ |= 0x00000001; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 UpgradedPackageIdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_1.UpgradedPackageId) com.google.protobuf.MessageOrBuilder { /** *
     * *Available in versions >= 1.dev*
     * 
* * int32 upgraded_package_id_interned_str = 1; * @return The upgradedPackageIdInternedStr. */ int getUpgradedPackageIdInternedStr(); } /** *
   * *Available in versions >= 1.dev*
   * 
* * Protobuf type {@code daml_lf_1.UpgradedPackageId} */ public static final class UpgradedPackageId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_1.UpgradedPackageId) UpgradedPackageIdOrBuilder { private static final long serialVersionUID = 0L; // Use UpgradedPackageId.newBuilder() to construct. private UpgradedPackageId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpgradedPackageId() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpgradedPackageId(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_UpgradedPackageId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_UpgradedPackageId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.class, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder.class); } public static final int UPGRADED_PACKAGE_ID_INTERNED_STR_FIELD_NUMBER = 1; private int upgradedPackageIdInternedStr_ = 0; /** *
     * *Available in versions >= 1.dev*
     * 
* * int32 upgraded_package_id_interned_str = 1; * @return The upgradedPackageIdInternedStr. */ @java.lang.Override public int getUpgradedPackageIdInternedStr() { return upgradedPackageIdInternedStr_; } 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 (upgradedPackageIdInternedStr_ != 0) { output.writeInt32(1, upgradedPackageIdInternedStr_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (upgradedPackageIdInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, upgradedPackageIdInternedStr_); } size += getUnknownFields().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.UpgradedPackageId)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId other = (com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId) obj; if (getUpgradedPackageIdInternedStr() != other.getUpgradedPackageIdInternedStr()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UPGRADED_PACKAGE_ID_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getUpgradedPackageIdInternedStr(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId 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.UpgradedPackageId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId 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.UpgradedPackageId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId 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.UpgradedPackageId 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.UpgradedPackageId 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.UpgradedPackageId 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.UpgradedPackageId 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.UpgradedPackageId 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.UpgradedPackageId 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.UpgradedPackageId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * *Available in versions >= 1.dev*
     * 
* * Protobuf type {@code daml_lf_1.UpgradedPackageId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_1.UpgradedPackageId) com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_UpgradedPackageId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf1.internal_static_daml_lf_1_UpgradedPackageId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.class, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; upgradedPackageIdInternedStr_ = 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_UpgradedPackageId_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId build() { com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId buildPartial() { com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId result = new com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.upgradedPackageIdInternedStr_ = upgradedPackageIdInternedStr_; } } @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.UpgradedPackageId) { return mergeFrom((com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId other) { if (other == com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance()) return this; if (other.getUpgradedPackageIdInternedStr() != 0) { setUpgradedPackageIdInternedStr(other.getUpgradedPackageIdInternedStr()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { upgradedPackageIdInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int upgradedPackageIdInternedStr_ ; /** *
       * *Available in versions >= 1.dev*
       * 
* * int32 upgraded_package_id_interned_str = 1; * @return The upgradedPackageIdInternedStr. */ @java.lang.Override public int getUpgradedPackageIdInternedStr() { return upgradedPackageIdInternedStr_; } /** *
       * *Available in versions >= 1.dev*
       * 
* * int32 upgraded_package_id_interned_str = 1; * @param value The upgradedPackageIdInternedStr to set. * @return This builder for chaining. */ public Builder setUpgradedPackageIdInternedStr(int value) { upgradedPackageIdInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *Available in versions >= 1.dev*
       * 
* * int32 upgraded_package_id_interned_str = 1; * @return This builder for chaining. */ public Builder clearUpgradedPackageIdInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); upgradedPackageIdInternedStr_ = 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.UpgradedPackageId) } // @@protoc_insertion_point(class_scope:daml_lf_1.UpgradedPackageId) private static final com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId(); } public static com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpgradedPackageId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.UpgradedPackageId 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(); /** *
     * *optional*, *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; * @return Whether the upgradedPackageId field is set. */ boolean hasUpgradedPackageId(); /** *
     * *optional*, *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; * @return The upgradedPackageId. */ com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId getUpgradedPackageId(); /** *
     * *optional*, *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder getUpgradedPackageIdOrBuilder(); } /** * 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(); } 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); } private int bitField0_; public static final int NAME_INTERNED_STR_FIELD_NUMBER = 1; private int nameInternedStr_ = 0; /** *
     * *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_ = 0; /** *
     * *Available in versions >= 1.8*
     * 
* * int32 version_interned_str = 2; * @return The versionInternedStr. */ @java.lang.Override public int getVersionInternedStr() { return versionInternedStr_; } public static final int UPGRADED_PACKAGE_ID_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId upgradedPackageId_; /** *
     * *optional*, *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; * @return Whether the upgradedPackageId field is set. */ @java.lang.Override public boolean hasUpgradedPackageId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * *optional*, *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; * @return The upgradedPackageId. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId getUpgradedPackageId() { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } /** *
     * *optional*, *Available in versions >= 1.dev*
     * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder getUpgradedPackageIdOrBuilder() { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } 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_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getUpgradedPackageId()); } getUnknownFields().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_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpgradedPackageId()); } size += getUnknownFields().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 (hasUpgradedPackageId() != other.hasUpgradedPackageId()) return false; if (hasUpgradedPackageId()) { if (!getUpgradedPackageId() .equals(other.getUpgradedPackageId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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(); if (hasUpgradedPackageId()) { hash = (37 * hash) + UPGRADED_PACKAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getUpgradedPackageId().hashCode(); } hash = (29 * hash) + getUnknownFields().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) { getUpgradedPackageIdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nameInternedStr_ = 0; versionInternedStr_ = 0; upgradedPackageId_ = null; if (upgradedPackageIdBuilder_ != null) { upgradedPackageIdBuilder_.dispose(); upgradedPackageIdBuilder_ = 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_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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.PackageMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nameInternedStr_ = nameInternedStr_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.versionInternedStr_ = versionInternedStr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.upgradedPackageId_ = upgradedPackageIdBuilder_ == null ? upgradedPackageId_ : upgradedPackageIdBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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()); } if (other.hasUpgradedPackageId()) { mergeUpgradedPackageId(other.getUpgradedPackageId()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nameInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { versionInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getUpgradedPackageIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * int32 name_interned_str = 1; * @return This builder for chaining. */ public Builder clearNameInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * *Available in versions >= 1.8*
       * 
* * int32 version_interned_str = 2; * @return This builder for chaining. */ public Builder clearVersionInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); versionInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId upgradedPackageId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder> upgradedPackageIdBuilder_; /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; * @return Whether the upgradedPackageId field is set. */ public boolean hasUpgradedPackageId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; * @return The upgradedPackageId. */ public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId getUpgradedPackageId() { if (upgradedPackageIdBuilder_ == null) { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } else { return upgradedPackageIdBuilder_.getMessage(); } } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ public Builder setUpgradedPackageId(com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId value) { if (upgradedPackageIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } upgradedPackageId_ = value; } else { upgradedPackageIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ public Builder setUpgradedPackageId( com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder builderForValue) { if (upgradedPackageIdBuilder_ == null) { upgradedPackageId_ = builderForValue.build(); } else { upgradedPackageIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ public Builder mergeUpgradedPackageId(com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId value) { if (upgradedPackageIdBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && upgradedPackageId_ != null && upgradedPackageId_ != com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance()) { getUpgradedPackageIdBuilder().mergeFrom(value); } else { upgradedPackageId_ = value; } } else { upgradedPackageIdBuilder_.mergeFrom(value); } if (upgradedPackageId_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ public Builder clearUpgradedPackageId() { bitField0_ = (bitField0_ & ~0x00000004); upgradedPackageId_ = null; if (upgradedPackageIdBuilder_ != null) { upgradedPackageIdBuilder_.dispose(); upgradedPackageIdBuilder_ = null; } onChanged(); return this; } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder getUpgradedPackageIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUpgradedPackageIdFieldBuilder().getBuilder(); } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ public com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder getUpgradedPackageIdOrBuilder() { if (upgradedPackageIdBuilder_ != null) { return upgradedPackageIdBuilder_.getMessageOrBuilder(); } else { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } } /** *
       * *optional*, *Available in versions >= 1.dev*
       * 
* * .daml_lf_1.UpgradedPackageId upgraded_package_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder> getUpgradedPackageIdFieldBuilder() { if (upgradedPackageIdBuilder_ == null) { upgradedPackageIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageId.Builder, com.daml.daml_lf_dev.DamlLf1.UpgradedPackageIdOrBuilder>( getUpgradedPackageId(), getParentForChildren(), isClean()); upgradedPackageId_ = null; } return upgradedPackageIdBuilder_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.emptyList(); 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(); } 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); } private int bitField0_; public static final int MODULES_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList internedStrings_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * 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; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * *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 metadata_ == null ? com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance() : metadata_; } public static final int INTERNED_TYPES_FIELD_NUMBER = 5; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getMetadata()); } for (int i = 0; i < internedTypes_.size(); i++) { output.writeMessage(5, internedTypes_.get(i)); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); getMetadataFieldBuilder(); getInternedTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (modulesBuilder_ == null) { modules_ = java.util.Collections.emptyList(); } else { modules_ = null; modulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); internedStrings_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (internedDottedNamesBuilder_ == null) { internedDottedNames_ = java.util.Collections.emptyList(); } else { internedDottedNames_ = null; internedDottedNamesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } if (internedTypesBuilder_ == null) { internedTypes_ = java.util.Collections.emptyList(); } else { internedTypes_ = null; internedTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf1.Package result) { 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 (internedDottedNamesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { internedDottedNames_ = java.util.Collections.unmodifiableList(internedDottedNames_); bitField0_ = (bitField0_ & ~0x00000004); } result.internedDottedNames_ = internedDottedNames_; } else { result.internedDottedNames_ = internedDottedNamesBuilder_.build(); } if (internedTypesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { internedTypes_ = java.util.Collections.unmodifiableList(internedTypes_); bitField0_ = (bitField0_ & ~0x00000010); } result.internedTypes_ = internedTypes_; } else { result.internedTypes_ = internedTypesBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf1.Package result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { internedStrings_.makeImmutable(); result.internedStrings_ = internedStrings_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_ |= 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_ & ~0x00000010); } else { ensureInternedTypesIsMutable(); internedTypes_.addAll(other.internedTypes_); } onChanged(); } } else { if (!other.internedTypes_.isEmpty()) { if (internedTypesBuilder_.isEmpty()) { internedTypesBuilder_.dispose(); internedTypesBuilder_ = null; internedTypes_ = other.internedTypes_; bitField0_ = (bitField0_ & ~0x00000010); internedTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInternedTypesFieldBuilder() : null; } else { internedTypesBuilder_.addAllMessages(other.internedTypes_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.Module m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Module.parser(), extensionRegistry); if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.add(m); } else { modulesBuilder_.addMessage(m); } break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureInternedStringsIsMutable(); internedStrings_.add(s); break; } // case 18 case 26: { com.daml.daml_lf_dev.DamlLf1.InternedDottedName m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.InternedDottedName.parser(), extensionRegistry); if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(m); } else { internedDottedNamesBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.daml.daml_lf_dev.DamlLf1.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf1.Type.parser(), extensionRegistry); if (internedTypesBuilder_ == null) { ensureInternedTypesIsMutable(); internedTypes_.add(m); } else { internedTypesBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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.LazyStringArrayList internedStrings_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureInternedStringsIsMutable() { if (!internedStrings_.isModifiable()) { 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() { internedStrings_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string interned_strings = 2; * @return This builder for chaining. */ public Builder clearInternedStrings() { internedStrings_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000008) != 0); } /** *
       * *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; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && metadata_ != null && metadata_ != com.daml.daml_lf_dev.DamlLf1.PackageMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * *Available and required in versions >= 1.8*
       * 
* * .daml_lf_1.PackageMetadata metadata = 4; */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000008); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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_ & 0x00000010) != 0)) { internedTypes_ = new java.util.ArrayList(internedTypes_); bitField0_ |= 0x00000010; } } 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_ & ~0x00000010); 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_ & 0x00000010) != 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_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_ViewInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ViewInterface_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_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_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_ChoiceController_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ChoiceController_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Expr_ChoiceObserver_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Expr_ChoiceObserver_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_SoftExercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_SoftExercise_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_Update_DynamicExercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_DynamicExercise_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_SoftFetch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_Update_SoftFetch_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_InterfaceInstanceBody_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_InterfaceInstanceBody_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_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_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_DefInterface_CoImplements_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_DefInterface_CoImplements_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_UpgradedPackageId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_1_UpgradedPackageId_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_lf1.proto\022\td" + "aml_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_st" + "r\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_dna" + "me\030\002 \001(\0132\025.daml_lf_1.DottedNameH\000\022$\n\032mod" + "ule_name_interned_dname\030\003 \001(\005H\000B\r\n\013modul" + "e_name\"\207\001\n\013TypeConName\022$\n\006module\030\001 \001(\0132\024" + ".daml_lf_1.ModuleRef\022+\n\nname_dname\030\002 \001(\013" + "2\025.daml_lf_1.DottedNameH\000\022\035\n\023name_intern" + "ed_dname\030\003 \001(\005H\000B\006\n\004name\"\207\001\n\013TypeSynName" + "\022$\n\006module\030\001 \001(\0132\024.daml_lf_1.ModuleRef\022+" + "\n\nname_dname\030\002 \001(\0132\025.daml_lf_1.DottedNam" + "eH\000\022\035\n\023name_interned_dname\030\003 \001(\005H\000B\006\n\004na" + "me\"`\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_str" + "\030\003 \001(\005H\000\022\035\n\004type\030\002 \001(\0132\017.daml_lf_1.TypeB" + "\007\n\005field\"b\n\013VarWithType\022\021\n\007var_str\030\001 \001(\t" + "H\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\017TypeVarW" + "ithKind\022\021\n\007var_str\030\001 \001(\tH\000\022\032\n\020var_intern" + "ed_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_s" + "tr\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\005field" + "\"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.E" + "xpr\"\301\001\n\004Kind\022\037\n\004star\030\001 \001(\0132\017.daml_lf_1.U" + "nitH\000\022&\n\005arrow\030\002 \001(\0132\025.daml_lf_1.Kind.Ar" + "rowH\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.V" + "arH\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.Struct" + "H\000\022\r\n\003nat\030\013 \001(\022H\000\022\"\n\003syn\030\014 \001(\0132\023.daml_lf" + "_1.Type.SynH\000\022\022\n\010interned\030\r \001(\005H\000\032Z\n\003Var" + "\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.Ty" + "pe\032K\n\003Syn\022%\n\005tysyn\030\001 \001(\0132\026.daml_lf_1.Typ" + "eSynName\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.Type\032" + "H\n\004Prim\022!\n\004prim\030\001 \001(\0162\023.daml_lf_1.PrimTy" + "pe\022\035\n\004args\030\002 \003(\0132\017.daml_lf_1.Type\032Q\n\006For" + "all\022(\n\004vars\030\001 \003(\0132\032.daml_lf_1.TypeVarWit" + "hKind\022\035\n\004body\030\002 \001(\0132\017.daml_lf_1.Type\0322\n\006" + "Struct\022(\n\006fields\030\001 \003(\0132\030.daml_lf_1.Field" + "WithTypeB\005\n\003SumJ\004\010\004\020\005J\004\010\006\020\007J\004\010\010\020\tJ\004\010\t\020\nJ" + "\004\010\n\020\013\"\235\003\n\007PrimLit\022\017\n\005int64\030\001 \001(\022H\000\022\025\n\013de" + "cimal_str\030\002 \001(\tH\000\022\036\n\024numeric_interned_st" + "r\030\n \001(\005H\000\022\022\n\010text_str\030\004 \001(\tH\000\022\033\n\021text_in" + "terned_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_s" + "tr\030\014 \001(\005H\000\022\016\n\004date\030\010 \001(\005H\000\0228\n\rrounding_m" + "ode\030\r \001(\0162\037.daml_lf_1.PrimLit.RoundingMo" + "deH\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\tH" + "ALF_DOWN\020\005\022\r\n\tHALF_EVEN\020\006\022\017\n\013UNNECESSARY" + "\020\007B\005\n\003SumJ\004\010\003\020\004J\004\010\006\020\007\"\255\001\n\010Location\022$\n\006mo" + "dule\030\001 \001(\0132\024.daml_lf_1.ModuleRef\022(\n\005rang" + "e\030\002 \001(\0132\031.daml_lf_1.Location.Range\032Q\n\005Ra" + "nge\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\"\2361" + "\n\004Expr\022%\n\010location\030\031 \001(\0132\023.daml_lf_1.Loc" + "ation\022\021\n\007var_str\030\001 \001(\tH\000\022\032\n\020var_interned" + "_str\030\035 \001(\005H\000\022!\n\003val\030\002 \001(\0132\022.daml_lf_1.Va" + "lNameH\000\022-\n\007builtin\030\003 \001(\0162\032.daml_lf_1.Bui" + "ltinFunctionH\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_l" + "f_1.Expr.RecConH\000\022+\n\010rec_proj\030\007 \001(\0132\027.da" + "ml_lf_1.Expr.RecProjH\000\022)\n\007rec_upd\030\026 \001(\0132" + "\026.daml_lf_1.Expr.RecUpdH\000\0221\n\013variant_con" + "\030\010 \001(\0132\032.daml_lf_1.Expr.VariantConH\000\022+\n\010" + "enum_con\030\034 \001(\0132\027.daml_lf_1.Expr.EnumConH" + "\000\022/\n\nstruct_con\030\t \001(\0132\031.daml_lf_1.Expr.S" + "tructConH\000\0221\n\013struct_proj\030\n \001(\0132\032.daml_l" + "f_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(\013" + "2\023.daml_lf_1.Expr.AbsH\000\022\'\n\006ty_abs\030\016 \001(\0132" + "\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_lf" + "_1.BlockH\000\022\"\n\003nil\030\021 \001(\0132\023.daml_lf_1.Expr" + ".NilH\000\022$\n\004cons\030\022 \001(\0132\024.daml_lf_1.Expr.Co" + "nsH\000\022#\n\006update\030\024 \001(\0132\021.daml_lf_1.UpdateH" + "\000\022\'\n\010scenario\030\025 \001(\0132\023.daml_lf_1.Scenario" + "H\000\0225\n\roptional_none\030\032 \001(\0132\034.daml_lf_1.Ex" + "pr.OptionalNoneH\000\0225\n\roptional_some\030\033 \001(\013" + "2\034.daml_lf_1.Expr.OptionalSomeH\000\022\'\n\006to_a" + "ny\030\036 \001(\0132\025.daml_lf_1.Expr.ToAnyH\000\022+\n\010fro" + "m_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\020t" + "o_any_exception\030! \001(\0132\036.daml_lf_1.Expr.T" + "oAnyExceptionH\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\022" + "3\n\014to_interface\030$ \001(\0132\033.daml_lf_1.Expr.T" + "oInterfaceH\000\0227\n\016from_interface\030% \001(\0132\035.d" + "aml_lf_1.Expr.FromInterfaceH\000\0227\n\016call_in" + "terface\030& \001(\0132\035.daml_lf_1.Expr.CallInter" + "faceH\000\022A\n\023signatory_interface\030\' \001(\0132\".da" + "ml_lf_1.Expr.SignatoryInterfaceH\000\022?\n\022obs" + "erver_interface\030( \001(\0132!.daml_lf_1.Expr.O" + "bserverInterfaceH\000\0227\n\016view_interface\030) \001" + "(\0132\035.daml_lf_1.Expr.ViewInterfaceH\000\022D\n\025u" + "nsafe_from_interface\030* \001(\0132#.daml_lf_1.E" + "xpr.UnsafeFromInterfaceH\000\022O\n\033interface_t" + "emplate_type_rep\030+ \001(\0132(.daml_lf_1.Expr." + "InterfaceTemplateTypeRepH\000\022D\n\025to_require" + "d_interface\030, \001(\0132#.daml_lf_1.Expr.ToReq" + "uiredInterfaceH\000\022H\n\027from_required_interf" + "ace\030- \001(\0132%.daml_lf_1.Expr.FromRequiredI" + "nterfaceH\000\022U\n\036unsafe_from_required_inter" + "face\030. \001(\0132+.daml_lf_1.Expr.UnsafeFromRe" + "quiredInterfaceH\000\022=\n\021choice_controller\030/" + " \001(\0132 .daml_lf_1.Expr.ChoiceControllerH\000" + "\0229\n\017choice_observer\0300 \001(\0132\036.daml_lf_1.Ex" + "pr.ChoiceObserverH\000\0225\n\014experimental\030\217N \001" + "(\0132\034.daml_lf_1.Expr.ExperimentalH\000\032V\n\006Re" + "cCon\022\"\n\005tycon\030\001 \001(\0132\023.daml_lf_1.Type.Con" + "\022(\n\006fields\030\002 \003(\0132\030.daml_lf_1.FieldWithEx" + "pr\032\212\001\n\007RecProj\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\004 \001(\005H\000\022\037\n\006record\030\003 \001(\0132\017." + "daml_lf_1.ExprB\007\n\005field\032\252\001\n\006RecUpd\022\"\n\005ty" + "con\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\005 \001(\005H" + "\000\022\037\n\006record\030\003 \001(\0132\017.daml_lf_1.Expr\022\037\n\006up" + "date\030\004 \001(\0132\017.daml_lf_1.ExprB\007\n\005field\032\244\001\n" + "\nVariantCon\022\"\n\005tycon\030\001 \001(\0132\023.daml_lf_1.T" + "ype.Con\022\031\n\017variant_con_str\030\002 \001(\tH\000\022\"\n\030va" + "riant_con_interned_str\030\004 \001(\005H\000\022$\n\013varian" + "t_arg\030\003 \001(\0132\017.daml_lf_1.ExprB\r\n\013variant_" + "con\032u\n\007EnumCon\022%\n\005tycon\030\001 \001(\0132\026.daml_lf_" + "1.TypeConName\022\026\n\014enum_con_str\030\002 \001(\tH\000\022\037\n" + "\025enum_con_interned_str\030\003 \001(\005H\000B\n\n\010enum_c" + "on\0325\n\tStructCon\022(\n\006fields\030\001 \003(\0132\030.daml_l" + "f_1.FieldWithExpr\032i\n\nStructProj\022\023\n\tfield" + "_str\030\001 \001(\tH\000\022\034\n\022field_interned_str\030\003 \001(\005" + "H\000\022\037\n\006struct\030\002 \001(\0132\017.daml_lf_1.ExprB\007\n\005f" + "ield\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.Expr\022\035\n\004args\030\002 \003(\0132\017.da" + "ml_lf_1.Expr\032F\n\005TyApp\022\035\n\004expr\030\001 \001(\0132\017.da" + "ml_lf_1.Expr\022\036\n\005types\030\002 \003(\0132\017.daml_lf_1." + "Type\032K\n\003Abs\022%\n\005param\030\001 \003(\0132\026.daml_lf_1.V" + "arWithType\022\035\n\004body\030\002 \001(\0132\017.daml_lf_1.Exp" + "r\032Q\n\005TyAbs\022)\n\005param\030\001 \003(\0132\032.daml_lf_1.Ty" + "peVarWithKind\022\035\n\004body\030\002 \001(\0132\017.daml_lf_1." + "Expr\032$\n\003Nil\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1.Ty" + "pe\032d\n\004Cons\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1.Typ" + "e\022\036\n\005front\030\002 \003(\0132\017.daml_lf_1.Expr\022\035\n\004tai" + "l\030\003 \001(\0132\017.daml_lf_1.Expr\032-\n\014OptionalNone" + "\022\035\n\004type\030\001 \001(\0132\017.daml_lf_1.Type\032L\n\014Optio" + "nalSome\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.Expr\032E\n\005ToAny\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\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.d" + "aml_lf_1.Expr\032N\n\016ToAnyException\022\035\n\004type\030" + "\001 \001(\0132\017.daml_lf_1.Type\022\035\n\004expr\030\002 \001(\0132\017.d" + "aml_lf_1.Expr\032P\n\020FromAnyException\022\035\n\004typ" + "e\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_exp" + "r\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.Typ" + "eConName\022-\n\rtemplate_type\030\002 \001(\0132\026.daml_l" + "f_1.TypeConName\022&\n\rtemplate_expr\030\003 \001(\0132\017" + ".daml_lf_1.Expr\032\227\001\n\rFromInterface\022.\n\016int" + "erface_type\030\001 \001(\0132\026.daml_lf_1.TypeConNam" + "e\022-\n\rtemplate_type\030\002 \001(\0132\026.daml_lf_1.Typ" + "eConName\022\'\n\016interface_expr\030\003 \001(\0132\017.daml_" + "lf_1.Expr\032\206\001\n\rCallInterface\022.\n\016interface" + "_type\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\034\n\024m" + "ethod_interned_name\030\002 \001(\005\022\'\n\016interface_e" + "xpr\030\003 \001(\0132\017.daml_lf_1.Expr\032Y\n\rViewInterf" + "ace\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_1.TypeC" + "onName\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.TypeConName\022\035\n\004expr\030\002 \001(\0132\017.d" + "aml_lf_1.Expr\032]\n\021ObserverInterface\022)\n\tin" + "terface\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\035\n" + "\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032\310\001\n\023UnsafeF" + "romInterface\022.\n\016interface_type\030\001 \001(\0132\026.d" + "aml_lf_1.TypeConName\022-\n\rtemplate_type\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\016interf" + "ace_expr\030\004 \001(\0132\017.daml_lf_1.Expr\032\235\001\n\023ToRe" + "quiredInterface\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\035\n\004expr\030\003 \001(\0132\017.daml_lf_1.Expr\032\237\001\n\025From" + "RequiredInterface\0222\n\022required_interface\030" + "\001 \001(\0132\026.daml_lf_1.TypeConName\0223\n\023requiri" + "ng_interface\030\002 \001(\0132\026.daml_lf_1.TypeConNa" + "me\022\035\n\004expr\030\003 \001(\0132\017.daml_lf_1.Expr\032\332\001\n\033Un" + "safeFromRequiredInterface\0222\n\022required_in" + "terface\030\001 \001(\0132\026.daml_lf_1.TypeConName\0223\n" + "\023requiring_interface\030\002 \001(\0132\026.daml_lf_1.T" + "ypeConName\022)\n\020contract_id_expr\030\003 \001(\0132\017.d" + "aml_lf_1.Expr\022\'\n\016interface_expr\030\004 \001(\0132\017." + "daml_lf_1.Expr\032d\n\030InterfaceTemplateTypeR" + "ep\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_1.TypeCo" + "nName\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\032\253\001\n" + "\020ChoiceController\022(\n\010template\030\001 \001(\0132\026.da" + "ml_lf_1.TypeConName\022\033\n\023choice_interned_s" + "tr\030\002 \001(\005\022&\n\rcontract_expr\030\003 \001(\0132\017.daml_l" + "f_1.Expr\022(\n\017choice_arg_expr\030\004 \001(\0132\017.daml" + "_lf_1.Expr\032\251\001\n\016ChoiceObserver\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&\n\rcontract_expr\030\003 " + "\001(\0132\017.daml_lf_1.Expr\022(\n\017choice_arg_expr\030" + "\004 \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.T" + "ypeB\005\n\003SumJ\004\010\023\020\024J\004\010\030\020\031\"\225\007\n\007CaseAlt\022\"\n\007de" + "fault\030\001 \001(\0132\017.daml_lf_1.UnitH\000\022-\n\007varian" + "t\030\002 \001(\0132\032.daml_lf_1.CaseAlt.VariantH\000\022&\n" + "\010prim_con\030\003 \001(\0162\022.daml_lf_1.PrimConH\000\022\036\n" + "\003nil\030\004 \001(\0132\017.daml_lf_1.UnitH\000\022\'\n\004cons\030\005 " + "\001(\0132\027.daml_lf_1.CaseAlt.ConsH\000\022(\n\roption" + "al_none\030\007 \001(\0132\017.daml_lf_1.UnitH\000\0228\n\ropti" + "onal_some\030\010 \001(\0132\037.daml_lf_1.CaseAlt.Opti" + "onalSomeH\000\022\'\n\004enum\030\t \001(\0132\027.daml_lf_1.Cas" + "eAlt.EnumH\000\022\035\n\004body\030\006 \001(\0132\017.daml_lf_1.Ex" + "pr\032\257\001\n\007Variant\022#\n\003con\030\001 \001(\0132\026.daml_lf_1." + "TypeConName\022\025\n\013variant_str\030\002 \001(\tH\000\022\036\n\024va" + "riant_interned_str\030\004 \001(\005H\000\022\024\n\nbinder_str" + "\030\003 \001(\tH\001\022\035\n\023binder_interned_str\030\005 \001(\005H\001B" + "\t\n\007variantB\010\n\006binder\032y\n\004Enum\022#\n\003con\030\001 \001(" + "\0132\026.daml_lf_1.TypeConName\022\031\n\017constructor" + "_str\030\002 \001(\tH\000\022\"\n\030constructor_interned_str" + "\030\003 \001(\005H\000B\r\n\013constructor\032\220\001\n\004Cons\022\026\n\014var_" + "head_str\030\001 \001(\tH\000\022\037\n\025var_head_interned_st" + "r\030\003 \001(\005H\000\022\026\n\014var_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\014OptionalSome\022\026\n\014var_body_s" + "tr\030\001 \001(\tH\000\022\037\n\025var_body_interned_str\030\002 \001(" + "\005H\000B\n\n\010var_bodyB\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.d" + "aml_lf_1.CaseAlt\"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.d" + "aml_lf_1.Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1." + "Expr\"\277\023\n\006Update\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.Bloc" + "kH\000\022*\n\006create\030\003 \001(\0132\030.daml_lf_1.Update.C" + "reateH\000\022.\n\010exercise\030\004 \001(\0132\032.daml_lf_1.Up" + "date.ExerciseH\000\022:\n\017exercise_by_key\030\n \001(\013" + "2\037.daml_lf_1.Update.ExerciseByKeyH\000\022(\n\005f" + "etch\030\005 \001(\0132\027.daml_lf_1.Update.FetchH\000\022#\n" + "\010get_time\030\006 \001(\0132\017.daml_lf_1.UnitH\000\0228\n\rlo" + "okup_by_key\030\010 \001(\0132\037.daml_lf_1.Update.Ret" + "rieveByKeyH\000\0227\n\014fetch_by_key\030\t \001(\0132\037.dam" + "l_lf_1.Update.RetrieveByKeyH\000\0221\n\nembed_e" + "xpr\030\007 \001(\0132\033.daml_lf_1.Update.EmbedExprH\000" + "\022/\n\ttry_catch\030\013 \001(\0132\032.daml_lf_1.Update.T" + "ryCatchH\000\022=\n\020create_interface\030\014 \001(\0132!.da" + "ml_lf_1.Update.CreateInterfaceH\000\022A\n\022exer" + "cise_interface\030\r \001(\0132#.daml_lf_1.Update." + "ExerciseInterfaceH\000\022;\n\017fetch_interface\030\016" + " \001(\0132 .daml_lf_1.Update.FetchInterfaceH\000" + "\022=\n\020dynamic_exercise\030\017 \001(\0132!.daml_lf_1.U" + "pdate.DynamicExerciseH\000\0221\n\nsoft_fetch\030\020 " + "\001(\0132\033.daml_lf_1.Update.SoftFetchH\000\0227\n\rso" + "ft_exercise\030\021 \001(\0132\036.daml_lf_1.Update.Sof" + "tExerciseH\000\032Q\n\006Create\022(\n\010template\030\001 \001(\0132" + "\026.daml_lf_1.TypeConName\022\035\n\004expr\030\002 \001(\0132\017." + "daml_lf_1.Expr\032[\n\017CreateInterface\022)\n\tint" + "erface\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\035\n\004" + "expr\030\002 \001(\0132\017.daml_lf_1.Expr\032\265\001\n\010Exercise" + "\022(\n\010template\030\001 \001(\0132\026.daml_lf_1.TypeConNa" + "me\022\024\n\nchoice_str\030\002 \001(\tH\000\022\035\n\023choice_inter" + "ned_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\006c" + "hoiceJ\004\010\004\020\005\032\263\001\n\014SoftExercise\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\006choice\032\224\001\n\017Dy" + "namicExercise\022(\n\010template\030\001 \001(\0132\026.daml_l" + "f_1.TypeConName\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\003ar" + "g\030\004 \001(\0132\017.daml_lf_1.Expr\032\267\001\n\021ExerciseInt" + "erface\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_1.Ty" + "peConName\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.daml" + "_lf_1.Expr\032\222\001\n\rExerciseByKey\022(\n\010template" + "\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\033\n\023choice" + "_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\032" + "U\n\005Fetch\022(\n\010template\030\001 \001(\0132\026.daml_lf_1.T" + "ypeConName\022\034\n\003cid\030\002 \001(\0132\017.daml_lf_1.Expr" + "J\004\010\003\020\004\032S\n\tSoftFetch\022(\n\010template\030\001 \001(\0132\026." + "daml_lf_1.TypeConName\022\034\n\003cid\030\002 \001(\0132\017.dam" + "l_lf_1.Expr\032Y\n\016FetchInterface\022)\n\tinterfa" + "ce\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\004t" + "ype\030\001 \001(\0132\017.daml_lf_1.Type\022\035\n\004body\030\002 \001(\013" + "2\017.daml_lf_1.Expr\032W\n\rRetrieveByKey\022(\n\010te" + "mplate\030\001 \001(\0132\026.daml_lf_1.TypeConName\022\034\n\003" + "key\030\002 \001(\0132\017.daml_lf_1.Expr\032\222\001\n\010TryCatch\022" + "$\n\013return_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_" + "interned_str\030\003 \001(\005\022#\n\ncatch_expr\030\004 \001(\0132\017" + ".daml_lf_1.ExprB\005\n\003Sum\"\215\004\n\010Scenario\022\037\n\004p" + "ure\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.daml_lf_1.Scenario.CommitH\000\0220\n\nmustFai" + "lAt\030\004 \001(\0132\032.daml_lf_1.Scenario.CommitH\000\022" + "\037\n\004pass\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_par" + "ty\030\007 \001(\0132\017.daml_lf_1.ExprH\000\0223\n\nembed_exp" + "r\030\010 \001(\0132\035.daml_lf_1.Scenario.EmbedExprH\000" + "\032j\n\006Commit\022\036\n\005party\030\001 \001(\0132\017.daml_lf_1.Ex" + "pr\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_1.Expr\022!\n\010ret" + "_type\030\003 \001(\0132\017.daml_lf_1.Type\032I\n\tEmbedExp" + "r\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\"\261\003\n\016Templ" + "ateChoice\022\022\n\010name_str\030\001 \001(\tH\000\022\033\n\021name_in" + "terned_str\030\t \001(\005H\000\022\021\n\tconsuming\030\002 \001(\010\022$\n" + "\013controllers\030\003 \001(\0132\017.daml_lf_1.Expr\022\"\n\to" + "bservers\030\013 \001(\0132\017.daml_lf_1.Expr\022$\n\013autho" + "rizers\030\014 \001(\0132\017.daml_lf_1.Expr\022*\n\narg_bin" + "der\030\004 \001(\0132\026.daml_lf_1.VarWithType\022!\n\010ret" + "_type\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" + "(\005H\001\022%\n\010location\030\010 \001(\0132\023.daml_lf_1.Locat" + "ionB\006\n\004nameB\r\n\013self_binder\"\360\003\n\007KeyExpr\0225" + "\n\013projections\030\001 \001(\0132\036.daml_lf_1.KeyExpr." + "ProjectionsH\000\022+\n\006record\030\002 \001(\0132\031.daml_lf_" + "1.KeyExpr.RecordH\000\032l\n\nProjection\022\"\n\005tyco" + "n\030\001 \001(\0132\023.daml_lf_1.Type.Con\022\023\n\tfield_st" + "r\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\013R" + "ecordField\022\023\n\tfield_str\030\001 \001(\tH\000\022\034\n\022field" + "_interned_str\030\003 \001(\005H\000\022 \n\004expr\030\002 \001(\0132\022.da" + "ml_lf_1.KeyExprB\007\n\005field\032\\\n\006Record\022\"\n\005ty" + "con\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\003Sum\"\332\001\n\025InterfaceInstanceBody\022I\n\007metho" + "ds\030\001 \003(\01328.daml_lf_1.InterfaceInstanceBo" + "dy.InterfaceInstanceMethod\022\035\n\004view\030\002 \001(\013" + "2\017.daml_lf_1.Expr\032W\n\027InterfaceInstanceMe" + "thod\022\034\n\024method_interned_name\030\001 \001(\005\022\036\n\005va" + "lue\030\002 \001(\0132\017.daml_lf_1.Expr\"\244\006\n\013DefTempla" + "te\022,\n\013tycon_dname\030\001 \001(\0132\025.daml_lf_1.Dott" + "edNameH\000\022\036\n\024tycon_interned_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.E" + "xpr\022\"\n\tagreement\030\006 \001(\0132\017.daml_lf_1.Expr\022" + "*\n\007choices\030\007 \003(\0132\031.daml_lf_1.TemplateCho" + "ice\022\"\n\tobservers\030\010 \001(\0132\017.daml_lf_1.Expr\022" + "%\n\010location\030\t \001(\0132\023.daml_lf_1.Location\022*" + "\n\003key\030\n \001(\0132\035.daml_lf_1.DefTemplate.DefK" + "ey\0225\n\nimplements\030\r \003(\0132!.daml_lf_1.DefTe" + "mplate.Implements\032\244\001\n\006DefKey\022\035\n\004type\030\001 \001" + "(\0132\017.daml_lf_1.Type\022!\n\003key\030\002 \001(\0132\022.daml_" + "lf_1.KeyExprH\000\022&\n\013complex_key\030\004 \001(\0132\017.da" + "ml_lf_1.ExprH\000\022$\n\013maintainers\030\003 \001(\0132\017.da" + "ml_lf_1.ExprB\n\n\010key_expr\032\216\001\n\nImplements\022" + ")\n\tinterface\030\001 \001(\0132\026.daml_lf_1.TypeConNa" + "me\022.\n\004body\030\002 \001(\0132 .daml_lf_1.InterfaceIn" + "stanceBody\022%\n\010location\030\003 \001(\0132\023.daml_lf_1" + ".LocationB\007\n\005tyconB\007\n\005paramJ\004\010\003\020\004\"u\n\017Int" + "erfaceMethod\022%\n\010location\030\001 \001(\0132\023.daml_lf" + "_1.Location\022\034\n\024method_interned_name\030\002 \001(" + "\005\022\035\n\004type\030\003 \001(\0132\017.daml_lf_1.Type\"\337\003\n\014Def" + "Interface\022%\n\010location\030\001 \001(\0132\023.daml_lf_1." + "Location\022\034\n\024tycon_interned_dname\030\002 \001(\005\022+" + "\n\007methods\030\003 \003(\0132\032.daml_lf_1.InterfaceMet" + "hod\022\032\n\022param_interned_str\030\004 \001(\005\022*\n\007choic" + "es\030\005 \003(\0132\031.daml_lf_1.TemplateChoice\022:\n\014c" + "oImplements\030\006 \003(\0132$.daml_lf_1.DefInterfa" + "ce.CoImplements\022\035\n\004view\030\010 \001(\0132\017.daml_lf_" + "1.Type\022(\n\010requires\030\t \003(\0132\026.daml_lf_1.Typ" + "eConName\032\217\001\n\014CoImplements\022(\n\010template\030\001 " + "\001(\0132\026.daml_lf_1.TypeConName\022.\n\004body\030\002 \001(" + "\0132 .daml_lf_1.InterfaceInstanceBody\022%\n\010l" + "ocation\030\003 \001(\0132\023.daml_lf_1.Location\"t\n\014De" + "fException\022\033\n\023name_interned_dname\030\001 \001(\005\022" + "%\n\010location\030\002 \001(\0132\023.daml_lf_1.Location\022 " + "\n\007message\030\003 \001(\0132\017.daml_lf_1.Expr\"\235\004\n\013Def" + "DataType\022+\n\nname_dname\030\001 \001(\0132\025.daml_lf_1", ".DottedNameH\000\022\035\n\023name_interned_dname\030\010 \001" + "(\005H\000\022*\n\006params\030\002 \003(\0132\032.daml_lf_1.TypeVar" + "WithKind\022/\n\006record\030\003 \001(\0132\035.daml_lf_1.Def" + "DataType.FieldsH\001\0220\n\007variant\030\004 \001(\0132\035.dam" + "l_lf_1.DefDataType.FieldsH\001\0227\n\004enum\030\007 \001(" + "\0132\'.daml_lf_1.DefDataType.EnumConstructo" + "rsH\001\022$\n\tinterface\030\t \001(\0132\017.daml_lf_1.Unit" + "H\001\022\024\n\014serializable\030\005 \001(\010\022%\n\010location\030\006 \001" + "(\0132\023.daml_lf_1.Location\0322\n\006Fields\022(\n\006fie" + "lds\030\001 \003(\0132\030.daml_lf_1.FieldWithType\032O\n\020E" + "numConstructors\022\030\n\020constructors_str\030\001 \003(" + "\t\022!\n\031constructors_interned_str\030\002 \003(\005B\006\n\004" + "nameB\n\n\010DataCons\"\322\001\n\nDefTypeSyn\022+\n\nname_" + "dname\030\001 \001(\0132\025.daml_lf_1.DottedNameH\000\022\035\n\023" + "name_interned_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(\013" + "2\023.daml_lf_1.LocationB\006\n\004name\"\226\002\n\010DefVal" + "ue\0228\n\016name_with_type\030\001 \001(\0132 .daml_lf_1.D" + "efValue.NameWithType\022\035\n\004expr\030\002 \001(\0132\017.dam" + "l_lf_1.Expr\022\031\n\021no_party_literals\030\003 \001(\010\022\017" + "\n\007is_test\030\004 \001(\010\022%\n\010location\030\005 \001(\0132\023.daml" + "_lf_1.Location\032^\n\014NameWithType\022\022\n\nname_d" + "name\030\001 \003(\t\022\033\n\023name_interned_dname\030\003 \001(\005\022" + "\035\n\004type\030\002 \001(\0132\017.daml_lf_1.Type\"\220\001\n\014Featu" + "reFlags\022\033\n\023forbidPartyLiterals\030\001 \001(\010\022/\n\'" + "dontDivulgeContractIdsInCreateArguments\030" + "\002 \001(\010\0222\n*dontDiscloseNonConsumingChoices" + "ToObservers\030\003 \001(\010\"\217\003\n\006Module\022+\n\nname_dna" + "me\030\001 \001(\0132\025.daml_lf_1.DottedNameH\000\022\035\n\023nam" + "e_interned_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.daml_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\nexcepti" + "ons\030\n \003(\0132\027.daml_lf_1.DefException\022+\n\nin" + "terfaces\030\013 \003(\0132\027.daml_lf_1.DefInterfaceB" + "\006\n\004nameJ\004\010\002\020\003J\004\010\003\020\004\"3\n\022InternedDottedNam" + "e\022\035\n\025segments_interned_str\030\001 \003(\005\"=\n\021Upgr" + "adedPackageId\022(\n upgraded_package_id_int" + "erned_str\030\001 \001(\005\"\205\001\n\017PackageMetadata\022\031\n\021n" + "ame_interned_str\030\001 \001(\005\022\034\n\024version_intern" + "ed_str\030\002 \001(\005\0229\n\023upgraded_package_id\030\003 \001(" + "\0132\034.daml_lf_1.UpgradedPackageId\"\334\001\n\007Pack" + "age\022\"\n\007modules\030\001 \003(\0132\021.daml_lf_1.Module\022" + "\030\n\020interned_strings\030\002 \003(\t\022<\n\025interned_do" + "tted_names\030\003 \003(\0132\035.daml_lf_1.InternedDot" + "tedName\022,\n\010metadata\030\004 \001(\0132\032.daml_lf_1.Pa" + "ckageMetadata\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\tTIMESTAMP\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\013CON" + "TRACT_ID\020\r\022\014\n\010OPTIONAL\020\016\022\t\n\005ARROW\020\017\022\013\n\007T" + "EXTMAP\020\020\022\013\n\007NUMERIC\020\021\022\007\n\003ANY\020\022\022\014\n\010TYPE_R" + "EP\020\023\022\n\n\006GENMAP\020\024\022\016\n\nBIGNUMERIC\020\025\022\021\n\rROUN" + "DING_MODE\020\026\022\021\n\rANY_EXCEPTION\020\027*4\n\007PrimCo" + "n\022\014\n\010CON_UNIT\020\000\022\r\n\tCON_FALSE\020\001\022\014\n\010CON_TR" + "UE\020\002*\252\023\n\017BuiltinFunction\022\017\n\013ADD_DECIMAL\020" + "\000\022\017\n\013SUB_DECIMAL\020\001\022\017\n\013MUL_DECIMAL\020\002\022\017\n\013D" + "IV_DECIMAL\020\003\022\021\n\rROUND_DECIMAL\020\006\022\017\n\013ADD_N" + "UMERIC\020k\022\017\n\013SUB_NUMERIC\020l\022\026\n\022MUL_NUMERIC" + "_LEGACY\020m\022\020\n\013MUL_NUMERIC\020\225\001\022\026\n\022DIV_NUMER" + "IC_LEGACY\020n\022\020\n\013DIV_NUMERIC\020\226\001\022\021\n\rROUND_N" + "UMERIC\020o\022\027\n\023CAST_NUMERIC_LEGACY\020y\022\021\n\014CAS" + "T_NUMERIC\020\227\001\022\030\n\024SHIFT_NUMERIC_LEGACY\020z\022\022" + "\n\rSHIFT_NUMERIC\020\230\001\022\r\n\tADD_INT64\020\007\022\r\n\tSUB" + "_INT64\020\010\022\r\n\tMUL_INT64\020\t\022\r\n\tDIV_INT64\020\n\022\r" + "\n\tMOD_INT64\020\013\022\r\n\tEXP_INT64\020\014\022\t\n\005FOLDL\020\024\022" + "\t\n\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\014TEXTMA" + "P_SIZE\020e\022\020\n\014GENMAP_EMPTY\020|\022\021\n\rGENMAP_INS" + "ERT\020}\022\021\n\rGENMAP_LOOKUP\020~\022\021\n\rGENMAP_DELET" + "E\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_TEXT\020\027\022\017\n" + "\013APPEND_TEXT\020\030\022\t\n\005ERROR\020\031\022\032\n\025ANY_EXCEPTI" + "ON_MESSAGE\020\223\001\022\r\n\tLEQ_INT64\020!\022\017\n\013LEQ_DECI" + "MAL\020\"\022\017\n\013LEQ_NUMERIC\020p\022\014\n\010LEQ_TEXT\020$\022\021\n\r" + "LEQ_TIMESTAMP\020%\022\014\n\010LEQ_DATE\020C\022\r\n\tLEQ_PAR" + "TY\020Y\022\016\n\nLESS_INT64\020\'\022\020\n\014LESS_DECIMAL\020(\022\020" + "\n\014LESS_NUMERIC\020q\022\r\n\tLESS_TEXT\020*\022\022\n\016LESS_" + "TIMESTAMP\020+\022\r\n\tLESS_DATE\020D\022\016\n\nLESS_PARTY" + "\020Z\022\r\n\tGEQ_INT64\020-\022\017\n\013GEQ_DECIMAL\020.\022\017\n\013GE" + "Q_NUMERIC\020r\022\014\n\010GEQ_TEXT\0200\022\021\n\rGEQ_TIMESTA" + "MP\0201\022\014\n\010GEQ_DATE\020E\022\r\n\tGEQ_PARTY\020[\022\021\n\rGRE" + "ATER_INT64\0203\022\023\n\017GREATER_DECIMAL\0204\022\023\n\017GRE" + "ATER_NUMERIC\020s\022\020\n\014GREATER_TEXT\0206\022\025\n\021GREA" + "TER_TIMESTAMP\0207\022\020\n\014GREATER_DATE\020F\022\021\n\rGRE" + "ATER_PARTY\020\\\022\021\n\rINT64_TO_TEXT\0209\022\023\n\017DECIM" + "AL_TO_TEXT\020:\022\023\n\017NUMERIC_TO_TEXT\020t\022\020\n\014TEX" + "T_TO_TEXT\020<\022\025\n\021TIMESTAMP_TO_TEXT\020=\022\020\n\014DA" + "TE_TO_TEXT\020G\022\030\n\024PARTY_TO_QUOTED_TEXT\020?\022\021" + "\n\rPARTY_TO_TEXT\020^\022\021\n\rTEXT_TO_PARTY\020_\022\021\n\r" + "TEXT_TO_INT64\020g\022\023\n\017TEXT_TO_DECIMAL\020h\022\032\n\026" + "TEXT_TO_NUMERIC_LEGACY\020u\022\024\n\017TEXT_TO_NUME" + "RIC\020\231\001\022\030\n\023CONTRACT_ID_TO_TEXT\020\210\001\022\017\n\013SHA2" + "56_TEXT\020]\022\025\n\021DATE_TO_UNIX_DAYS\020H\022\025\n\021UNIX" + "_DAYS_TO_DATE\020I\022\"\n\036TIMESTAMP_TO_UNIX_MIC" + "ROSECONDS\020J\022\"\n\036UNIX_MICROSECONDS_TO_TIME" + "STAMP\020K\022\024\n\020INT64_TO_DECIMAL\020L\022\024\n\020DECIMAL" + "_TO_INT64\020M\022\033\n\027INT64_TO_NUMERIC_LEGACY\020v" + "\022\025\n\020INT64_TO_NUMERIC\020\232\001\022\024\n\020NUMERIC_TO_IN" + "T64\020w\022\020\n\014IMPLODE_TEXT\020N\022\017\n\013EQUAL_INT64\020O" + "\022\021\n\rEQUAL_DECIMAL\020P\022\021\n\rEQUAL_NUMERIC\020x\022\016" + "\n\nEQUAL_TEXT\020Q\022\023\n\017EQUAL_TIMESTAMP\020R\022\016\n\nE" + "QUAL_DATE\020S\022\017\n\013EQUAL_PARTY\020T\022\016\n\nEQUAL_BO" + "OL\020U\022\025\n\021EQUAL_CONTRACT_ID\020V\022\016\n\nEQUAL_LIS" + "T\020W\022\022\n\016EQUAL_TYPE_REP\020{\022\n\n\005EQUAL\020\203\001\022\014\n\007L" + "ESS_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_CONTRAC" + "T_ID\020f\022\027\n\023CODE_POINTS_TO_TEXT\020i\022\027\n\023TEXT_" + "TO_CODE_POINTS\020j\022\025\n\020SCALE_BIGNUMERIC\020\211\001\022" + "\031\n\024PRECISION_BIGNUMERIC\020\212\001\022\023\n\016ADD_BIGNUM" + "ERIC\020\213\001\022\023\n\016SUB_BIGNUMERIC\020\214\001\022\023\n\016MUL_BIGN" + "UMERIC\020\215\001\022\023\n\016DIV_BIGNUMERIC\020\216\001\022\033\n\026SHIFT_" + "RIGHT_BIGNUMERIC\020\217\001\022!\n\034BIGNUMERIC_TO_NUM" + "ERIC_LEGACY\020\220\001\022\032\n\025BIGNUMERIC_TO_NUMERIC\020" + "\233\001\022\032\n\025NUMERIC_TO_BIGNUMERIC\020\221\001\022\027\n\022BIGNUM" + "ERIC_TO_TEXT\020\222\001\022\030\n\023TYPE_REP_TYCON_NAME\020\224" + "\001B5\n\024com.daml.daml_lf_dev\252\002\034Com.Daml.Dam" + "l_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", "SignatoryInterface", "ObserverInterface", "ViewInterface", "UnsafeFromInterface", "InterfaceTemplateTypeRep", "ToRequiredInterface", "FromRequiredInterface", "UnsafeFromRequiredInterface", "ChoiceController", "ChoiceObserver", "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_CallInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(23); 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_ViewInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(24); internal_static_daml_lf_1_Expr_ViewInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ViewInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_1_Expr_SignatoryInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(25); 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(26); 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_UnsafeFromInterface_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(27); 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(28); 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(29); 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(30); 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_InterfaceTemplateTypeRep_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(31); 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_ChoiceController_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(32); internal_static_daml_lf_1_Expr_ChoiceController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ChoiceController_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "ContractExpr", "ChoiceArgExpr", }); internal_static_daml_lf_1_Expr_ChoiceObserver_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(33); internal_static_daml_lf_1_Expr_ChoiceObserver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Expr_ChoiceObserver_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "ContractExpr", "ChoiceArgExpr", }); internal_static_daml_lf_1_Expr_Experimental_descriptor = internal_static_daml_lf_1_Expr_descriptor.getNestedTypes().get(34); 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", "CreateInterface", "ExerciseInterface", "FetchInterface", "DynamicExercise", "SoftFetch", "SoftExercise", "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_SoftExercise_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(3); internal_static_daml_lf_1_Update_SoftExercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_SoftExercise_descriptor, new java.lang.String[] { "Template", "ChoiceStr", "ChoiceInternedStr", "Cid", "Arg", "Choice", }); internal_static_daml_lf_1_Update_DynamicExercise_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(4); internal_static_daml_lf_1_Update_DynamicExercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_DynamicExercise_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "Cid", "Arg", }); internal_static_daml_lf_1_Update_ExerciseInterface_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(5); 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(6); 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(7); 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_SoftFetch_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(8); internal_static_daml_lf_1_Update_SoftFetch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_Update_SoftFetch_descriptor, new java.lang.String[] { "Template", "Cid", }); internal_static_daml_lf_1_Update_FetchInterface_descriptor = internal_static_daml_lf_1_Update_descriptor.getNestedTypes().get(9); 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(10); 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(11); 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(12); 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", "Authorizers", "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_InterfaceInstanceBody_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_daml_lf_1_InterfaceInstanceBody_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_InterfaceInstanceBody_descriptor, new java.lang.String[] { "Methods", "View", }); internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor = internal_static_daml_lf_1_InterfaceInstanceBody_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor, new java.lang.String[] { "MethodInternedName", "Value", }); internal_static_daml_lf_1_DefTemplate_descriptor = getDescriptor().getMessageTypes().get(26); 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_Implements_descriptor = internal_static_daml_lf_1_DefTemplate_descriptor.getNestedTypes().get(1); 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", "Body", "Location", }); internal_static_daml_lf_1_InterfaceMethod_descriptor = getDescriptor().getMessageTypes().get(27); 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(28); 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", "Methods", "ParamInternedStr", "Choices", "CoImplements", "View", "Requires", }); internal_static_daml_lf_1_DefInterface_CoImplements_descriptor = internal_static_daml_lf_1_DefInterface_descriptor.getNestedTypes().get(0); internal_static_daml_lf_1_DefInterface_CoImplements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_DefInterface_CoImplements_descriptor, new java.lang.String[] { "Template", "Body", "Location", }); internal_static_daml_lf_1_DefException_descriptor = getDescriptor().getMessageTypes().get(29); 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(30); 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(31); 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(32); 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(33); 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(34); 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(35); 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_UpgradedPackageId_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_daml_lf_1_UpgradedPackageId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_1_UpgradedPackageId_descriptor, new java.lang.String[] { "UpgradedPackageIdInternedStr", }); internal_static_daml_lf_1_PackageMetadata_descriptor = getDescriptor().getMessageTypes().get(37); 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", "UpgradedPackageId", }); internal_static_daml_lf_1_Package_descriptor = getDescriptor().getMessageTypes().get(38); 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