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

com.daml.daml_lf_dev.DamlLf2 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_lf2.proto

package com.daml.daml_lf_dev;

public final class DamlLf2 {
  private DamlLf2() {}
  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 types
   * 
* * Protobuf enum {@code daml_lf_2.BuiltinType} */ public enum BuiltinType 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 'Date'
     * 
* * DATE = 3; */ DATE(3), /** *
     * Builtin type 'Timestamp'
     * 
* * TIMESTAMP = 4; */ TIMESTAMP(4), /** *
     * Builtin type 'Numeric'
     * 
* * NUMERIC = 5; */ NUMERIC(5), /** *
     * Builtin tpe 'Party'
     * 
* * PARTY = 6; */ PARTY(6), /** *
     * Builtin type 'Text'
     * 
* * TEXT = 7; */ TEXT(7), /** *
     * Builtin type 'ContractId'
     * 
* * CONTRACT_ID = 8; */ CONTRACT_ID(8), /** *
     * Builtin type 'Optional'
     * 
* * OPTIONAL = 9; */ OPTIONAL(9), /** *
     * Builtin type 'List'
     * 
* * LIST = 10; */ LIST(10), /** *
     * Builtin type 'TGenMap`
     * 
* * GENMAP = 11; */ GENMAP(11), /** *
     * Builtin type 'Any'
     * 
* * ANY = 13; */ ANY(13), /** *
     * Builtin type 'TAnyException'
     * 
* * ANY_EXCEPTION = 14; */ ANY_EXCEPTION(14), /** *
     * Builtin type 'TypeRep'
     * 
* * TYPE_REP = 15; */ TYPE_REP(15), /** *
     * Builtin type `TArrow`
     * 
* * ARROW = 16; */ ARROW(16), /** *
     * Builtin type 'Update'
     * 
* * UPDATE = 17; */ UPDATE(17), /** *
     * Builtin type 'TTextMap`
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP = 1001; */ TEXTMAP(1001), /** *
     * Builtin type 'TBigNumeric'
     * *Available in versions >= 2.dev*
     * 
* * BIGNUMERIC = 1002; */ BIGNUMERIC(1002), /** *
     * Builtin type 'TRoundingMode'
     * *Available in versions >= 2.dev*
     * 
* * ROUNDING_MODE = 1003; */ ROUNDING_MODE(1003), /** *
     * Builtin type 'Scenario'
     * *Available in versions >= 2.dev*
     * 
* * SCENARIO = 1004; */ SCENARIO(1004), 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 'Date'
     * 
* * DATE = 3; */ public static final int DATE_VALUE = 3; /** *
     * Builtin type 'Timestamp'
     * 
* * TIMESTAMP = 4; */ public static final int TIMESTAMP_VALUE = 4; /** *
     * Builtin type 'Numeric'
     * 
* * NUMERIC = 5; */ public static final int NUMERIC_VALUE = 5; /** *
     * Builtin tpe 'Party'
     * 
* * PARTY = 6; */ public static final int PARTY_VALUE = 6; /** *
     * Builtin type 'Text'
     * 
* * TEXT = 7; */ public static final int TEXT_VALUE = 7; /** *
     * Builtin type 'ContractId'
     * 
* * CONTRACT_ID = 8; */ public static final int CONTRACT_ID_VALUE = 8; /** *
     * Builtin type 'Optional'
     * 
* * OPTIONAL = 9; */ public static final int OPTIONAL_VALUE = 9; /** *
     * Builtin type 'List'
     * 
* * LIST = 10; */ public static final int LIST_VALUE = 10; /** *
     * Builtin type 'TGenMap`
     * 
* * GENMAP = 11; */ public static final int GENMAP_VALUE = 11; /** *
     * Builtin type 'Any'
     * 
* * ANY = 13; */ public static final int ANY_VALUE = 13; /** *
     * Builtin type 'TAnyException'
     * 
* * ANY_EXCEPTION = 14; */ public static final int ANY_EXCEPTION_VALUE = 14; /** *
     * Builtin type 'TypeRep'
     * 
* * TYPE_REP = 15; */ public static final int TYPE_REP_VALUE = 15; /** *
     * Builtin type `TArrow`
     * 
* * ARROW = 16; */ public static final int ARROW_VALUE = 16; /** *
     * Builtin type 'Update'
     * 
* * UPDATE = 17; */ public static final int UPDATE_VALUE = 17; /** *
     * Builtin type 'TTextMap`
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP = 1001; */ public static final int TEXTMAP_VALUE = 1001; /** *
     * Builtin type 'TBigNumeric'
     * *Available in versions >= 2.dev*
     * 
* * BIGNUMERIC = 1002; */ public static final int BIGNUMERIC_VALUE = 1002; /** *
     * Builtin type 'TRoundingMode'
     * *Available in versions >= 2.dev*
     * 
* * ROUNDING_MODE = 1003; */ public static final int ROUNDING_MODE_VALUE = 1003; /** *
     * Builtin type 'Scenario'
     * *Available in versions >= 2.dev*
     * 
* * SCENARIO = 1004; */ public static final int SCENARIO_VALUE = 1004; 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 BuiltinType 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 BuiltinType forNumber(int value) { switch (value) { case 0: return UNIT; case 1: return BOOL; case 2: return INT64; case 3: return DATE; case 4: return TIMESTAMP; case 5: return NUMERIC; case 6: return PARTY; case 7: return TEXT; case 8: return CONTRACT_ID; case 9: return OPTIONAL; case 10: return LIST; case 11: return GENMAP; case 13: return ANY; case 14: return ANY_EXCEPTION; case 15: return TYPE_REP; case 16: return ARROW; case 17: return UPDATE; case 1001: return TEXTMAP; case 1002: return BIGNUMERIC; case 1003: return ROUNDING_MODE; case 1004: return SCENARIO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BuiltinType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BuiltinType findValueByNumber(int number) { return BuiltinType.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.DamlLf2.getDescriptor().getEnumTypes().get(0); } private static final BuiltinType[] VALUES = values(); public static BuiltinType 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 BuiltinType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:daml_lf_2.BuiltinType) } /** *
   * Builtin constructors
   * 
* * Protobuf enum {@code daml_lf_2.BuiltinCon} */ public enum BuiltinCon 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 BuiltinCon 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 BuiltinCon 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< BuiltinCon> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BuiltinCon findValueByNumber(int number) { return BuiltinCon.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.DamlLf2.getDescriptor().getEnumTypes().get(1); } private static final BuiltinCon[] VALUES = values(); public static BuiltinCon 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 BuiltinCon(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:daml_lf_2.BuiltinCon) } /** *
   * Builtin functions
   * Refer to Daml-LF major version 1 specification for types and behavior of those.
   * 
* * Protobuf enum {@code daml_lf_2.BuiltinFunction} */ public enum BuiltinFunction implements com.google.protobuf.ProtocolMessageEnum { /** * TRACE = 0; */ TRACE(0), /** * ERROR = 1; */ ERROR(1), /** * EQUAL = 2; */ EQUAL(2), /** * LESS_EQ = 3; */ LESS_EQ(3), /** * LESS = 4; */ LESS(4), /** * GREATER_EQ = 5; */ GREATER_EQ(5), /** * GREATER = 6; */ GREATER(6), /** * 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), /** * ADD_NUMERIC = 13; */ ADD_NUMERIC(13), /** * SUB_NUMERIC = 14; */ SUB_NUMERIC(14), /** * MUL_NUMERIC = 15; */ MUL_NUMERIC(15), /** * DIV_NUMERIC = 16; */ DIV_NUMERIC(16), /** * ROUND_NUMERIC = 17; */ ROUND_NUMERIC(17), /** * CAST_NUMERIC = 18; */ CAST_NUMERIC(18), /** * SHIFT_NUMERIC = 19; */ SHIFT_NUMERIC(19), /** * INT64_TO_NUMERIC = 20; */ INT64_TO_NUMERIC(20), /** * NUMERIC_TO_INT64 = 21; */ NUMERIC_TO_INT64(21), /** * INT64_TO_TEXT = 22; */ INT64_TO_TEXT(22), /** * NUMERIC_TO_TEXT = 23; */ NUMERIC_TO_TEXT(23), /** * TIMESTAMP_TO_TEXT = 25; */ TIMESTAMP_TO_TEXT(25), /** * DATE_TO_TEXT = 26; */ DATE_TO_TEXT(26), /** * PARTY_TO_TEXT = 27; */ PARTY_TO_TEXT(27), /** * TEXT_TO_PARTY = 28; */ TEXT_TO_PARTY(28), /** * TEXT_TO_INT64 = 29; */ TEXT_TO_INT64(29), /** * TEXT_TO_NUMERIC = 30; */ TEXT_TO_NUMERIC(30), /** * CONTRACT_ID_TO_TEXT = 31; */ CONTRACT_ID_TO_TEXT(31), /** * SHA256_TEXT = 32; */ SHA256_TEXT(32), /** * EXPLODE_TEXT = 33; */ EXPLODE_TEXT(33), /** * APPEND_TEXT = 34; */ APPEND_TEXT(34), /** * IMPLODE_TEXT = 35; */ IMPLODE_TEXT(35), /** * CODE_POINTS_TO_TEXT = 36; */ CODE_POINTS_TO_TEXT(36), /** * TEXT_TO_CODE_POINTS = 37; */ TEXT_TO_CODE_POINTS(37), /** * DATE_TO_UNIX_DAYS = 38; */ DATE_TO_UNIX_DAYS(38), /** * UNIX_DAYS_TO_DATE = 39; */ UNIX_DAYS_TO_DATE(39), /** * TIMESTAMP_TO_UNIX_MICROSECONDS = 40; */ TIMESTAMP_TO_UNIX_MICROSECONDS(40), /** * UNIX_MICROSECONDS_TO_TIMESTAMP = 41; */ UNIX_MICROSECONDS_TO_TIMESTAMP(41), /** * COERCE_CONTRACT_ID = 42; */ COERCE_CONTRACT_ID(42), /** * FOLDL = 43; */ FOLDL(43), /** * FOLDR = 44; */ FOLDR(44), /** * EQUAL_LIST = 45; */ EQUAL_LIST(45), /** * GENMAP_EMPTY = 52; */ GENMAP_EMPTY(52), /** * GENMAP_INSERT = 53; */ GENMAP_INSERT(53), /** * GENMAP_LOOKUP = 54; */ GENMAP_LOOKUP(54), /** * GENMAP_DELETE = 55; */ GENMAP_DELETE(55), /** * GENMAP_KEYS = 56; */ GENMAP_KEYS(56), /** * GENMAP_VALUES = 57; */ GENMAP_VALUES(57), /** * GENMAP_SIZE = 58; */ GENMAP_SIZE(58), /** * ANY_EXCEPTION_MESSAGE = 59; */ ANY_EXCEPTION_MESSAGE(59), /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_EMPTY = 1001; */ TEXTMAP_EMPTY(1001), /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_INSERT = 1002; */ TEXTMAP_INSERT(1002), /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_LOOKUP = 1003; */ TEXTMAP_LOOKUP(1003), /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_DELETE = 1004; */ TEXTMAP_DELETE(1004), /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_TO_LIST = 1005; */ TEXTMAP_TO_LIST(1005), /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_SIZE = 1006; */ TEXTMAP_SIZE(1006), /** *
     * *Available in versions >= 2.dev*
     * 
* * SCALE_BIGNUMERIC = 2001; */ SCALE_BIGNUMERIC(2001), /** *
     * *Available in versions >= 2.dev*
     * 
* * PRECISION_BIGNUMERIC = 2002; */ PRECISION_BIGNUMERIC(2002), /** *
     * *Available in versions >= 2.dev*
     * 
* * ADD_BIGNUMERIC = 2003; */ ADD_BIGNUMERIC(2003), /** *
     * *Available in versions >= 2.dev*
     * 
* * SUB_BIGNUMERIC = 2004; */ SUB_BIGNUMERIC(2004), /** *
     * *Available in versions >= 2.dev*
     * 
* * MUL_BIGNUMERIC = 2005; */ MUL_BIGNUMERIC(2005), /** *
     * *Available in versions >= 2.dev*
     * 
* * DIV_BIGNUMERIC = 2006; */ DIV_BIGNUMERIC(2006), /** *
     * *Available in versions >= 2.dev*
     * 
* * SHIFT_RIGHT_BIGNUMERIC = 2007; */ SHIFT_RIGHT_BIGNUMERIC(2007), /** *
     * *Available in versions >= 2.dev*
     * 
* * BIGNUMERIC_TO_NUMERIC = 2008; */ BIGNUMERIC_TO_NUMERIC(2008), /** *
     * *Available in versions >= 2.dev*
     * 
* * NUMERIC_TO_BIGNUMERIC = 2009; */ NUMERIC_TO_BIGNUMERIC(2009), /** *
     * *Available in versions >= 2.dev*
     * 
* * BIGNUMERIC_TO_TEXT = 2010; */ BIGNUMERIC_TO_TEXT(2010), /** *
     * *Available in versions >= 2.dev*
     * 
* * TYPE_REP_TYCON_NAME = 3011; */ TYPE_REP_TYCON_NAME(3011), UNRECOGNIZED(-1), ; /** * TRACE = 0; */ public static final int TRACE_VALUE = 0; /** * ERROR = 1; */ public static final int ERROR_VALUE = 1; /** * EQUAL = 2; */ public static final int EQUAL_VALUE = 2; /** * LESS_EQ = 3; */ public static final int LESS_EQ_VALUE = 3; /** * LESS = 4; */ public static final int LESS_VALUE = 4; /** * GREATER_EQ = 5; */ public static final int GREATER_EQ_VALUE = 5; /** * GREATER = 6; */ public static final int GREATER_VALUE = 6; /** * 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; /** * ADD_NUMERIC = 13; */ public static final int ADD_NUMERIC_VALUE = 13; /** * SUB_NUMERIC = 14; */ public static final int SUB_NUMERIC_VALUE = 14; /** * MUL_NUMERIC = 15; */ public static final int MUL_NUMERIC_VALUE = 15; /** * DIV_NUMERIC = 16; */ public static final int DIV_NUMERIC_VALUE = 16; /** * ROUND_NUMERIC = 17; */ public static final int ROUND_NUMERIC_VALUE = 17; /** * CAST_NUMERIC = 18; */ public static final int CAST_NUMERIC_VALUE = 18; /** * SHIFT_NUMERIC = 19; */ public static final int SHIFT_NUMERIC_VALUE = 19; /** * INT64_TO_NUMERIC = 20; */ public static final int INT64_TO_NUMERIC_VALUE = 20; /** * NUMERIC_TO_INT64 = 21; */ public static final int NUMERIC_TO_INT64_VALUE = 21; /** * INT64_TO_TEXT = 22; */ public static final int INT64_TO_TEXT_VALUE = 22; /** * NUMERIC_TO_TEXT = 23; */ public static final int NUMERIC_TO_TEXT_VALUE = 23; /** * TIMESTAMP_TO_TEXT = 25; */ public static final int TIMESTAMP_TO_TEXT_VALUE = 25; /** * DATE_TO_TEXT = 26; */ public static final int DATE_TO_TEXT_VALUE = 26; /** * PARTY_TO_TEXT = 27; */ public static final int PARTY_TO_TEXT_VALUE = 27; /** * TEXT_TO_PARTY = 28; */ public static final int TEXT_TO_PARTY_VALUE = 28; /** * TEXT_TO_INT64 = 29; */ public static final int TEXT_TO_INT64_VALUE = 29; /** * TEXT_TO_NUMERIC = 30; */ public static final int TEXT_TO_NUMERIC_VALUE = 30; /** * CONTRACT_ID_TO_TEXT = 31; */ public static final int CONTRACT_ID_TO_TEXT_VALUE = 31; /** * SHA256_TEXT = 32; */ public static final int SHA256_TEXT_VALUE = 32; /** * EXPLODE_TEXT = 33; */ public static final int EXPLODE_TEXT_VALUE = 33; /** * APPEND_TEXT = 34; */ public static final int APPEND_TEXT_VALUE = 34; /** * IMPLODE_TEXT = 35; */ public static final int IMPLODE_TEXT_VALUE = 35; /** * CODE_POINTS_TO_TEXT = 36; */ public static final int CODE_POINTS_TO_TEXT_VALUE = 36; /** * TEXT_TO_CODE_POINTS = 37; */ public static final int TEXT_TO_CODE_POINTS_VALUE = 37; /** * DATE_TO_UNIX_DAYS = 38; */ public static final int DATE_TO_UNIX_DAYS_VALUE = 38; /** * UNIX_DAYS_TO_DATE = 39; */ public static final int UNIX_DAYS_TO_DATE_VALUE = 39; /** * TIMESTAMP_TO_UNIX_MICROSECONDS = 40; */ public static final int TIMESTAMP_TO_UNIX_MICROSECONDS_VALUE = 40; /** * UNIX_MICROSECONDS_TO_TIMESTAMP = 41; */ public static final int UNIX_MICROSECONDS_TO_TIMESTAMP_VALUE = 41; /** * COERCE_CONTRACT_ID = 42; */ public static final int COERCE_CONTRACT_ID_VALUE = 42; /** * FOLDL = 43; */ public static final int FOLDL_VALUE = 43; /** * FOLDR = 44; */ public static final int FOLDR_VALUE = 44; /** * EQUAL_LIST = 45; */ public static final int EQUAL_LIST_VALUE = 45; /** * GENMAP_EMPTY = 52; */ public static final int GENMAP_EMPTY_VALUE = 52; /** * GENMAP_INSERT = 53; */ public static final int GENMAP_INSERT_VALUE = 53; /** * GENMAP_LOOKUP = 54; */ public static final int GENMAP_LOOKUP_VALUE = 54; /** * GENMAP_DELETE = 55; */ public static final int GENMAP_DELETE_VALUE = 55; /** * GENMAP_KEYS = 56; */ public static final int GENMAP_KEYS_VALUE = 56; /** * GENMAP_VALUES = 57; */ public static final int GENMAP_VALUES_VALUE = 57; /** * GENMAP_SIZE = 58; */ public static final int GENMAP_SIZE_VALUE = 58; /** * ANY_EXCEPTION_MESSAGE = 59; */ public static final int ANY_EXCEPTION_MESSAGE_VALUE = 59; /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_EMPTY = 1001; */ public static final int TEXTMAP_EMPTY_VALUE = 1001; /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_INSERT = 1002; */ public static final int TEXTMAP_INSERT_VALUE = 1002; /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_LOOKUP = 1003; */ public static final int TEXTMAP_LOOKUP_VALUE = 1003; /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_DELETE = 1004; */ public static final int TEXTMAP_DELETE_VALUE = 1004; /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_TO_LIST = 1005; */ public static final int TEXTMAP_TO_LIST_VALUE = 1005; /** *
     * *Available in versions >= 2.dev*
     * 
* * TEXTMAP_SIZE = 1006; */ public static final int TEXTMAP_SIZE_VALUE = 1006; /** *
     * *Available in versions >= 2.dev*
     * 
* * SCALE_BIGNUMERIC = 2001; */ public static final int SCALE_BIGNUMERIC_VALUE = 2001; /** *
     * *Available in versions >= 2.dev*
     * 
* * PRECISION_BIGNUMERIC = 2002; */ public static final int PRECISION_BIGNUMERIC_VALUE = 2002; /** *
     * *Available in versions >= 2.dev*
     * 
* * ADD_BIGNUMERIC = 2003; */ public static final int ADD_BIGNUMERIC_VALUE = 2003; /** *
     * *Available in versions >= 2.dev*
     * 
* * SUB_BIGNUMERIC = 2004; */ public static final int SUB_BIGNUMERIC_VALUE = 2004; /** *
     * *Available in versions >= 2.dev*
     * 
* * MUL_BIGNUMERIC = 2005; */ public static final int MUL_BIGNUMERIC_VALUE = 2005; /** *
     * *Available in versions >= 2.dev*
     * 
* * DIV_BIGNUMERIC = 2006; */ public static final int DIV_BIGNUMERIC_VALUE = 2006; /** *
     * *Available in versions >= 2.dev*
     * 
* * SHIFT_RIGHT_BIGNUMERIC = 2007; */ public static final int SHIFT_RIGHT_BIGNUMERIC_VALUE = 2007; /** *
     * *Available in versions >= 2.dev*
     * 
* * BIGNUMERIC_TO_NUMERIC = 2008; */ public static final int BIGNUMERIC_TO_NUMERIC_VALUE = 2008; /** *
     * *Available in versions >= 2.dev*
     * 
* * NUMERIC_TO_BIGNUMERIC = 2009; */ public static final int NUMERIC_TO_BIGNUMERIC_VALUE = 2009; /** *
     * *Available in versions >= 2.dev*
     * 
* * BIGNUMERIC_TO_TEXT = 2010; */ public static final int BIGNUMERIC_TO_TEXT_VALUE = 2010; /** *
     * *Available in versions >= 2.dev*
     * 
* * TYPE_REP_TYCON_NAME = 3011; */ public static final int TYPE_REP_TYCON_NAME_VALUE = 3011; 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 TRACE; case 1: return ERROR; case 2: return EQUAL; case 3: return LESS_EQ; case 4: return LESS; case 5: return GREATER_EQ; case 6: return GREATER; 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 13: return ADD_NUMERIC; case 14: return SUB_NUMERIC; case 15: return MUL_NUMERIC; case 16: return DIV_NUMERIC; case 17: return ROUND_NUMERIC; case 18: return CAST_NUMERIC; case 19: return SHIFT_NUMERIC; case 20: return INT64_TO_NUMERIC; case 21: return NUMERIC_TO_INT64; case 22: return INT64_TO_TEXT; case 23: return NUMERIC_TO_TEXT; case 25: return TIMESTAMP_TO_TEXT; case 26: return DATE_TO_TEXT; case 27: return PARTY_TO_TEXT; case 28: return TEXT_TO_PARTY; case 29: return TEXT_TO_INT64; case 30: return TEXT_TO_NUMERIC; case 31: return CONTRACT_ID_TO_TEXT; case 32: return SHA256_TEXT; case 33: return EXPLODE_TEXT; case 34: return APPEND_TEXT; case 35: return IMPLODE_TEXT; case 36: return CODE_POINTS_TO_TEXT; case 37: return TEXT_TO_CODE_POINTS; case 38: return DATE_TO_UNIX_DAYS; case 39: return UNIX_DAYS_TO_DATE; case 40: return TIMESTAMP_TO_UNIX_MICROSECONDS; case 41: return UNIX_MICROSECONDS_TO_TIMESTAMP; case 42: return COERCE_CONTRACT_ID; case 43: return FOLDL; case 44: return FOLDR; case 45: return EQUAL_LIST; case 52: return GENMAP_EMPTY; case 53: return GENMAP_INSERT; case 54: return GENMAP_LOOKUP; case 55: return GENMAP_DELETE; case 56: return GENMAP_KEYS; case 57: return GENMAP_VALUES; case 58: return GENMAP_SIZE; case 59: return ANY_EXCEPTION_MESSAGE; case 1001: return TEXTMAP_EMPTY; case 1002: return TEXTMAP_INSERT; case 1003: return TEXTMAP_LOOKUP; case 1004: return TEXTMAP_DELETE; case 1005: return TEXTMAP_TO_LIST; case 1006: return TEXTMAP_SIZE; case 2001: return SCALE_BIGNUMERIC; case 2002: return PRECISION_BIGNUMERIC; case 2003: return ADD_BIGNUMERIC; case 2004: return SUB_BIGNUMERIC; case 2005: return MUL_BIGNUMERIC; case 2006: return DIV_BIGNUMERIC; case 2007: return SHIFT_RIGHT_BIGNUMERIC; case 2008: return BIGNUMERIC_TO_NUMERIC; case 2009: return NUMERIC_TO_BIGNUMERIC; case 2010: return BIGNUMERIC_TO_TEXT; case 3011: 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.DamlLf2.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_2.BuiltinFunction) } public interface UnitOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Unit) com.google.protobuf.MessageOrBuilder { } /** *
   * Canonical encoding in one-ofs for cases that carry no meaningful
   * values.
   * 
* * Protobuf type {@code daml_lf_2.Unit} */ public static final class Unit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Unit.class, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Unit other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Unit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Unit) com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Unit.class, com.daml.daml_lf_dev.DamlLf2.Unit.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Unit_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit build() { com.daml.daml_lf_dev.DamlLf2.Unit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit buildPartial() { com.daml.daml_lf_dev.DamlLf2.Unit result = new com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Unit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Unit other) { if (other == com.daml.daml_lf_dev.DamlLf2.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_2.Unit) } // @@protoc_insertion_point(class_scope:daml_lf_2.Unit) private static final com.daml.daml_lf_dev.DamlLf2.Unit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Unit(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageRefOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.PackageRef) com.google.protobuf.MessageOrBuilder { /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_2.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_2.Unit self = 1; * @return The self. */ com.daml.daml_lf_dev.DamlLf2.Unit getSelf(); /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_2.Unit self = 1; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getSelfOrBuilder(); /** *
     * 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.DamlLf2.PackageRef.SumCase getSumCase(); } /** *
   * Package reference
   * 
* * Protobuf type {@code daml_lf_2.PackageRef} */ public static final class PackageRef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_PackageRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_PackageRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.PackageRef.class, com.daml.daml_lf_dev.DamlLf2.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_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 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_2.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_2.Unit self = 1; * @return The self. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getSelf() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** *
     * Reference to the package of which the package this reference
     * belongs.
     * 
* * .daml_lf_2.Unit self = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getSelfOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } 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.DamlLf2.Unit) 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.DamlLf2.Unit) 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.DamlLf2.PackageRef)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.PackageRef other = (com.daml.daml_lf_dev.DamlLf2.PackageRef) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (!getSelf() .equals(other.getSelf())) 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 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.DamlLf2.PackageRef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageRef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.PackageRef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.PackageRef) com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_PackageRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_PackageRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.PackageRef.class, com.daml.daml_lf_dev.DamlLf2.PackageRef.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_PackageRef_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageRef getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.PackageRef.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageRef build() { com.daml.daml_lf_dev.DamlLf2.PackageRef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageRef buildPartial() { com.daml.daml_lf_dev.DamlLf2.PackageRef result = new com.daml.daml_lf_dev.DamlLf2.PackageRef(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.PackageRef result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageRef) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.PackageRef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.PackageRef other) { if (other == com.daml.daml_lf_dev.DamlLf2.PackageRef.getDefaultInstance()) return this; switch (other.getSumCase()) { case SELF: { mergeSelf(other.getSelf()); 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 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.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> selfBuilder_; /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_2.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_2.Unit self = 1; * @return The self. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getSelf() { if (selfBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return selfBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_2.Unit self = 1; */ public Builder setSelf(com.daml.daml_lf_dev.DamlLf2.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_2.Unit self = 1; */ public Builder setSelf( com.daml.daml_lf_dev.DamlLf2.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_2.Unit self = 1; */ public Builder mergeSelf(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (selfBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Unit self = 1; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getSelfBuilder() { return getSelfFieldBuilder().getBuilder(); } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_2.Unit self = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getSelfOrBuilder() { if ((sumCase_ == 1) && (selfBuilder_ != null)) { return selfBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * Reference to the package of which the package this reference
       * belongs.
       * 
* * .daml_lf_2.Unit self = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getSelfFieldBuilder() { if (selfBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged(); return selfBuilder_; } /** *
       * 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_2.PackageRef) } // @@protoc_insertion_point(class_scope:daml_lf_2.PackageRef) private static final com.daml.daml_lf_dev.DamlLf2.PackageRef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.PackageRef(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageRef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModuleRefOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.ModuleRef) com.google.protobuf.MessageOrBuilder { /** *
     * package where the module is defined.
     * 
* * .daml_lf_2.PackageRef package_ref = 1; * @return Whether the packageRef field is set. */ boolean hasPackageRef(); /** *
     * package where the module is defined.
     * 
* * .daml_lf_2.PackageRef package_ref = 1; * @return The packageRef. */ com.daml.daml_lf_dev.DamlLf2.PackageRef getPackageRef(); /** *
     * package where the module is defined.
     * 
* * .daml_lf_2.PackageRef package_ref = 1; */ com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder getPackageRefOrBuilder(); /** * int32 module_name_interned_dname = 2; * @return The moduleNameInternedDname. */ int getModuleNameInternedDname(); } /** *
   * A fully qualified module reference
   * 
* * Protobuf type {@code daml_lf_2.ModuleRef} */ public static final class ModuleRef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_ModuleRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ModuleRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.ModuleRef.class, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder.class); } private int bitField0_; public static final int PACKAGE_REF_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.PackageRef packageRef_; /** *
     * package where the module is defined.
     * 
* * .daml_lf_2.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_2.PackageRef package_ref = 1; * @return The packageRef. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageRef getPackageRef() { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageRef.getDefaultInstance() : packageRef_; } /** *
     * package where the module is defined.
     * 
* * .daml_lf_2.PackageRef package_ref = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder getPackageRefOrBuilder() { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageRef.getDefaultInstance() : packageRef_; } public static final int MODULE_NAME_INTERNED_DNAME_FIELD_NUMBER = 2; private int moduleNameInternedDname_ = 0; /** * int32 module_name_interned_dname = 2; * @return The moduleNameInternedDname. */ @java.lang.Override public int getModuleNameInternedDname() { return moduleNameInternedDname_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (moduleNameInternedDname_ != 0) { output.writeInt32(2, moduleNameInternedDname_); } 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 (moduleNameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, moduleNameInternedDname_); } 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.DamlLf2.ModuleRef)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.ModuleRef other = (com.daml.daml_lf_dev.DamlLf2.ModuleRef) obj; if (hasPackageRef() != other.hasPackageRef()) return false; if (hasPackageRef()) { if (!getPackageRef() .equals(other.getPackageRef())) return false; } if (getModuleNameInternedDname() != other.getModuleNameInternedDname()) 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 (hasPackageRef()) { hash = (37 * hash) + PACKAGE_REF_FIELD_NUMBER; hash = (53 * hash) + getPackageRef().hashCode(); } hash = (37 * hash) + MODULE_NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getModuleNameInternedDname(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.ModuleRef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ModuleRef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ModuleRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.ModuleRef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.ModuleRef) com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ModuleRef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ModuleRef_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.ModuleRef.class, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } moduleNameInternedDname_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ModuleRef_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef build() { com.daml.daml_lf_dev.DamlLf2.ModuleRef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef buildPartial() { com.daml.daml_lf_dev.DamlLf2.ModuleRef result = new com.daml.daml_lf_dev.DamlLf2.ModuleRef(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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; } if (((from_bitField0_ & 0x00000002) != 0)) { result.moduleNameInternedDname_ = moduleNameInternedDname_; } 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.DamlLf2.ModuleRef) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.ModuleRef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.ModuleRef other) { if (other == com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance()) return this; if (other.hasPackageRef()) { mergePackageRef(other.getPackageRef()); } if (other.getModuleNameInternedDname() != 0) { setModuleNameInternedDname(other.getModuleNameInternedDname()); } 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 16: { moduleNameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.PackageRef packageRef_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.PackageRef, com.daml.daml_lf_dev.DamlLf2.PackageRef.Builder, com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder> packageRefBuilder_; /** *
       * package where the module is defined.
       * 
* * .daml_lf_2.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_2.PackageRef package_ref = 1; * @return The packageRef. */ public com.daml.daml_lf_dev.DamlLf2.PackageRef getPackageRef() { if (packageRefBuilder_ == null) { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageRef.getDefaultInstance() : packageRef_; } else { return packageRefBuilder_.getMessage(); } } /** *
       * package where the module is defined.
       * 
* * .daml_lf_2.PackageRef package_ref = 1; */ public Builder setPackageRef(com.daml.daml_lf_dev.DamlLf2.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_2.PackageRef package_ref = 1; */ public Builder setPackageRef( com.daml.daml_lf_dev.DamlLf2.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_2.PackageRef package_ref = 1; */ public Builder mergePackageRef(com.daml.daml_lf_dev.DamlLf2.PackageRef value) { if (packageRefBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && packageRef_ != null && packageRef_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.PackageRef package_ref = 1; */ public com.daml.daml_lf_dev.DamlLf2.PackageRef.Builder getPackageRefBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPackageRefFieldBuilder().getBuilder(); } /** *
       * package where the module is defined.
       * 
* * .daml_lf_2.PackageRef package_ref = 1; */ public com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder getPackageRefOrBuilder() { if (packageRefBuilder_ != null) { return packageRefBuilder_.getMessageOrBuilder(); } else { return packageRef_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageRef.getDefaultInstance() : packageRef_; } } /** *
       * package where the module is defined.
       * 
* * .daml_lf_2.PackageRef package_ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.PackageRef, com.daml.daml_lf_dev.DamlLf2.PackageRef.Builder, com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder> getPackageRefFieldBuilder() { if (packageRefBuilder_ == null) { packageRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.PackageRef, com.daml.daml_lf_dev.DamlLf2.PackageRef.Builder, com.daml.daml_lf_dev.DamlLf2.PackageRefOrBuilder>( getPackageRef(), getParentForChildren(), isClean()); packageRef_ = null; } return packageRefBuilder_; } private int moduleNameInternedDname_ ; /** * int32 module_name_interned_dname = 2; * @return The moduleNameInternedDname. */ @java.lang.Override public int getModuleNameInternedDname() { return moduleNameInternedDname_; } /** * int32 module_name_interned_dname = 2; * @param value The moduleNameInternedDname to set. * @return This builder for chaining. */ public Builder setModuleNameInternedDname(int value) { moduleNameInternedDname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 module_name_interned_dname = 2; * @return This builder for chaining. */ public Builder clearModuleNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); moduleNameInternedDname_ = 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_2.ModuleRef) } // @@protoc_insertion_point(class_scope:daml_lf_2.ModuleRef) private static final com.daml.daml_lf_dev.DamlLf2.ModuleRef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.ModuleRef(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ModuleRef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeConNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.TypeConName) com.google.protobuf.MessageOrBuilder { /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ int getNameInternedDname(); } /** *
   * A fully qualified reference to a type constructor name.
   * 
* * Protobuf type {@code daml_lf_2.TypeConName} */ public static final class TypeConName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_TypeConName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeConName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TypeConName.class, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder.class); } private int bitField0_; public static final int MODULE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 2; private int nameInternedDname_ = 0; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @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()); } if (nameInternedDname_ != 0) { output.writeInt32(2, 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()); } if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, 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.DamlLf2.TypeConName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.TypeConName other = (com.daml.daml_lf_dev.DamlLf2.TypeConName) obj; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) 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(); } 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.DamlLf2.TypeConName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.TypeConName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.TypeConName) com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeConName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeConName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TypeConName.class, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } nameInternedDname_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeConName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName build() { com.daml.daml_lf_dev.DamlLf2.TypeConName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName buildPartial() { com.daml.daml_lf_dev.DamlLf2.TypeConName result = new com.daml.daml_lf_dev.DamlLf2.TypeConName(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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; } if (((from_bitField0_ & 0x00000002) != 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.DamlLf2.TypeConName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.TypeConName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.TypeConName other) { if (other == com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) return this; if (other.hasModule()) { mergeModule(other.getModule()); } 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 16: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder setModule( com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf2.ModuleRef value) { if (moduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private int nameInternedDname_ ; /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @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 = 2; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); 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_2.TypeConName) } // @@protoc_insertion_point(class_scope:daml_lf_2.TypeConName) private static final com.daml.daml_lf_dev.DamlLf2.TypeConName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.TypeConName(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeSynNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.TypeSynName) com.google.protobuf.MessageOrBuilder { /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule(); /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ int getNameInternedDname(); } /** *
   * A fully qualified reference to a type synonym name.
   * 
* * Protobuf type {@code daml_lf_2.TypeSynName} */ public static final class TypeSynName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_TypeSynName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeSynName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TypeSynName.class, com.daml.daml_lf_dev.DamlLf2.TypeSynName.Builder.class); } private int bitField0_; public static final int MODULE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the type is defined.
     * 
* * .daml_lf_2.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 2; private int nameInternedDname_ = 0; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @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()); } if (nameInternedDname_ != 0) { output.writeInt32(2, 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()); } if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, 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.DamlLf2.TypeSynName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.TypeSynName other = (com.daml.daml_lf_dev.DamlLf2.TypeSynName) obj; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) 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(); } 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.DamlLf2.TypeSynName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeSynName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeSynName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
     * 
* * Protobuf type {@code daml_lf_2.TypeSynName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.TypeSynName) com.daml.daml_lf_dev.DamlLf2.TypeSynNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeSynName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeSynName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TypeSynName.class, com.daml.daml_lf_dev.DamlLf2.TypeSynName.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } nameInternedDname_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeSynName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeSynName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.TypeSynName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeSynName build() { com.daml.daml_lf_dev.DamlLf2.TypeSynName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeSynName buildPartial() { com.daml.daml_lf_dev.DamlLf2.TypeSynName result = new com.daml.daml_lf_dev.DamlLf2.TypeSynName(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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; } if (((from_bitField0_ & 0x00000002) != 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.DamlLf2.TypeSynName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.TypeSynName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.TypeSynName other) { if (other == com.daml.daml_lf_dev.DamlLf2.TypeSynName.getDefaultInstance()) return this; if (other.hasModule()) { mergeModule(other.getModule()); } 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 16: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder setModule( com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf2.ModuleRef value) { if (moduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the type is defined.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private int nameInternedDname_ ; /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @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 = 2; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); 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_2.TypeSynName) } // @@protoc_insertion_point(class_scope:daml_lf_2.TypeSynName) private static final com.daml.daml_lf_dev.DamlLf2.TypeSynName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.TypeSynName(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeSynName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.ValName) com.google.protobuf.MessageOrBuilder { /** *
     * Module where the value is defined
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * Module where the value is defined
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule(); /** *
     * Module where the value is defined
     * 
* * .daml_lf_2.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder(); /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ int getNameInternedDname(); } /** *
   * A fully qualified reference to a value definition.
   * 
* * Protobuf type {@code daml_lf_2.ValName} */ public static final class ValName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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() { } @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.DamlLf2.internal_static_daml_lf_2_ValName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ValName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.ValName.class, com.daml.daml_lf_dev.DamlLf2.ValName.Builder.class); } private int bitField0_; public static final int MODULE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; /** *
     * Module where the value is defined
     * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } /** *
     * Module where the value is defined
     * 
* * .daml_lf_2.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 2; private int nameInternedDname_ = 0; /** *
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @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()); } if (nameInternedDname_ != 0) { output.writeInt32(2, 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()); } if (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, 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.DamlLf2.ValName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.ValName other = (com.daml.daml_lf_dev.DamlLf2.ValName) obj; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) 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(); } 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.DamlLf2.ValName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ValName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ValName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.ValName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.ValName) com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ValName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ValName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.ValName.class, com.daml.daml_lf_dev.DamlLf2.ValName.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } nameInternedDname_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_ValName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValName build() { com.daml.daml_lf_dev.DamlLf2.ValName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValName buildPartial() { com.daml.daml_lf_dev.DamlLf2.ValName result = new com.daml.daml_lf_dev.DamlLf2.ValName(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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)) { 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.DamlLf2.ValName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.ValName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.ValName other) { if (other == com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance()) return this; if (other.hasModule()) { mergeModule(other.getModule()); } 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 16: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> moduleBuilder_; /** *
       * Module where the value is defined
       * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * Module where the value is defined
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder setModule( com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf2.ModuleRef value) { if (moduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * Module where the value is defined
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } } /** *
       * Module where the value is defined
       * 
* * .daml_lf_2.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private int nameInternedDname_ ; /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @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 = 2; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); 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_2.ValName) } // @@protoc_insertion_point(class_scope:daml_lf_2.ValName) private static final com.daml.daml_lf_dev.DamlLf2.ValName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.ValName(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ValName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldWithTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.FieldWithType) com.google.protobuf.MessageOrBuilder { /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
     * Type associated
     * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** *
     * Type associated
     * 
* * .daml_lf_2.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
     * Type associated
     * 
* * .daml_lf_2.Type type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** *
   * A field name definition in a record or a variant associated with a type.
   * 
* * Protobuf type {@code daml_lf_2.FieldWithType} */ public static final class FieldWithType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_FieldWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FieldWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.FieldWithType.class, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder.class); } private int bitField0_; public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; private int fieldInternedStr_ = 0; /** *
     * *Must a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } public static final int TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
     * Type associated
     * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Type associated
     * 
* * .daml_lf_2.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
     * Type associated
     * 
* * .daml_lf_2.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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(2, getType()); } if (fieldInternedStr_ != 0) { output.writeInt32(3, fieldInternedStr_); } 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(2, getType()); } if (fieldInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, fieldInternedStr_); } 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.DamlLf2.FieldWithType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.FieldWithType other = (com.daml.daml_lf_dev.DamlLf2.FieldWithType) obj; if (getFieldInternedStr() != other.getFieldInternedStr()) 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) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); 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.DamlLf2.FieldWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.FieldWithType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.FieldWithType) com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FieldWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FieldWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.FieldWithType.class, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; fieldInternedStr_ = 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.DamlLf2.internal_static_daml_lf_2_FieldWithType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.FieldWithType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithType build() { com.daml.daml_lf_dev.DamlLf2.FieldWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithType buildPartial() { com.daml.daml_lf_dev.DamlLf2.FieldWithType result = new com.daml.daml_lf_dev.DamlLf2.FieldWithType(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.FieldWithType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldInternedStr_ = fieldInternedStr_; } 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.DamlLf2.FieldWithType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.FieldWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.FieldWithType other) { if (other == com.daml.daml_lf_dev.DamlLf2.FieldWithType.getDefaultInstance()) return this; if (other.getFieldInternedStr() != 0) { setFieldInternedStr(other.getFieldInternedStr()); } 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 18: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { fieldInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; 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 int fieldInternedStr_ ; /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } /** *
       * *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) { fieldInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *Must a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); fieldInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
       * Type associated
       * 
* * .daml_lf_2.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType) } // @@protoc_insertion_point(class_scope:daml_lf_2.FieldWithType) private static final com.daml.daml_lf_dev.DamlLf2.FieldWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.FieldWithType(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VarWithTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.VarWithType) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ int getVarInternedStr(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_2.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
     * Type of the bound variable
     * 
* * .daml_lf_2.Type type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** *
   * Binder associated with a type.
   * 
* * Protobuf type {@code daml_lf_2.VarWithType} */ public static final class VarWithType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_VarWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_VarWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.VarWithType.class, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder.class); } private int bitField0_; public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; private int varInternedStr_ = 0; /** *
     * *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 TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
     * Type of the bound variable
     * 
* * .daml_lf_2.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_2.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
     * Type of the bound variable
     * 
* * .daml_lf_2.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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(2, getType()); } if (varInternedStr_ != 0) { output.writeInt32(3, varInternedStr_); } 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(2, getType()); } if (varInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, varInternedStr_); } 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.DamlLf2.VarWithType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.VarWithType other = (com.daml.daml_lf_dev.DamlLf2.VarWithType) obj; if (getVarInternedStr() != other.getVarInternedStr()) 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) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); 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.DamlLf2.VarWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.VarWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.VarWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.VarWithType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.VarWithType) com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_VarWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_VarWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.VarWithType.class, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; varInternedStr_ = 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.DamlLf2.internal_static_daml_lf_2_VarWithType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithType build() { com.daml.daml_lf_dev.DamlLf2.VarWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithType buildPartial() { com.daml.daml_lf_dev.DamlLf2.VarWithType result = new com.daml.daml_lf_dev.DamlLf2.VarWithType(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.VarWithType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.varInternedStr_ = varInternedStr_; } 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.DamlLf2.VarWithType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.VarWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.VarWithType other) { if (other == com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance()) return this; if (other.getVarInternedStr() != 0) { setVarInternedStr(other.getVarInternedStr()); } 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 18: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { varInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; 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 int varInternedStr_ ; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { return varInternedStr_; } /** *
       * *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_ |= 0x00000001; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); varInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
       * Type of the bound variable
       * 
* * .daml_lf_2.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType) } // @@protoc_insertion_point(class_scope:daml_lf_2.VarWithType) private static final com.daml.daml_lf_dev.DamlLf2.VarWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.VarWithType(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.VarWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeVarWithKindOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.TypeVarWithKind) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ int getVarInternedStr(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_2.Kind kind = 2; * @return Whether the kind field is set. */ boolean hasKind(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_2.Kind kind = 2; * @return The kind. */ com.daml.daml_lf_dev.DamlLf2.Kind getKind(); /** *
     * Kind of the bound variable
     * 
* * .daml_lf_2.Kind kind = 2; */ com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getKindOrBuilder(); } /** *
   * Type binder associated with a kind.
   * 
* * Protobuf type {@code daml_lf_2.TypeVarWithKind} */ public static final class TypeVarWithKind extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_TypeVarWithKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeVarWithKind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.class, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder.class); } private int bitField0_; public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; private int varInternedStr_ = 0; /** *
     * *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 KIND_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Kind kind_; /** *
     * Kind of the bound variable
     * 
* * .daml_lf_2.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_2.Kind kind = 2; * @return The kind. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind getKind() { return kind_ == null ? com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance() : kind_; } /** *
     * Kind of the bound variable
     * 
* * .daml_lf_2.Kind kind = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getKindOrBuilder() { return kind_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getKind()); } if (varInternedStr_ != 0) { output.writeInt32(3, varInternedStr_); } 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(2, getKind()); } if (varInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, varInternedStr_); } 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.DamlLf2.TypeVarWithKind)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind other = (com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind) obj; if (getVarInternedStr() != other.getVarInternedStr()) return false; if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind() .equals(other.getKind())) 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) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.TypeVarWithKind} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.TypeVarWithKind) com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeVarWithKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeVarWithKind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.class, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; varInternedStr_ = 0; kind_ = null; if (kindBuilder_ != null) { kindBuilder_.dispose(); kindBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TypeVarWithKind_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind build() { com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind buildPartial() { com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind result = new com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.varInternedStr_ = varInternedStr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.kind_ = kindBuilder_ == null ? kind_ : kindBuilder_.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.DamlLf2.TypeVarWithKind) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind other) { if (other == com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()) return this; if (other.getVarInternedStr() != 0) { setVarInternedStr(other.getVarInternedStr()); } if (other.hasKind()) { mergeKind(other.getKind()); } 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: { input.readMessage( getKindFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { varInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; 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 int varInternedStr_ ; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { return varInternedStr_; } /** *
       * *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_ |= 0x00000001; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); varInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Kind kind_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder> kindBuilder_; /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; * @return The kind. */ public com.daml.daml_lf_dev.DamlLf2.Kind getKind() { if (kindBuilder_ == null) { return kind_ == null ? com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance() : kind_; } else { return kindBuilder_.getMessage(); } } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ public Builder setKind(com.daml.daml_lf_dev.DamlLf2.Kind value) { if (kindBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; } else { kindBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ public Builder setKind( com.daml.daml_lf_dev.DamlLf2.Kind.Builder builderForValue) { if (kindBuilder_ == null) { kind_ = builderForValue.build(); } else { kindBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ public Builder mergeKind(com.daml.daml_lf_dev.DamlLf2.Kind value) { if (kindBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && kind_ != null && kind_ != com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance()) { getKindBuilder().mergeFrom(value); } else { kind_ = value; } } else { kindBuilder_.mergeFrom(value); } if (kind_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000002); kind_ = null; if (kindBuilder_ != null) { kindBuilder_.dispose(); kindBuilder_ = null; } onChanged(); return this; } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ public com.daml.daml_lf_dev.DamlLf2.Kind.Builder getKindBuilder() { bitField0_ |= 0x00000002; onChanged(); return getKindFieldBuilder().getBuilder(); } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ public com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getKindOrBuilder() { if (kindBuilder_ != null) { return kindBuilder_.getMessageOrBuilder(); } else { return kind_ == null ? com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance() : kind_; } } /** *
       * Kind of the bound variable
       * 
* * .daml_lf_2.Kind kind = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder> getKindFieldBuilder() { if (kindBuilder_ == null) { kindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind) } // @@protoc_insertion_point(class_scope:daml_lf_2.TypeVarWithKind) private static final com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldWithExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.FieldWithExpr) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
     * Value of the field
     * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
     * Value of the field
     * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
     * Value of the field
     * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
   * A field in a record with its value.
   * 
* * Protobuf type {@code daml_lf_2.FieldWithExpr} */ public static final class FieldWithExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_FieldWithExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FieldWithExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.class, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder.class); } private int bitField0_; public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3; private int fieldInternedStr_ = 0; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
     * Value of the field
     * 
* * .daml_lf_2.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_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
     * Value of the field
     * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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(2, getExpr()); } if (fieldInternedStr_ != 0) { output.writeInt32(3, fieldInternedStr_); } 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(2, getExpr()); } if (fieldInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, fieldInternedStr_); } 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.DamlLf2.FieldWithExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.FieldWithExpr other = (com.daml.daml_lf_dev.DamlLf2.FieldWithExpr) obj; if (getFieldInternedStr() != other.getFieldInternedStr()) 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(); hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); 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.DamlLf2.FieldWithExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.FieldWithExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.FieldWithExpr) com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FieldWithExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FieldWithExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.class, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; fieldInternedStr_ = 0; 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.DamlLf2.internal_static_daml_lf_2_FieldWithExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr build() { com.daml.daml_lf_dev.DamlLf2.FieldWithExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr buildPartial() { com.daml.daml_lf_dev.DamlLf2.FieldWithExpr result = new com.daml.daml_lf_dev.DamlLf2.FieldWithExpr(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.FieldWithExpr result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldInternedStr_ = fieldInternedStr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 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.DamlLf2.FieldWithExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.FieldWithExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.FieldWithExpr other) { if (other == com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.getDefaultInstance()) return this; if (other.getFieldInternedStr() != 0) { setFieldInternedStr(other.getFieldInternedStr()); } 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 18: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { fieldInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; 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 int fieldInternedStr_ ; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } /** *
       * *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) { fieldInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 3; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); fieldInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
       * Value of the field
       * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr) } // @@protoc_insertion_point(class_scope:daml_lf_2.FieldWithExpr) private static final com.daml.daml_lf_dev.DamlLf2.FieldWithExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.FieldWithExpr(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BindingOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Binding) com.google.protobuf.MessageOrBuilder { /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_2.VarWithType binder = 1; * @return Whether the binder field is set. */ boolean hasBinder(); /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_2.VarWithType binder = 1; * @return The binder. */ com.daml.daml_lf_dev.DamlLf2.VarWithType getBinder(); /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_2.VarWithType binder = 1; */ com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getBinderOrBuilder(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_2.Expr bound = 2; * @return Whether the bound field is set. */ boolean hasBound(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_2.Expr bound = 2; * @return The bound. */ com.daml.daml_lf_dev.DamlLf2.Expr getBound(); /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_2.Expr bound = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBoundOrBuilder(); } /** *
   * A binding of a typed binder to an expression
   * 
* * Protobuf type {@code daml_lf_2.Binding} */ public static final class Binding extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Binding.class, com.daml.daml_lf_dev.DamlLf2.Binding.Builder.class); } private int bitField0_; public static final int BINDER_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.VarWithType binder_; /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_2.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_2.VarWithType binder = 1; * @return The binder. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithType getBinder() { return binder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : binder_; } /** *
     * The binder (expression variable and type)
     * 
* * .daml_lf_2.VarWithType binder = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getBinderOrBuilder() { return binder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : binder_; } public static final int BOUND_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr bound_; /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_2.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_2.Expr bound = 2; * @return The bound. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBound() { return bound_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : bound_; } /** *
     * The value to which the variable is bound.
     * 
* * .daml_lf_2.Expr bound = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBoundOrBuilder() { return bound_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Binding other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Binding} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Binding) com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Binding.class, com.daml.daml_lf_dev.DamlLf2.Binding.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Binding_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Binding getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Binding.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Binding build() { com.daml.daml_lf_dev.DamlLf2.Binding result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Binding buildPartial() { com.daml.daml_lf_dev.DamlLf2.Binding result = new com.daml.daml_lf_dev.DamlLf2.Binding(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Binding)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Binding other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.VarWithType binder_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder> binderBuilder_; /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_2.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_2.VarWithType binder = 1; * @return The binder. */ public com.daml.daml_lf_dev.DamlLf2.VarWithType getBinder() { if (binderBuilder_ == null) { return binder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : binder_; } else { return binderBuilder_.getMessage(); } } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_2.VarWithType binder = 1; */ public Builder setBinder(com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType binder = 1; */ public Builder setBinder( com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType binder = 1; */ public Builder mergeBinder(com.daml.daml_lf_dev.DamlLf2.VarWithType value) { if (binderBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && binder_ != null && binder_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.VarWithType binder = 1; */ public com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder getBinderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBinderFieldBuilder().getBuilder(); } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_2.VarWithType binder = 1; */ public com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getBinderOrBuilder() { if (binderBuilder_ != null) { return binderBuilder_.getMessageOrBuilder(); } else { return binder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : binder_; } } /** *
       * The binder (expression variable and type)
       * 
* * .daml_lf_2.VarWithType binder = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder> getBinderFieldBuilder() { if (binderBuilder_ == null) { binderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder>( getBinder(), getParentForChildren(), isClean()); binder_ = null; } return binderBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr bound_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> boundBuilder_; /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_2.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_2.Expr bound = 2; * @return The bound. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBound() { if (boundBuilder_ == null) { return bound_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : bound_; } else { return boundBuilder_.getMessage(); } } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_2.Expr bound = 2; */ public Builder setBound(com.daml.daml_lf_dev.DamlLf2.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_2.Expr bound = 2; */ public Builder setBound( com.daml.daml_lf_dev.DamlLf2.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_2.Expr bound = 2; */ public Builder mergeBound(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (boundBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && bound_ != null && bound_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr bound = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBoundBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBoundFieldBuilder().getBuilder(); } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_2.Expr bound = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBoundOrBuilder() { if (boundBuilder_ != null) { return boundBuilder_.getMessageOrBuilder(); } else { return bound_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : bound_; } } /** *
       * The value to which the variable is bound.
       * 
* * .daml_lf_2.Expr bound = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBoundFieldBuilder() { if (boundBuilder_ == null) { boundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Binding) } // @@protoc_insertion_point(class_scope:daml_lf_2.Binding) private static final com.daml.daml_lf_dev.DamlLf2.Binding DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Binding(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KindOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Kind) com.google.protobuf.MessageOrBuilder { /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_2.Unit star = 1; * @return Whether the star field is set. */ boolean hasStar(); /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_2.Unit star = 1; * @return The star. */ com.daml.daml_lf_dev.DamlLf2.Unit getStar(); /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_2.Unit star = 1; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getStarOrBuilder(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_2.Kind.Arrow arrow = 2; * @return Whether the arrow field is set. */ boolean hasArrow(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_2.Kind.Arrow arrow = 2; * @return The arrow. */ com.daml.daml_lf_dev.DamlLf2.Kind.Arrow getArrow(); /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_2.Kind.Arrow arrow = 2; */ com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder getArrowOrBuilder(); /** *
     * kind of TNat type;
     * 
* * .daml_lf_2.Unit nat = 3; * @return Whether the nat field is set. */ boolean hasNat(); /** *
     * kind of TNat type;
     * 
* * .daml_lf_2.Unit nat = 3; * @return The nat. */ com.daml.daml_lf_dev.DamlLf2.Unit getNat(); /** *
     * kind of TNat type;
     * 
* * .daml_lf_2.Unit nat = 3; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getNatOrBuilder(); com.daml.daml_lf_dev.DamlLf2.Kind.SumCase getSumCase(); } /** *
   * Kinds
   * 
* * Protobuf type {@code daml_lf_2.Kind} */ public static final class Kind extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Kind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Kind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Kind.class, com.daml.daml_lf_dev.DamlLf2.Kind.Builder.class); } public interface ArrowOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Kind.Arrow) com.google.protobuf.MessageOrBuilder { /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ java.util.List getParamsList(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ com.daml.daml_lf_dev.DamlLf2.Kind getParams(int index); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ int getParamsCount(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ java.util.List getParamsOrBuilderList(); /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getParamsOrBuilder( int index); /** * .daml_lf_2.Kind result = 2; * @return Whether the result field is set. */ boolean hasResult(); /** * .daml_lf_2.Kind result = 2; * @return The result. */ com.daml.daml_lf_dev.DamlLf2.Kind getResult(); /** * .daml_lf_2.Kind result = 2; */ com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getResultOrBuilder(); } /** *
     * The kind of polimorphic type.
     * 
* * Protobuf type {@code daml_lf_2.Kind.Arrow} */ public static final class Arrow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Kind_Arrow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Kind_Arrow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.class, com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind getParams(int index) { return params_.get(index); } /** *
       * parameter of the kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Kind params = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int RESULT_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Kind result_; /** * .daml_lf_2.Kind result = 2; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Kind result = 2; * @return The result. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind getResult() { return result_ == null ? com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance() : result_; } /** * .daml_lf_2.Kind result = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getResultOrBuilder() { return result_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind.Arrow)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Kind.Arrow other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind.Arrow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind.Arrow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind.Arrow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Kind.Arrow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Kind.Arrow) com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Kind_Arrow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Kind_Arrow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.class, com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Kind_Arrow_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.Arrow getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.Arrow build() { com.daml.daml_lf_dev.DamlLf2.Kind.Arrow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.Arrow buildPartial() { com.daml.daml_lf_dev.DamlLf2.Kind.Arrow result = new com.daml.daml_lf_dev.DamlLf2.Kind.Arrow(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Kind.Arrow) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Kind.Arrow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Kind.Arrow other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder> paramsBuilder_; /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.Kind params = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ public Builder addParams(com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ public Builder addParams( com.daml.daml_lf_dev.DamlLf2.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_2.Kind params = 1; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Kind params = 1; */ public com.daml.daml_lf_dev.DamlLf2.Kind.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Kind params = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Kind params = 1; */ public com.daml.daml_lf_dev.DamlLf2.Kind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance()); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Kind params = 1; */ public com.daml.daml_lf_dev.DamlLf2.Kind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance()); } /** *
         * parameter of the kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Kind params = 1; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Kind result_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder> resultBuilder_; /** * .daml_lf_2.Kind result = 2; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Kind result = 2; * @return The result. */ public com.daml.daml_lf_dev.DamlLf2.Kind getResult() { if (resultBuilder_ == null) { return result_ == null ? com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .daml_lf_2.Kind result = 2; */ public Builder setResult(com.daml.daml_lf_dev.DamlLf2.Kind value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Kind result = 2; */ public Builder setResult( com.daml.daml_lf_dev.DamlLf2.Kind.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Kind result = 2; */ public Builder mergeResult(com.daml.daml_lf_dev.DamlLf2.Kind value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && result_ != null && result_ != com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Kind result = 2; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000002); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Kind result = 2; */ public com.daml.daml_lf_dev.DamlLf2.Kind.Builder getResultBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .daml_lf_2.Kind result = 2; */ public com.daml.daml_lf_dev.DamlLf2.KindOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance() : result_; } } /** * .daml_lf_2.Kind result = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.KindOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind, com.daml.daml_lf_dev.DamlLf2.Kind.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Kind.Arrow) } // @@protoc_insertion_point(class_scope:daml_lf_2.Kind.Arrow) private static final com.daml.daml_lf_dev.DamlLf2.Kind.Arrow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Kind.Arrow(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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_2.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_2.Unit star = 1; * @return The star. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getStar() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** *
     * Kind of monomorphic type.
     * 
* * .daml_lf_2.Unit star = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getStarOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } public static final int ARROW_FIELD_NUMBER = 2; /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_2.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_2.Kind.Arrow arrow = 2; * @return The arrow. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.Arrow getArrow() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } /** *
     * Kind of polymorphic type.
     * 
* * .daml_lf_2.Kind.Arrow arrow = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder getArrowOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } public static final int NAT_FIELD_NUMBER = 3; /** *
     * kind of TNat type;
     * 
* * .daml_lf_2.Unit nat = 3; * @return Whether the nat field is set. */ @java.lang.Override public boolean hasNat() { return sumCase_ == 3; } /** *
     * kind of TNat type;
     * 
* * .daml_lf_2.Unit nat = 3; * @return The nat. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getNat() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** *
     * kind of TNat type;
     * 
* * .daml_lf_2.Unit nat = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getNatOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Kind other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Kind} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Kind) com.daml.daml_lf_dev.DamlLf2.KindOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Kind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Kind_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Kind.class, com.daml.daml_lf_dev.DamlLf2.Kind.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Kind_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Kind.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind build() { com.daml.daml_lf_dev.DamlLf2.Kind result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind buildPartial() { com.daml.daml_lf_dev.DamlLf2.Kind result = new com.daml.daml_lf_dev.DamlLf2.Kind(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Kind result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Kind)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Kind other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> starBuilder_; /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_2.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_2.Unit star = 1; * @return The star. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getStar() { if (starBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 1) { return starBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_2.Unit star = 1; */ public Builder setStar(com.daml.daml_lf_dev.DamlLf2.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_2.Unit star = 1; */ public Builder setStar( com.daml.daml_lf_dev.DamlLf2.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_2.Unit star = 1; */ public Builder mergeStar(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (starBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Unit star = 1; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getStarBuilder() { return getStarFieldBuilder().getBuilder(); } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_2.Unit star = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getStarOrBuilder() { if ((sumCase_ == 1) && (starBuilder_ != null)) { return starBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * Kind of monomorphic type.
       * 
* * .daml_lf_2.Unit star = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getStarFieldBuilder() { if (starBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } starBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged(); return starBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind.Arrow, com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.Builder, com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder> arrowBuilder_; /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_2.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_2.Kind.Arrow arrow = 2; * @return The arrow. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.Arrow getArrow() { if (arrowBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } else { if (sumCase_ == 2) { return arrowBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_2.Kind.Arrow arrow = 2; */ public Builder setArrow(com.daml.daml_lf_dev.DamlLf2.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_2.Kind.Arrow arrow = 2; */ public Builder setArrow( com.daml.daml_lf_dev.DamlLf2.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_2.Kind.Arrow arrow = 2; */ public Builder mergeArrow(com.daml.daml_lf_dev.DamlLf2.Kind.Arrow value) { if (arrowBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Kind.Arrow arrow = 2; */ public com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.Builder getArrowBuilder() { return getArrowFieldBuilder().getBuilder(); } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_2.Kind.Arrow arrow = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder getArrowOrBuilder() { if ((sumCase_ == 2) && (arrowBuilder_ != null)) { return arrowBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_; } return com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } } /** *
       * Kind of polymorphic type.
       * 
* * .daml_lf_2.Kind.Arrow arrow = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind.Arrow, com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.Builder, com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder> getArrowFieldBuilder() { if (arrowBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.getDefaultInstance(); } arrowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Kind.Arrow, com.daml.daml_lf_dev.DamlLf2.Kind.Arrow.Builder, com.daml.daml_lf_dev.DamlLf2.Kind.ArrowOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Kind.Arrow) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged(); return arrowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> natBuilder_; /** *
       * kind of TNat type;
       * 
* * .daml_lf_2.Unit nat = 3; * @return Whether the nat field is set. */ @java.lang.Override public boolean hasNat() { return sumCase_ == 3; } /** *
       * kind of TNat type;
       * 
* * .daml_lf_2.Unit nat = 3; * @return The nat. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getNat() { if (natBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 3) { return natBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * kind of TNat type;
       * 
* * .daml_lf_2.Unit nat = 3; */ public Builder setNat(com.daml.daml_lf_dev.DamlLf2.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;
       * 
* * .daml_lf_2.Unit nat = 3; */ public Builder setNat( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (natBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { natBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** *
       * kind of TNat type;
       * 
* * .daml_lf_2.Unit nat = 3; */ public Builder mergeNat(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (natBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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;
       * 
* * .daml_lf_2.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;
       * 
* * .daml_lf_2.Unit nat = 3; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getNatBuilder() { return getNatFieldBuilder().getBuilder(); } /** *
       * kind of TNat type;
       * 
* * .daml_lf_2.Unit nat = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getNatOrBuilder() { if ((sumCase_ == 3) && (natBuilder_ != null)) { return natBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * kind of TNat type;
       * 
* * .daml_lf_2.Unit nat = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getNatFieldBuilder() { if (natBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } natBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.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_2.Kind) } // @@protoc_insertion_point(class_scope:daml_lf_2.Kind) private static final com.daml.daml_lf_dev.DamlLf2.Kind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Kind(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Kind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Type.Var var = 1; * @return Whether the var field is set. */ boolean hasVar(); /** * .daml_lf_2.Type.Var var = 1; * @return The var. */ com.daml.daml_lf_dev.DamlLf2.Type.Var getVar(); /** * .daml_lf_2.Type.Var var = 1; */ com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder getVarOrBuilder(); /** * .daml_lf_2.Type.Con con = 2; * @return Whether the con field is set. */ boolean hasCon(); /** * .daml_lf_2.Type.Con con = 2; * @return The con. */ com.daml.daml_lf_dev.DamlLf2.Type.Con getCon(); /** * .daml_lf_2.Type.Con con = 2; */ com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getConOrBuilder(); /** * .daml_lf_2.Type.Builtin builtin = 3; * @return Whether the builtin field is set. */ boolean hasBuiltin(); /** * .daml_lf_2.Type.Builtin builtin = 3; * @return The builtin. */ com.daml.daml_lf_dev.DamlLf2.Type.Builtin getBuiltin(); /** * .daml_lf_2.Type.Builtin builtin = 3; */ com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder getBuiltinOrBuilder(); /** * .daml_lf_2.Type.Forall forall = 4; * @return Whether the forall field is set. */ boolean hasForall(); /** * .daml_lf_2.Type.Forall forall = 4; * @return The forall. */ com.daml.daml_lf_dev.DamlLf2.Type.Forall getForall(); /** * .daml_lf_2.Type.Forall forall = 4; */ com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder getForallOrBuilder(); /** * .daml_lf_2.Type.Struct struct = 5; * @return Whether the struct field is set. */ boolean hasStruct(); /** * .daml_lf_2.Type.Struct struct = 5; * @return The struct. */ com.daml.daml_lf_dev.DamlLf2.Type.Struct getStruct(); /** * .daml_lf_2.Type.Struct struct = 5; */ com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder getStructOrBuilder(); /** *
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 6; * @return Whether the nat field is set. */ boolean hasNat(); /** *
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 6; * @return The nat. */ long getNat(); /** * .daml_lf_2.Type.Syn syn = 7; * @return Whether the syn field is set. */ boolean hasSyn(); /** * .daml_lf_2.Type.Syn syn = 7; * @return The syn. */ com.daml.daml_lf_dev.DamlLf2.Type.Syn getSyn(); /** * .daml_lf_2.Type.Syn syn = 7; */ com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder getSynOrBuilder(); /** * int32 interned = 8; * @return Whether the interned field is set. */ boolean hasInterned(); /** * int32 interned = 8; * @return The interned. */ int getInterned(); com.daml.daml_lf_dev.DamlLf2.Type.SumCase getSumCase(); } /** *
   * Types
   * 
* * Protobuf type {@code daml_lf_2.Type} */ public static final class Type extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Type_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.class, com.daml.daml_lf_dev.DamlLf2.Type.Builder.class); } public interface VarOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type.Var) com.google.protobuf.MessageOrBuilder { /** *
       * *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_2.Type args = 2; */ java.util.List getArgsList(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ int getArgsCount(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Possibly applied type variable 'TyVar'
     * 
* * Protobuf type {@code daml_lf_2.Type.Var} */ public static final class Var extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Type_Var_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Var_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Var.class, com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder.class); } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3; private int varInternedStr_ = 0; /** *
       * *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 ARGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List args_; /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the variable is applied
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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 { for (int i = 0; i < args_.size(); i++) { output.writeMessage(2, args_.get(i)); } if (varInternedStr_ != 0) { output.writeInt32(3, varInternedStr_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, args_.get(i)); } if (varInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, varInternedStr_); } 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.DamlLf2.Type.Var)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type.Var other = (com.daml.daml_lf_dev.DamlLf2.Type.Var) obj; if (getVarInternedStr() != other.getVarInternedStr()) 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) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); 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.DamlLf2.Type.Var parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Var parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Var parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Type.Var} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type.Var) com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Var_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Var_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Var.class, com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; varInternedStr_ = 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.DamlLf2.internal_static_daml_lf_2_Type_Var_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Var getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Var build() { com.daml.daml_lf_dev.DamlLf2.Type.Var result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Var buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type.Var result = new com.daml.daml_lf_dev.DamlLf2.Type.Var(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.Type.Var 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.DamlLf2.Type.Var result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.varInternedStr_ = varInternedStr_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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.DamlLf2.Type.Var) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type.Var)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type.Var other) { if (other == com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance()) return this; if (other.getVarInternedStr() != 0) { setVarInternedStr(other.getVarInternedStr()); } 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 18: { com.daml.daml_lf_dev.DamlLf2.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.Type.parser(), extensionRegistry); if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(m); } else { argsBuilder_.addMessage(m); } break; } // case 18 case 24: { varInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; 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 int varInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { return varInternedStr_; } /** *
         * *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_ |= 0x00000001; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_interned_str = 3; * @return This builder for chaining. */ public Builder clearVarInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); varInternedStr_ = 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.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs(com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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 variable is applied
         * 
* * repeated .daml_lf_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Types to which the variable is applied
         * 
* * repeated .daml_lf_2.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Type.Var) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type.Var) private static final com.daml.daml_lf_dev.DamlLf2.Type.Var DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type.Var(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Var getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type.Con) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTyconOrBuilder(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsList(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ int getArgsCount(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Possibly applied type constructor 'TyCon'
     * 
* * Protobuf type {@code daml_lf_2.Type.Con} */ public static final class Con extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Type_Con_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Con_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Con.class, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder.class); } private int bitField0_; public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName tycon_; /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.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_2.TypeConName tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTyconOrBuilder() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index) { return args_.get(index); } /** *
       * Type to which the constructor name is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Con)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type.Con other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Con parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Con parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Con parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Type.Con} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type.Con) com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Con_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Con_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Con.class, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Type_Con_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con build() { com.daml.daml_lf_dev.DamlLf2.Type.Con result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type.Con result = new com.daml.daml_lf_dev.DamlLf2.Type.Con(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Type.Con) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type.Con)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type.Con other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> tyconBuilder_; /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.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_2.TypeConName tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.TypeConName tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName tycon = 1; */ public Builder setTycon( com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName tycon = 1; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (tyconBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTyconBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.TypeConName tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> argsBuilder_; /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs(com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Type to which the constructor name is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type.Con) private static final com.daml.daml_lf_dev.DamlLf2.Type.Con DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type.Con(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Con getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SynOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type.Syn) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the type synonym
       * 
* * .daml_lf_2.TypeSynName tysyn = 1; * @return Whether the tysyn field is set. */ boolean hasTysyn(); /** *
       * Name of the type synonym
       * 
* * .daml_lf_2.TypeSynName tysyn = 1; * @return The tysyn. */ com.daml.daml_lf_dev.DamlLf2.TypeSynName getTysyn(); /** *
       * Name of the type synonym
       * 
* * .daml_lf_2.TypeSynName tysyn = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeSynNameOrBuilder getTysynOrBuilder(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsList(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ int getArgsCount(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Fully applied type constructor 'TySyn'
     * 
* * Protobuf type {@code daml_lf_2.Type.Syn} */ public static final class Syn extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Type_Syn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Syn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Syn.class, com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder.class); } private int bitField0_; public static final int TYSYN_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeSynName tysyn_; /** *
       * Name of the type synonym
       * 
* * .daml_lf_2.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_2.TypeSynName tysyn = 1; * @return The tysyn. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeSynName getTysyn() { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeSynName.getDefaultInstance() : tysyn_; } /** *
       * Name of the type synonym
       * 
* * .daml_lf_2.TypeSynName tysyn = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeSynNameOrBuilder getTysynOrBuilder() { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the synonym is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Syn)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type.Syn other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Syn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Syn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Syn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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'
       * 
* * Protobuf type {@code daml_lf_2.Type.Syn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type.Syn) com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Syn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Syn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Syn.class, com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Type_Syn_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Syn getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Syn build() { com.daml.daml_lf_dev.DamlLf2.Type.Syn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Syn buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type.Syn result = new com.daml.daml_lf_dev.DamlLf2.Type.Syn(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Type.Syn) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type.Syn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type.Syn other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeSynName tysyn_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeSynName, com.daml.daml_lf_dev.DamlLf2.TypeSynName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeSynNameOrBuilder> tysynBuilder_; /** *
         * Name of the type synonym
         * 
* * .daml_lf_2.TypeSynName tysyn = 1; * @return Whether the tysyn field is set. */ public boolean hasTysyn() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Name of the type synonym
         * 
* * .daml_lf_2.TypeSynName tysyn = 1; * @return The tysyn. */ public com.daml.daml_lf_dev.DamlLf2.TypeSynName getTysyn() { if (tysynBuilder_ == null) { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeSynName.getDefaultInstance() : tysyn_; } else { return tysynBuilder_.getMessage(); } } /** *
         * Name of the type synonym
         * 
* * .daml_lf_2.TypeSynName tysyn = 1; */ public Builder setTysyn(com.daml.daml_lf_dev.DamlLf2.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_2.TypeSynName tysyn = 1; */ public Builder setTysyn( com.daml.daml_lf_dev.DamlLf2.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_2.TypeSynName tysyn = 1; */ public Builder mergeTysyn(com.daml.daml_lf_dev.DamlLf2.TypeSynName value) { if (tysynBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tysyn_ != null && tysyn_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeSynName tysyn = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeSynName.Builder getTysynBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTysynFieldBuilder().getBuilder(); } /** *
         * Name of the type synonym
         * 
* * .daml_lf_2.TypeSynName tysyn = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeSynNameOrBuilder getTysynOrBuilder() { if (tysynBuilder_ != null) { return tysynBuilder_.getMessageOrBuilder(); } else { return tysyn_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeSynName.getDefaultInstance() : tysyn_; } } /** *
         * Name of the type synonym
         * 
* * .daml_lf_2.TypeSynName tysyn = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeSynName, com.daml.daml_lf_dev.DamlLf2.TypeSynName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeSynNameOrBuilder> getTysynFieldBuilder() { if (tysynBuilder_ == null) { tysynBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeSynName, com.daml.daml_lf_dev.DamlLf2.TypeSynName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs(com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Types to which the synonym is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Type.Syn) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type.Syn) private static final com.daml.daml_lf_dev.DamlLf2.Type.Syn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type.Syn(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Syn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BuiltinOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type.Builtin) com.google.protobuf.MessageOrBuilder { /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return The enum numeric value on the wire for builtin. */ int getBuiltinValue(); /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return The builtin. */ com.daml.daml_lf_dev.DamlLf2.BuiltinType getBuiltin(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsList(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ int getArgsCount(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getArgsOrBuilder( int index); } /** *
     * Possibly applied builtin types
     * 
* * Protobuf type {@code daml_lf_2.Type.Builtin} */ public static final class Builtin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.Type.Builtin) BuiltinOrBuilder { private static final long serialVersionUID = 0L; // Use Builtin.newBuilder() to construct. private Builtin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Builtin() { builtin_ = 0; args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Builtin(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Builtin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Builtin_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Builtin.class, com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder.class); } public static final int BUILTIN_FIELD_NUMBER = 1; private int builtin_ = 0; /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return The enum numeric value on the wire for builtin. */ @java.lang.Override public int getBuiltinValue() { return builtin_; } /** *
       * Builtin type
       * FixMe: Rename
       * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return The builtin. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinType getBuiltin() { com.daml.daml_lf_dev.DamlLf2.BuiltinType result = com.daml.daml_lf_dev.DamlLf2.BuiltinType.forNumber(builtin_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinType.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_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getArgs(int index) { return args_.get(index); } /** *
       * Types to which the builtin type is applied.
       * 
* * repeated .daml_lf_2.Type args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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 (builtin_ != com.daml.daml_lf_dev.DamlLf2.BuiltinType.UNIT.getNumber()) { output.writeEnum(1, builtin_); } 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 (builtin_ != com.daml.daml_lf_dev.DamlLf2.BuiltinType.UNIT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, builtin_); } 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.DamlLf2.Type.Builtin)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type.Builtin other = (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) obj; if (builtin_ != other.builtin_) 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) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + builtin_; 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.DamlLf2.Type.Builtin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.Type.Builtin 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.DamlLf2.Type.Builtin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.Type.Builtin 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.DamlLf2.Type.Builtin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.Type.Builtin 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.DamlLf2.Type.Builtin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf2.Type.Builtin parseFrom( java.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.DamlLf2.Type.Builtin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf2.Type.Builtin parseDelimitedFrom( java.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.DamlLf2.Type.Builtin 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.DamlLf2.Type.Builtin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(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.DamlLf2.Type.Builtin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new 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_2.Type.Builtin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type.Builtin) com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Builtin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Builtin_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Builtin.class, com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.Type.Builtin.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; builtin_ = 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.DamlLf2.internal_static_daml_lf_2_Type_Builtin_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Builtin getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Builtin build() { com.daml.daml_lf_dev.DamlLf2.Type.Builtin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Builtin buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type.Builtin result = new com.daml.daml_lf_dev.DamlLf2.Type.Builtin(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.Type.Builtin 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.DamlLf2.Type.Builtin result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.builtin_ = builtin_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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.DamlLf2.Type.Builtin) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type.Builtin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type.Builtin other) { if (other == com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance()) return this; if (other.builtin_ != 0) { setBuiltinValue(other.getBuiltinValue()); } 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: { builtin_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { com.daml.daml_lf_dev.DamlLf2.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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 builtin_ = 0; /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return The enum numeric value on the wire for builtin. */ @java.lang.Override public int getBuiltinValue() { return builtin_; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_2.BuiltinType builtin = 1; * @param value The enum numeric value on the wire for builtin to set. * @return This builder for chaining. */ public Builder setBuiltinValue(int value) { builtin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return The builtin. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinType getBuiltin() { com.daml.daml_lf_dev.DamlLf2.BuiltinType result = com.daml.daml_lf_dev.DamlLf2.BuiltinType.forNumber(builtin_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinType.UNRECOGNIZED : result; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_2.BuiltinType builtin = 1; * @param value The builtin to set. * @return This builder for chaining. */ public Builder setBuiltin(com.daml.daml_lf_dev.DamlLf2.BuiltinType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; builtin_ = value.getNumber(); onChanged(); return this; } /** *
         * Builtin type
         * FixMe: Rename
         * 
* * .daml_lf_2.BuiltinType builtin = 1; * @return This builder for chaining. */ public Builder clearBuiltin() { bitField0_ = (bitField0_ & ~0x00000001); builtin_ = 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.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> argsBuilder_; /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs(com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( com.daml.daml_lf_dev.DamlLf2.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_2.Type args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Types to which the builtin type is applied.
         * 
* * repeated .daml_lf_2.Type args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Type.Builtin) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type.Builtin) private static final com.daml.daml_lf_dev.DamlLf2.Type.Builtin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type.Builtin(); } public static com.daml.daml_lf_dev.DamlLf2.Type.Builtin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Builtin 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.DamlLf2.Type.Builtin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForallOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type.Forall) com.google.protobuf.MessageOrBuilder { /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ java.util.List getVarsList(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getVars(int index); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ int getVarsCount(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ java.util.List getVarsOrBuilderList(); /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getVarsOrBuilder( int index); /** *
       * Body of the quantification
       * 
* * .daml_lf_2.Type body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Body of the quantification
       * 
* * .daml_lf_2.Type body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Type getBody(); /** *
       * Body of the quantification
       * 
* * .daml_lf_2.Type body = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getBodyOrBuilder(); } /** *
     * Universal quantification 'TyForAll'
     * 
* * Protobuf type {@code daml_lf_2.Type.Forall} */ public static final class Forall extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Type_Forall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Forall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Forall.class, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ @java.lang.Override public java.util.List getVarsList() { return vars_; } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ @java.lang.Override public java.util.List getVarsOrBuilderList() { return vars_; } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ @java.lang.Override public int getVarsCount() { return vars_.size(); } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getVars(int index) { return vars_.get(index); } /** *
       * binders of the quantification
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getVarsOrBuilder( int index) { return vars_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Type body_; /** *
       * Body of the quantification
       * 
* * .daml_lf_2.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_2.Type body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : body_; } /** *
       * Body of the quantification
       * 
* * .daml_lf_2.Type body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Forall)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type.Forall other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Forall parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Forall parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Forall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Type.Forall} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type.Forall) com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Forall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Forall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Forall.class, com.daml.daml_lf_dev.DamlLf2.Type.Forall.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Type_Forall_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Forall getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Forall build() { com.daml.daml_lf_dev.DamlLf2.Type.Forall result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Forall buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type.Forall result = new com.daml.daml_lf_dev.DamlLf2.Type.Forall(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Type.Forall) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type.Forall)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type.Forall other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> varsBuilder_; /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.TypeVarWithKind vars = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ public Builder setVars( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ public Builder setVars( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ public Builder addVars(com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ public Builder addVars( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ public Builder addVars( com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind vars = 1; */ public Builder addVars( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.TypeVarWithKind vars = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder getVarsBuilder( int index) { return getVarsFieldBuilder().getBuilder(index); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeVarWithKind vars = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addVarsBuilder() { return getVarsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addVarsBuilder( int index) { return getVarsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
         * binders of the quantification
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.TypeVarWithKind vars = 1; */ public java.util.List getVarsBuilderList() { return getVarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> getVarsFieldBuilder() { if (varsBuilder_ == null) { varsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder>( vars_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vars_ = null; } return varsBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Type body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> bodyBuilder_; /** *
         * Body of the quantification
         * 
* * .daml_lf_2.Type body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Body of the quantification
         * 
* * .daml_lf_2.Type body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Type getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Body of the quantification
         * 
* * .daml_lf_2.Type body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.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_2.Type body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.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_2.Type body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Type value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type body = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Body of the quantification
         * 
* * .daml_lf_2.Type body = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : body_; } } /** *
         * Body of the quantification
         * 
* * .daml_lf_2.Type body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Type.Forall) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type.Forall) private static final com.daml.daml_lf_dev.DamlLf2.Type.Forall DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type.Forall(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Forall getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Type.Struct) com.google.protobuf.MessageOrBuilder { /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ java.util.List getFieldsList(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf2.FieldWithType getFields(int index); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ int getFieldsCount(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ java.util.List getFieldsOrBuilderList(); /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder getFieldsOrBuilder( int index); } /** *
     * Struct type
     * 
* * Protobuf type {@code daml_lf_2.Type.Struct} */ public static final class Struct extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Type_Struct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Struct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Struct.class, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithType getFields(int index) { return fields_.get(index); } /** *
       * name of the field with their types.
       * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Struct)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type.Struct other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Struct parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Struct parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Struct parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Type.Struct} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type.Struct) com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Struct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_Struct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.Struct.class, com.daml.daml_lf_dev.DamlLf2.Type.Struct.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Type_Struct_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Struct getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Struct build() { com.daml.daml_lf_dev.DamlLf2.Type.Struct result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Struct buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type.Struct result = new com.daml.daml_lf_dev.DamlLf2.Type.Struct(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Type.Struct) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type.Struct)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type.Struct other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder> fieldsBuilder_; /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_2.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_2.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_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder addFields(com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder addFields( com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.FieldWithType.getDefaultInstance()); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.FieldWithType.getDefaultInstance()); } /** *
         * name of the field with their types.
         * 
* * repeated .daml_lf_2.FieldWithType fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithType, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithType, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Type.Struct) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type.Struct) private static final com.daml.daml_lf_dev.DamlLf2.Type.Struct DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type.Struct(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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), BUILTIN(3), FORALL(4), STRUCT(5), NAT(6), SYN(7), INTERNED(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 VAR; case 2: return CON; case 3: return BUILTIN; case 4: return FORALL; case 5: return STRUCT; case 6: return NAT; case 7: return SYN; case 8: 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_2.Type.Var var = 1; * @return Whether the var field is set. */ @java.lang.Override public boolean hasVar() { return sumCase_ == 1; } /** * .daml_lf_2.Type.Var var = 1; * @return The var. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Var getVar() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } /** * .daml_lf_2.Type.Var var = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder getVarOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } public static final int CON_FIELD_NUMBER = 2; /** * .daml_lf_2.Type.Con con = 2; * @return Whether the con field is set. */ @java.lang.Override public boolean hasCon() { return sumCase_ == 2; } /** * .daml_lf_2.Type.Con con = 2; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getCon() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } /** * .daml_lf_2.Type.Con con = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getConOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } public static final int BUILTIN_FIELD_NUMBER = 3; /** * .daml_lf_2.Type.Builtin builtin = 3; * @return Whether the builtin field is set. */ @java.lang.Override public boolean hasBuiltin() { return sumCase_ == 3; } /** * .daml_lf_2.Type.Builtin builtin = 3; * @return The builtin. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Builtin getBuiltin() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } /** * .daml_lf_2.Type.Builtin builtin = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder getBuiltinOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } public static final int FORALL_FIELD_NUMBER = 4; /** * .daml_lf_2.Type.Forall forall = 4; * @return Whether the forall field is set. */ @java.lang.Override public boolean hasForall() { return sumCase_ == 4; } /** * .daml_lf_2.Type.Forall forall = 4; * @return The forall. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Forall getForall() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } /** * .daml_lf_2.Type.Forall forall = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder getForallOrBuilder() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } public static final int STRUCT_FIELD_NUMBER = 5; /** * .daml_lf_2.Type.Struct struct = 5; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return sumCase_ == 5; } /** * .daml_lf_2.Type.Struct struct = 5; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Struct getStruct() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } /** * .daml_lf_2.Type.Struct struct = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder getStructOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } public static final int NAT_FIELD_NUMBER = 6; /** *
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 6; * @return Whether the nat field is set. */ @java.lang.Override public boolean hasNat() { return sumCase_ == 6; } /** *
     * *Must be between 0 and 37 (bounds inclusive)*
     * use standard signed long for future usage.
     * 
* * sint64 nat = 6; * @return The nat. */ @java.lang.Override public long getNat() { if (sumCase_ == 6) { return (java.lang.Long) sum_; } return 0L; } public static final int SYN_FIELD_NUMBER = 7; /** * .daml_lf_2.Type.Syn syn = 7; * @return Whether the syn field is set. */ @java.lang.Override public boolean hasSyn() { return sumCase_ == 7; } /** * .daml_lf_2.Type.Syn syn = 7; * @return The syn. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Syn getSyn() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } /** * .daml_lf_2.Type.Syn syn = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder getSynOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } public static final int INTERNED_FIELD_NUMBER = 8; /** * int32 interned = 8; * @return Whether the interned field is set. */ @java.lang.Override public boolean hasInterned() { return sumCase_ == 8; } /** * int32 interned = 8; * @return The interned. */ @java.lang.Override public int getInterned() { if (sumCase_ == 8) { return (java.lang.Integer) sum_; } return 0; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sumCase_ == 1) { output.writeMessage(1, (com.daml.daml_lf_dev.DamlLf2.Type.Var) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_); } if (sumCase_ == 6) { output.writeSInt64( 6, (long)((java.lang.Long) sum_)); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_); } if (sumCase_ == 8) { output.writeInt32( 8, (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.DamlLf2.Type.Var) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size( 6, (long)((java.lang.Long) sum_)); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 8, (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.DamlLf2.Type)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Type other = (com.daml.daml_lf_dev.DamlLf2.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 (!getBuiltin() .equals(other.getBuiltin())) return false; break; case 4: if (!getForall() .equals(other.getForall())) return false; break; case 5: if (!getStruct() .equals(other.getStruct())) return false; break; case 6: if (getNat() != other.getNat()) return false; break; case 7: if (!getSyn() .equals(other.getSyn())) return false; break; case 8: 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) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + getBuiltin().hashCode(); break; case 4: hash = (37 * hash) + FORALL_FIELD_NUMBER; hash = (53 * hash) + getForall().hashCode(); break; case 5: hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().hashCode(); break; case 6: hash = (37 * hash) + NAT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNat()); break; case 7: hash = (37 * hash) + SYN_FIELD_NUMBER; hash = (53 * hash) + getSyn().hashCode(); break; case 8: 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.DamlLf2.Type parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Type} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Type) com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Type_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Type.class, com.daml.daml_lf_dev.DamlLf2.Type.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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 (builtinBuilder_ != null) { builtinBuilder_.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.DamlLf2.internal_static_daml_lf_2_Type_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type build() { com.daml.daml_lf_dev.DamlLf2.Type result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type buildPartial() { com.daml.daml_lf_dev.DamlLf2.Type result = new com.daml.daml_lf_dev.DamlLf2.Type(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Type result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.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 && builtinBuilder_ != null) { result.sum_ = builtinBuilder_.build(); } if (sumCase_ == 4 && forallBuilder_ != null) { result.sum_ = forallBuilder_.build(); } if (sumCase_ == 5 && structBuilder_ != null) { result.sum_ = structBuilder_.build(); } if (sumCase_ == 7 && 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.DamlLf2.Type) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Type)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Type other) { if (other == com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) return this; switch (other.getSumCase()) { case VAR: { mergeVar(other.getVar()); break; } case CON: { mergeCon(other.getCon()); break; } case BUILTIN: { mergeBuiltin(other.getBuiltin()); 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( getBuiltinFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 case 34: { input.readMessage( getForallFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 4; break; } // case 34 case 42: { input.readMessage( getStructFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 48: { sum_ = input.readSInt64(); sumCase_ = 6; break; } // case 48 case 58: { input.readMessage( getSynFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 64: { sum_ = input.readInt32(); sumCase_ = 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 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.DamlLf2.Type.Var, com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder, com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder> varBuilder_; /** * .daml_lf_2.Type.Var var = 1; * @return Whether the var field is set. */ @java.lang.Override public boolean hasVar() { return sumCase_ == 1; } /** * .daml_lf_2.Type.Var var = 1; * @return The var. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Var getVar() { if (varBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } else { if (sumCase_ == 1) { return varBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } } /** * .daml_lf_2.Type.Var var = 1; */ public Builder setVar(com.daml.daml_lf_dev.DamlLf2.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_2.Type.Var var = 1; */ public Builder setVar( com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder builderForValue) { if (varBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { varBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_2.Type.Var var = 1; */ public Builder mergeVar(com.daml.daml_lf_dev.DamlLf2.Type.Var value) { if (varBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Var.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type.Var var = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder getVarBuilder() { return getVarFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type.Var var = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder getVarOrBuilder() { if ((sumCase_ == 1) && (varBuilder_ != null)) { return varBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Type.Var) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } } /** * .daml_lf_2.Type.Var var = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Var, com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder, com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder> getVarFieldBuilder() { if (varBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Var.getDefaultInstance(); } varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Var, com.daml.daml_lf_dev.DamlLf2.Type.Var.Builder, com.daml.daml_lf_dev.DamlLf2.Type.VarOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type.Var) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged(); return varBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> conBuilder_; /** * .daml_lf_2.Type.Con con = 2; * @return Whether the con field is set. */ @java.lang.Override public boolean hasCon() { return sumCase_ == 2; } /** * .daml_lf_2.Type.Con con = 2; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getCon() { if (conBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } else { if (sumCase_ == 2) { return conBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } } /** * .daml_lf_2.Type.Con con = 2; */ public Builder setCon(com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con con = 2; */ public Builder setCon( com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder builderForValue) { if (conBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { conBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_2.Type.Con con = 2; */ public Builder mergeCon(com.daml.daml_lf_dev.DamlLf2.Type.Con value) { if (conBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Con.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type.Con con = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder getConBuilder() { return getConFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type.Con con = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getConOrBuilder() { if ((sumCase_ == 2) && (conBuilder_ != null)) { return conBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } } /** * .daml_lf_2.Type.Con con = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance(); } conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type.Con) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged(); return conBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Builtin, com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder, com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder> builtinBuilder_; /** * .daml_lf_2.Type.Builtin builtin = 3; * @return Whether the builtin field is set. */ @java.lang.Override public boolean hasBuiltin() { return sumCase_ == 3; } /** * .daml_lf_2.Type.Builtin builtin = 3; * @return The builtin. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Builtin getBuiltin() { if (builtinBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } else { if (sumCase_ == 3) { return builtinBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } } /** * .daml_lf_2.Type.Builtin builtin = 3; */ public Builder setBuiltin(com.daml.daml_lf_dev.DamlLf2.Type.Builtin value) { if (builtinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { builtinBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** * .daml_lf_2.Type.Builtin builtin = 3; */ public Builder setBuiltin( com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder builderForValue) { if (builtinBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { builtinBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** * .daml_lf_2.Type.Builtin builtin = 3; */ public Builder mergeBuiltin(com.daml.daml_lf_dev.DamlLf2.Type.Builtin value) { if (builtinBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Builtin.newBuilder((com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { builtinBuilder_.mergeFrom(value); } else { builtinBuilder_.setMessage(value); } } sumCase_ = 3; return this; } /** * .daml_lf_2.Type.Builtin builtin = 3; */ public Builder clearBuiltin() { if (builtinBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } builtinBuilder_.clear(); } return this; } /** * .daml_lf_2.Type.Builtin builtin = 3; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder getBuiltinBuilder() { return getBuiltinFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type.Builtin builtin = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder getBuiltinOrBuilder() { if ((sumCase_ == 3) && (builtinBuilder_ != null)) { return builtinBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } } /** * .daml_lf_2.Type.Builtin builtin = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Builtin, com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder, com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder> getBuiltinFieldBuilder() { if (builtinBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Builtin.getDefaultInstance(); } builtinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Builtin, com.daml.daml_lf_dev.DamlLf2.Type.Builtin.Builder, com.daml.daml_lf_dev.DamlLf2.Type.BuiltinOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type.Builtin) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged(); return builtinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Forall, com.daml.daml_lf_dev.DamlLf2.Type.Forall.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder> forallBuilder_; /** * .daml_lf_2.Type.Forall forall = 4; * @return Whether the forall field is set. */ @java.lang.Override public boolean hasForall() { return sumCase_ == 4; } /** * .daml_lf_2.Type.Forall forall = 4; * @return The forall. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Forall getForall() { if (forallBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } else { if (sumCase_ == 4) { return forallBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } } /** * .daml_lf_2.Type.Forall forall = 4; */ public Builder setForall(com.daml.daml_lf_dev.DamlLf2.Type.Forall value) { if (forallBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { forallBuilder_.setMessage(value); } sumCase_ = 4; return this; } /** * .daml_lf_2.Type.Forall forall = 4; */ public Builder setForall( com.daml.daml_lf_dev.DamlLf2.Type.Forall.Builder builderForValue) { if (forallBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { forallBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_2.Type.Forall forall = 4; */ public Builder mergeForall(com.daml.daml_lf_dev.DamlLf2.Type.Forall value) { if (forallBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Forall.newBuilder((com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 4) { forallBuilder_.mergeFrom(value); } else { forallBuilder_.setMessage(value); } } sumCase_ = 4; return this; } /** * .daml_lf_2.Type.Forall forall = 4; */ public Builder clearForall() { if (forallBuilder_ == null) { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; } forallBuilder_.clear(); } return this; } /** * .daml_lf_2.Type.Forall forall = 4; */ public com.daml.daml_lf_dev.DamlLf2.Type.Forall.Builder getForallBuilder() { return getForallFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type.Forall forall = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder getForallOrBuilder() { if ((sumCase_ == 4) && (forallBuilder_ != null)) { return forallBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } } /** * .daml_lf_2.Type.Forall forall = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Forall, com.daml.daml_lf_dev.DamlLf2.Type.Forall.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder> getForallFieldBuilder() { if (forallBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Forall.getDefaultInstance(); } forallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Forall, com.daml.daml_lf_dev.DamlLf2.Type.Forall.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ForallOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type.Forall) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged(); return forallBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Struct, com.daml.daml_lf_dev.DamlLf2.Type.Struct.Builder, com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder> structBuilder_; /** * .daml_lf_2.Type.Struct struct = 5; * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return sumCase_ == 5; } /** * .daml_lf_2.Type.Struct struct = 5; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Struct getStruct() { if (structBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } else { if (sumCase_ == 5) { return structBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } } /** * .daml_lf_2.Type.Struct struct = 5; */ public Builder setStruct(com.daml.daml_lf_dev.DamlLf2.Type.Struct value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_2.Type.Struct struct = 5; */ public Builder setStruct( com.daml.daml_lf_dev.DamlLf2.Type.Struct.Builder builderForValue) { if (structBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_2.Type.Struct struct = 5; */ public Builder mergeStruct(com.daml.daml_lf_dev.DamlLf2.Type.Struct value) { if (structBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Struct.newBuilder((com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { structBuilder_.mergeFrom(value); } else { structBuilder_.setMessage(value); } } sumCase_ = 5; return this; } /** * .daml_lf_2.Type.Struct struct = 5; */ public Builder clearStruct() { if (structBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } structBuilder_.clear(); } return this; } /** * .daml_lf_2.Type.Struct struct = 5; */ public com.daml.daml_lf_dev.DamlLf2.Type.Struct.Builder getStructBuilder() { return getStructFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type.Struct struct = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder getStructOrBuilder() { if ((sumCase_ == 5) && (structBuilder_ != null)) { return structBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } } /** * .daml_lf_2.Type.Struct struct = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Struct, com.daml.daml_lf_dev.DamlLf2.Type.Struct.Builder, com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Struct.getDefaultInstance(); } structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Struct, com.daml.daml_lf_dev.DamlLf2.Type.Struct.Builder, com.daml.daml_lf_dev.DamlLf2.Type.StructOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type.Struct) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged(); return structBuilder_; } /** *
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 6; * @return Whether the nat field is set. */ public boolean hasNat() { return sumCase_ == 6; } /** *
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 6; * @return The nat. */ public long getNat() { if (sumCase_ == 6) { return (java.lang.Long) sum_; } return 0L; } /** *
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 6; * @param value The nat to set. * @return This builder for chaining. */ public Builder setNat(long value) { sumCase_ = 6; sum_ = value; onChanged(); return this; } /** *
       * *Must be between 0 and 37 (bounds inclusive)*
       * use standard signed long for future usage.
       * 
* * sint64 nat = 6; * @return This builder for chaining. */ public Builder clearNat() { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Syn, com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder, com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder> synBuilder_; /** * .daml_lf_2.Type.Syn syn = 7; * @return Whether the syn field is set. */ @java.lang.Override public boolean hasSyn() { return sumCase_ == 7; } /** * .daml_lf_2.Type.Syn syn = 7; * @return The syn. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Syn getSyn() { if (synBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } else { if (sumCase_ == 7) { return synBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } } /** * .daml_lf_2.Type.Syn syn = 7; */ public Builder setSyn(com.daml.daml_lf_dev.DamlLf2.Type.Syn value) { if (synBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { synBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_2.Type.Syn syn = 7; */ public Builder setSyn( com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder builderForValue) { if (synBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { synBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_2.Type.Syn syn = 7; */ public Builder mergeSyn(com.daml.daml_lf_dev.DamlLf2.Type.Syn value) { if (synBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Syn.newBuilder((com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { synBuilder_.mergeFrom(value); } else { synBuilder_.setMessage(value); } } sumCase_ = 7; return this; } /** * .daml_lf_2.Type.Syn syn = 7; */ public Builder clearSyn() { if (synBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } synBuilder_.clear(); } return this; } /** * .daml_lf_2.Type.Syn syn = 7; */ public com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder getSynBuilder() { return getSynFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type.Syn syn = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder getSynOrBuilder() { if ((sumCase_ == 7) && (synBuilder_ != null)) { return synBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } } /** * .daml_lf_2.Type.Syn syn = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Syn, com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder, com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder> getSynFieldBuilder() { if (synBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.Syn.getDefaultInstance(); } synBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Syn, com.daml.daml_lf_dev.DamlLf2.Type.Syn.Builder, com.daml.daml_lf_dev.DamlLf2.Type.SynOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type.Syn) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged(); return synBuilder_; } /** * int32 interned = 8; * @return Whether the interned field is set. */ public boolean hasInterned() { return sumCase_ == 8; } /** * int32 interned = 8; * @return The interned. */ public int getInterned() { if (sumCase_ == 8) { return (java.lang.Integer) sum_; } return 0; } /** * int32 interned = 8; * @param value The interned to set. * @return This builder for chaining. */ public Builder setInterned(int value) { sumCase_ = 8; sum_ = value; onChanged(); return this; } /** * int32 interned = 8; * @return This builder for chaining. */ public Builder clearInterned() { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:daml_lf_2.Type) } // @@protoc_insertion_point(class_scope:daml_lf_2.Type) private static final com.daml.daml_lf_dev.DamlLf2.Type DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Type(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BuiltinLitOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.BuiltinLit) 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 timestamp*
     * 
* * sfixed64 timestamp = 2; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 2; * @return The timestamp. */ long getTimestamp(); /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 3; * @return Whether the numericInternedStr field is set. */ boolean hasNumericInternedStr(); /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 3; * @return The numericInternedStr. */ int getNumericInternedStr(); /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 4; * @return Whether the textInternedStr field is set. */ boolean hasTextInternedStr(); /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 4; * @return The textInternedStr. */ int getTextInternedStr(); /** *
     * *Must be a valid date*
     * 
* * int32 date = 5; * @return Whether the date field is set. */ boolean hasDate(); /** *
     * *Must be a valid date*
     * 
* * int32 date = 5; * @return The date. */ int getDate(); /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return Whether the roundingMode field is set. */ boolean hasRoundingMode(); /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return The enum numeric value on the wire for roundingMode. */ int getRoundingModeValue(); /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return The roundingMode. */ com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode getRoundingMode(); com.daml.daml_lf_dev.DamlLf2.BuiltinLit.SumCase getSumCase(); } /** *
   * Builtin literals
   * 
* * Protobuf type {@code daml_lf_2.BuiltinLit} */ public static final class BuiltinLit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.BuiltinLit) BuiltinLitOrBuilder { private static final long serialVersionUID = 0L; // Use BuiltinLit.newBuilder() to construct. private BuiltinLit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BuiltinLit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BuiltinLit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_BuiltinLit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_BuiltinLit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.BuiltinLit.class, com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder.class); } /** *
     * match java.math.BigDecimal.ROUND_XXX constants
     * *Available in versions >= 2.dev*
     * 
* * Protobuf enum {@code daml_lf_2.BuiltinLit.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.DamlLf2.BuiltinLit.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_2.BuiltinLit.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), TIMESTAMP(2), NUMERIC_INTERNED_STR(3), TEXT_INTERNED_STR(4), DATE(5), ROUNDING_MODE(1001), 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 TIMESTAMP; case 3: return NUMERIC_INTERNED_STR; case 4: return TEXT_INTERNED_STR; case 5: return DATE; case 1001: 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 TIMESTAMP_FIELD_NUMBER = 2; /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 2; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return sumCase_ == 2; } /** *
     * *Must be a valid timestamp*
     * 
* * sfixed64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { if (sumCase_ == 2) { return (java.lang.Long) sum_; } return 0L; } public static final int NUMERIC_INTERNED_STR_FIELD_NUMBER = 3; /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 3; * @return Whether the numericInternedStr field is set. */ @java.lang.Override public boolean hasNumericInternedStr() { return sumCase_ == 3; } /** *
     * *Must be a valid interned numeric */
     * 
* * int32 numeric_interned_str = 3; * @return The numericInternedStr. */ @java.lang.Override public int getNumericInternedStr() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } public static final int TEXT_INTERNED_STR_FIELD_NUMBER = 4; /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 4; * @return Whether the textInternedStr field is set. */ @java.lang.Override public boolean hasTextInternedStr() { return sumCase_ == 4; } /** *
     * *Must be a valid interned text*
     * 
* * int32 text_interned_str = 4; * @return The textInternedStr. */ @java.lang.Override public int getTextInternedStr() { if (sumCase_ == 4) { return (java.lang.Integer) sum_; } return 0; } public static final int DATE_FIELD_NUMBER = 5; /** *
     * *Must be a valid date*
     * 
* * int32 date = 5; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return sumCase_ == 5; } /** *
     * *Must be a valid date*
     * 
* * int32 date = 5; * @return The date. */ @java.lang.Override public int getDate() { if (sumCase_ == 5) { return (java.lang.Integer) sum_; } return 0; } public static final int ROUNDING_MODE_FIELD_NUMBER = 1001; /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return Whether the roundingMode field is set. */ public boolean hasRoundingMode() { return sumCase_ == 1001; } /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return The enum numeric value on the wire for roundingMode. */ public int getRoundingModeValue() { if (sumCase_ == 1001) { return (java.lang.Integer) sum_; } return 0; } /** *
     * rounding mode for arithmetic operation
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return The roundingMode. */ public com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode getRoundingMode() { if (sumCase_ == 1001) { com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode result = com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.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) { output.writeSFixed64( 2, (long)((java.lang.Long) sum_)); } if (sumCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 4) { output.writeInt32( 4, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 5) { output.writeInt32( 5, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 1001) { output.writeEnum(1001, ((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.CodedOutputStream .computeSFixed64Size( 2, (long)((java.lang.Long) sum_)); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 4, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 5, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 1001) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1001, ((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.DamlLf2.BuiltinLit)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.BuiltinLit other = (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) obj; if (!getSumCase().equals(other.getSumCase())) return false; switch (sumCase_) { case 1: if (getInt64() != other.getInt64()) return false; break; case 2: if (getTimestamp() != other.getTimestamp()) return false; break; case 3: if (getNumericInternedStr() != other.getNumericInternedStr()) return false; break; case 4: if (getTextInternedStr() != other.getTextInternedStr()) return false; break; case 5: if (getDate() != other.getDate()) return false; break; case 1001: 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) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); break; case 3: hash = (37 * hash) + NUMERIC_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getNumericInternedStr(); break; case 4: hash = (37 * hash) + TEXT_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getTextInternedStr(); break; case 5: hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate(); break; case 1001: 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.DamlLf2.BuiltinLit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.BuiltinLit 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.DamlLf2.BuiltinLit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.BuiltinLit 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.DamlLf2.BuiltinLit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.BuiltinLit 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.DamlLf2.BuiltinLit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf2.BuiltinLit parseFrom( java.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.DamlLf2.BuiltinLit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.daml.daml_lf_dev.DamlLf2.BuiltinLit parseDelimitedFrom( java.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.DamlLf2.BuiltinLit 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.DamlLf2.BuiltinLit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(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.DamlLf2.BuiltinLit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new 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
     * 
* * Protobuf type {@code daml_lf_2.BuiltinLit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.BuiltinLit) com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_BuiltinLit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_BuiltinLit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.BuiltinLit.class, com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.BuiltinLit.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.DamlLf2.internal_static_daml_lf_2_BuiltinLit_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLit getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLit build() { com.daml.daml_lf_dev.DamlLf2.BuiltinLit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLit buildPartial() { com.daml.daml_lf_dev.DamlLf2.BuiltinLit result = new com.daml.daml_lf_dev.DamlLf2.BuiltinLit(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.BuiltinLit result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.BuiltinLit 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.DamlLf2.BuiltinLit) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.BuiltinLit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.BuiltinLit other) { if (other == com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance()) return this; switch (other.getSumCase()) { case INT64: { setInt64(other.getInt64()); break; } case TIMESTAMP: { setTimestamp(other.getTimestamp()); break; } case NUMERIC_INTERNED_STR: { setNumericInternedStr(other.getNumericInternedStr()); break; } case TEXT_INTERNED_STR: { setTextInternedStr(other.getTextInternedStr()); 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 17: { sum_ = input.readSFixed64(); sumCase_ = 2; break; } // case 17 case 24: { sum_ = input.readInt32(); sumCase_ = 3; break; } // case 24 case 32: { sum_ = input.readInt32(); sumCase_ = 4; break; } // case 32 case 40: { sum_ = input.readInt32(); sumCase_ = 5; break; } // case 40 case 8008: { int rawValue = input.readEnum(); sumCase_ = 1001; sum_ = rawValue; break; } // case 8008 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 timestamp*
       * 
* * sfixed64 timestamp = 2; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return sumCase_ == 2; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 2; * @return The timestamp. */ public long getTimestamp() { if (sumCase_ == 2) { return (java.lang.Long) sum_; } return 0L; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 2; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { sumCase_ = 2; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid timestamp*
       * 
* * sfixed64 timestamp = 2; * @return This builder for chaining. */ public Builder clearTimestamp() { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 3; * @return Whether the numericInternedStr field is set. */ public boolean hasNumericInternedStr() { return sumCase_ == 3; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 3; * @return The numericInternedStr. */ public int getNumericInternedStr() { if (sumCase_ == 3) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 3; * @param value The numericInternedStr to set. * @return This builder for chaining. */ public Builder setNumericInternedStr(int value) { sumCase_ = 3; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned numeric */
       * 
* * int32 numeric_interned_str = 3; * @return This builder for chaining. */ public Builder clearNumericInternedStr() { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 4; * @return Whether the textInternedStr field is set. */ public boolean hasTextInternedStr() { return sumCase_ == 4; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 4; * @return The textInternedStr. */ public int getTextInternedStr() { if (sumCase_ == 4) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 4; * @param value The textInternedStr to set. * @return This builder for chaining. */ public Builder setTextInternedStr(int value) { sumCase_ = 4; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned text*
       * 
* * int32 text_interned_str = 4; * @return This builder for chaining. */ public Builder clearTextInternedStr() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 5; * @return Whether the date field is set. */ public boolean hasDate() { return sumCase_ == 5; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 5; * @return The date. */ public int getDate() { if (sumCase_ == 5) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 5; * @param value The date to set. * @return This builder for chaining. */ public Builder setDate(int value) { sumCase_ = 5; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid date*
       * 
* * int32 date = 5; * @return This builder for chaining. */ public Builder clearDate() { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return Whether the roundingMode field is set. */ @java.lang.Override public boolean hasRoundingMode() { return sumCase_ == 1001; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return The enum numeric value on the wire for roundingMode. */ @java.lang.Override public int getRoundingModeValue() { if (sumCase_ == 1001) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @param value The enum numeric value on the wire for roundingMode to set. * @return This builder for chaining. */ public Builder setRoundingModeValue(int value) { sumCase_ = 1001; sum_ = value; onChanged(); return this; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return The roundingMode. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode getRoundingMode() { if (sumCase_ == 1001) { com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode result = com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode.UP; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @param value The roundingMode to set. * @return This builder for chaining. */ public Builder setRoundingMode(com.daml.daml_lf_dev.DamlLf2.BuiltinLit.RoundingMode value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 1001; sum_ = value.getNumber(); onChanged(); return this; } /** *
       * rounding mode for arithmetic operation
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.BuiltinLit.RoundingMode rounding_mode = 1001; * @return This builder for chaining. */ public Builder clearRoundingMode() { if (sumCase_ == 1001) { 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_2.BuiltinLit) } // @@protoc_insertion_point(class_scope:daml_lf_2.BuiltinLit) private static final com.daml.daml_lf_dev.DamlLf2.BuiltinLit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.BuiltinLit(); } public static com.daml.daml_lf_dev.DamlLf2.BuiltinLit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BuiltinLit 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.DamlLf2.BuiltinLit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Location) com.google.protobuf.MessageOrBuilder { /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return Whether the module field is set. */ boolean hasModule(); /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_2.ModuleRef module = 1; * @return The module. */ com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule(); /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_2.ModuleRef module = 1; */ com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder(); /** * .daml_lf_2.Location.Range range = 2; * @return Whether the range field is set. */ boolean hasRange(); /** * .daml_lf_2.Location.Range range = 2; * @return The range. */ com.daml.daml_lf_dev.DamlLf2.Location.Range getRange(); /** * .daml_lf_2.Location.Range range = 2; */ com.daml.daml_lf_dev.DamlLf2.Location.RangeOrBuilder getRangeOrBuilder(); } /** *
   * Source code locations
   * 
* * Protobuf type {@code daml_lf_2.Location} */ public static final class Location extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Location.class, com.daml.daml_lf_dev.DamlLf2.Location.Builder.class); } public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.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_2.Location.Range} */ public static final class Range extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Location_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Location_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Location.Range.class, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location.Range)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Location.Range other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Location.Range} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Location.Range) com.daml.daml_lf_dev.DamlLf2.Location.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Location_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Location_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Location.Range.class, com.daml.daml_lf_dev.DamlLf2.Location.Range.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Location_Range_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location.Range getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Location.Range.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location.Range build() { com.daml.daml_lf_dev.DamlLf2.Location.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location.Range buildPartial() { com.daml.daml_lf_dev.DamlLf2.Location.Range result = new com.daml.daml_lf_dev.DamlLf2.Location.Range(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location.Range) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Location.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Location.Range other) { if (other == com.daml.daml_lf_dev.DamlLf2.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_2.Location.Range) } // @@protoc_insertion_point(class_scope:daml_lf_2.Location.Range) private static final com.daml.daml_lf_dev.DamlLf2.Location.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Location.Range(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int MODULE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.ModuleRef module_; /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } /** *
     * (*optional*), if missing the line is within the current module.
     * 
* * .daml_lf_2.ModuleRef module = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } public static final int RANGE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Location.Range range_; /** * .daml_lf_2.Location.Range range = 2; * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Location.Range range = 2; * @return The range. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location.Range getRange() { return range_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.Range.getDefaultInstance() : range_; } /** * .daml_lf_2.Location.Range range = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location.RangeOrBuilder getRangeOrBuilder() { return range_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Location other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Location} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Location) com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Location.class, com.daml.daml_lf_dev.DamlLf2.Location.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Location_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location build() { com.daml.daml_lf_dev.DamlLf2.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location buildPartial() { com.daml.daml_lf_dev.DamlLf2.Location result = new com.daml.daml_lf_dev.DamlLf2.Location(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Location other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.ModuleRef module_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> moduleBuilder_; /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_2.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_2.ModuleRef module = 1; * @return The module. */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef getModule() { if (moduleBuilder_ == null) { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public Builder setModule(com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder setModule( com.daml.daml_lf_dev.DamlLf2.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_2.ModuleRef module = 1; */ public Builder mergeModule(com.daml.daml_lf_dev.DamlLf2.ModuleRef value) { if (moduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && module_ != null && module_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder getModuleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? com.daml.daml_lf_dev.DamlLf2.ModuleRef.getDefaultInstance() : module_; } } /** *
       * (*optional*), if missing the line is within the current module.
       * 
* * .daml_lf_2.ModuleRef module = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ModuleRef, com.daml.daml_lf_dev.DamlLf2.ModuleRef.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleRefOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Location.Range range_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location.Range, com.daml.daml_lf_dev.DamlLf2.Location.Range.Builder, com.daml.daml_lf_dev.DamlLf2.Location.RangeOrBuilder> rangeBuilder_; /** * .daml_lf_2.Location.Range range = 2; * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Location.Range range = 2; * @return The range. */ public com.daml.daml_lf_dev.DamlLf2.Location.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * .daml_lf_2.Location.Range range = 2; */ public Builder setRange(com.daml.daml_lf_dev.DamlLf2.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_2.Location.Range range = 2; */ public Builder setRange( com.daml.daml_lf_dev.DamlLf2.Location.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Location.Range range = 2; */ public Builder mergeRange(com.daml.daml_lf_dev.DamlLf2.Location.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && range_ != null && range_ != com.daml.daml_lf_dev.DamlLf2.Location.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } if (range_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Location.Range range = 2; */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000002); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location.Range range = 2; */ public com.daml.daml_lf_dev.DamlLf2.Location.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location.Range range = 2; */ public com.daml.daml_lf_dev.DamlLf2.Location.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.Range.getDefaultInstance() : range_; } } /** * .daml_lf_2.Location.Range range = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location.Range, com.daml.daml_lf_dev.DamlLf2.Location.Range.Builder, com.daml.daml_lf_dev.DamlLf2.Location.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location.Range, com.daml.daml_lf_dev.DamlLf2.Location.Range.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Location) } // @@protoc_insertion_point(class_scope:daml_lf_2.Location) private static final com.daml.daml_lf_dev.DamlLf2.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Location(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr) com.google.protobuf.MessageOrBuilder { /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 2; * @return Whether the varInternedStr field is set. */ boolean hasVarInternedStr(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 2; * @return The varInternedStr. */ int getVarInternedStr(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_2.ValName val = 3; * @return Whether the val field is set. */ boolean hasVal(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_2.ValName val = 3; * @return The val. */ com.daml.daml_lf_dev.DamlLf2.ValName getVal(); /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_2.ValName val = 3; */ com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder getValOrBuilder(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return Whether the builtin field is set. */ boolean hasBuiltin(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return The enum numeric value on the wire for builtin. */ int getBuiltinValue(); /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return The builtin. */ com.daml.daml_lf_dev.DamlLf2.BuiltinFunction getBuiltin(); /** *
     * Builtin constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return Whether the builtinCon field is set. */ boolean hasBuiltinCon(); /** *
     * Builtin constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return The enum numeric value on the wire for builtinCon. */ int getBuiltinConValue(); /** *
     * Builtin constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return The builtinCon. */ com.daml.daml_lf_dev.DamlLf2.BuiltinCon getBuiltinCon(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; * @return Whether the builtinLit field is set. */ boolean hasBuiltinLit(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; * @return The builtinLit. */ com.daml.daml_lf_dev.DamlLf2.BuiltinLit getBuiltinLit(); /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder getBuiltinLitOrBuilder(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; * @return Whether the recCon field is set. */ boolean hasRecCon(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; * @return The recCon. */ com.daml.daml_lf_dev.DamlLf2.Expr.RecCon getRecCon(); /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder getRecConOrBuilder(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; * @return Whether the recProj field is set. */ boolean hasRecProj(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; * @return The recProj. */ com.daml.daml_lf_dev.DamlLf2.Expr.RecProj getRecProj(); /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder getRecProjOrBuilder(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; * @return Whether the recUpd field is set. */ boolean hasRecUpd(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; * @return The recUpd. */ com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd getRecUpd(); /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder getRecUpdOrBuilder(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; * @return Whether the variantCon field is set. */ boolean hasVariantCon(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; * @return The variantCon. */ com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon getVariantCon(); /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder getVariantConOrBuilder(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; * @return Whether the enumCon field is set. */ boolean hasEnumCon(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; * @return The enumCon. */ com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon getEnumCon(); /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder getEnumConOrBuilder(); /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; * @return Whether the structCon field is set. */ boolean hasStructCon(); /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; * @return The structCon. */ com.daml.daml_lf_dev.DamlLf2.Expr.StructCon getStructCon(); /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder getStructConOrBuilder(); /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; * @return Whether the structProj field is set. */ boolean hasStructProj(); /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; * @return The structProj. */ com.daml.daml_lf_dev.DamlLf2.Expr.StructProj getStructProj(); /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder getStructProjOrBuilder(); /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; * @return Whether the structUpd field is set. */ boolean hasStructUpd(); /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; * @return The structUpd. */ com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd getStructUpd(); /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder getStructUpdOrBuilder(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_2.Expr.App app = 15; * @return Whether the app field is set. */ boolean hasApp(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_2.Expr.App app = 15; * @return The app. */ com.daml.daml_lf_dev.DamlLf2.Expr.App getApp(); /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_2.Expr.App app = 15; */ com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder getAppOrBuilder(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; * @return Whether the tyApp field is set. */ boolean hasTyApp(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; * @return The tyApp. */ com.daml.daml_lf_dev.DamlLf2.Expr.TyApp getTyApp(); /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder getTyAppOrBuilder(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_2.Expr.Abs abs = 17; * @return Whether the abs field is set. */ boolean hasAbs(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_2.Expr.Abs abs = 17; * @return The abs. */ com.daml.daml_lf_dev.DamlLf2.Expr.Abs getAbs(); /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_2.Expr.Abs abs = 17; */ com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder getAbsOrBuilder(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; * @return Whether the tyAbs field is set. */ boolean hasTyAbs(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; * @return The tyAbs. */ com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs getTyAbs(); /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder getTyAbsOrBuilder(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_2.Case case = 19; * @return Whether the case field is set. */ boolean hasCase(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_2.Case case = 19; * @return The case. */ com.daml.daml_lf_dev.DamlLf2.Case getCase(); /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_2.Case case = 19; */ com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder getCaseOrBuilder(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_2.Block let = 20; * @return Whether the let field is set. */ boolean hasLet(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_2.Block let = 20; * @return The let. */ com.daml.daml_lf_dev.DamlLf2.Block getLet(); /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_2.Block let = 20; */ com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getLetOrBuilder(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_2.Expr.Nil nil = 21; * @return Whether the nil field is set. */ boolean hasNil(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_2.Expr.Nil nil = 21; * @return The nil. */ com.daml.daml_lf_dev.DamlLf2.Expr.Nil getNil(); /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_2.Expr.Nil nil = 21; */ com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder getNilOrBuilder(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_2.Expr.Cons cons = 22; * @return Whether the cons field is set. */ boolean hasCons(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_2.Expr.Cons cons = 22; * @return The cons. */ com.daml.daml_lf_dev.DamlLf2.Expr.Cons getCons(); /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_2.Expr.Cons cons = 22; */ com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder getConsOrBuilder(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_2.Update update = 23; * @return Whether the update field is set. */ boolean hasUpdate(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_2.Update update = 23; * @return The update. */ com.daml.daml_lf_dev.DamlLf2.Update getUpdate(); /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_2.Update update = 23; */ com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder getUpdateOrBuilder(); /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; * @return Whether the optionalNone field is set. */ boolean hasOptionalNone(); /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; * @return The optionalNone. */ com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone getOptionalNone(); /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder(); /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; * @return Whether the optionalSome field is set. */ boolean hasOptionalSome(); /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; * @return The optionalSome. */ com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome getOptionalSome(); /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * 
* * .daml_lf_2.Expr.ToAny to_any = 27; * @return Whether the toAny field is set. */ boolean hasToAny(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * 
* * .daml_lf_2.Expr.ToAny to_any = 27; * @return The toAny. */ com.daml.daml_lf_dev.DamlLf2.Expr.ToAny getToAny(); /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder getToAnyOrBuilder(); /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * 
* * .daml_lf_2.Expr.FromAny from_any = 28; * @return Whether the fromAny field is set. */ boolean hasFromAny(); /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * 
* * .daml_lf_2.Expr.FromAny from_any = 28; * @return The fromAny. */ com.daml.daml_lf_dev.DamlLf2.Expr.FromAny getFromAny(); /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder getFromAnyOrBuilder(); /** *
     * A type representation
     * 
* * .daml_lf_2.Type type_rep = 29; * @return Whether the typeRep field is set. */ boolean hasTypeRep(); /** *
     * A type representation
     * 
* * .daml_lf_2.Type type_rep = 29; * @return The typeRep. */ com.daml.daml_lf_dev.DamlLf2.Type getTypeRep(); /** *
     * A type representation
     * 
* * .daml_lf_2.Type type_rep = 29; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeRepOrBuilder(); /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; * @return Whether the toAnyException field is set. */ boolean hasToAnyException(); /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; * @return The toAnyException. */ com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException getToAnyException(); /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder getToAnyExceptionOrBuilder(); /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; * @return Whether the fromAnyException field is set. */ boolean hasFromAnyException(); /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; * @return The fromAnyException. */ com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException getFromAnyException(); /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder getFromAnyExceptionOrBuilder(); /** *
     * Throw an exception ('ExpThrow').
     * 
* * .daml_lf_2.Expr.Throw throw = 32; * @return Whether the throw field is set. */ boolean hasThrow(); /** *
     * Throw an exception ('ExpThrow').
     * 
* * .daml_lf_2.Expr.Throw throw = 32; * @return The throw. */ com.daml.daml_lf_dev.DamlLf2.Expr.Throw getThrow(); /** *
     * Throw an exception ('ExpThrow').
     * 
* * .daml_lf_2.Expr.Throw throw = 32; */ com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder getThrowOrBuilder(); /** *
     * Convert to/from interface payloads.
     * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; * @return Whether the toInterface field is set. */ boolean hasToInterface(); /** *
     * Convert to/from interface payloads.
     * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; * @return The toInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface getToInterface(); /** *
     * Convert to/from interface payloads.
     * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder getToInterfaceOrBuilder(); /** * .daml_lf_2.Expr.FromInterface from_interface = 34; * @return Whether the fromInterface field is set. */ boolean hasFromInterface(); /** * .daml_lf_2.Expr.FromInterface from_interface = 34; * @return The fromInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface getFromInterface(); /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder getFromInterfaceOrBuilder(); /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; * @return Whether the callInterface field is set. */ boolean hasCallInterface(); /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; * @return The callInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface getCallInterface(); /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; * @return Whether the signatoryInterface field is set. */ boolean hasSignatoryInterface(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; * @return The signatoryInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface getSignatoryInterface(); /** *
     * Obtain a contract's signatories/observers through an interface.
     * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder(); /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; * @return Whether the observerInterface field is set. */ boolean hasObserverInterface(); /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; * @return The observerInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface getObserverInterface(); /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder(); /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; * @return Whether the viewInterface field is set. */ boolean hasViewInterface(); /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; * @return The viewInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface getViewInterface(); /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder getViewInterfaceOrBuilder(); /** *
     * Unsafe conversion from interface payloads.
     * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; * @return Whether the unsafeFromInterface field is set. */ boolean hasUnsafeFromInterface(); /** *
     * Unsafe conversion from interface payloads.
     * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; * @return The unsafeFromInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface getUnsafeFromInterface(); /** *
     * Unsafe conversion from interface payloads.
     * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; * @return Whether the interfaceTemplateTypeRep field is set. */ boolean hasInterfaceTemplateTypeRep(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; * @return The interfaceTemplateTypeRep. */ com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep(); /** *
     * Obtain the type representation of a contract's template through an interface.
     * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder(); /** *
     * Upcast/downcast interface payloads.
     * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; * @return Whether the toRequiredInterface field is set. */ boolean hasToRequiredInterface(); /** *
     * Upcast/downcast interface payloads.
     * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; * @return The toRequiredInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface getToRequiredInterface(); /** *
     * Upcast/downcast interface payloads.
     * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder(); /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; * @return Whether the fromRequiredInterface field is set. */ boolean hasFromRequiredInterface(); /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; * @return The fromRequiredInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface getFromRequiredInterface(); /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder(); /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; * @return Whether the unsafeFromRequiredInterface field is set. */ boolean hasUnsafeFromRequiredInterface(); /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; * @return The unsafeFromRequiredInterface. */ com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface(); /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder(); /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; * @return Whether the choiceController field is set. */ boolean hasChoiceController(); /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; * @return The choiceController. */ com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController getChoiceController(); /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder getChoiceControllerOrBuilder(); /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; * @return Whether the choiceObserver field is set. */ boolean hasChoiceObserver(); /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; * @return The choiceObserver. */ com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver getChoiceObserver(); /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder getChoiceObserverOrBuilder(); /** *
     * Scenario Expression ('ExpScenario')
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Scenario scenario = 1003; * @return Whether the scenario field is set. */ boolean hasScenario(); /** *
     * Scenario Expression ('ExpScenario')
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Scenario scenario = 1003; * @return The scenario. */ com.daml.daml_lf_dev.DamlLf2.Scenario getScenario(); /** *
     * Scenario Expression ('ExpScenario')
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Scenario scenario = 1003; */ com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder getScenarioOrBuilder(); /** *
     * *Available only in 2.dev*
     * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; * @return Whether the experimental field is set. */ boolean hasExperimental(); /** *
     * *Available only in 2.dev*
     * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; * @return The experimental. */ com.daml.daml_lf_dev.DamlLf2.Expr.Experimental getExperimental(); /** *
     * *Available only in 2.dev*
     * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder getExperimentalOrBuilder(); com.daml.daml_lf_dev.DamlLf2.Expr.SumCase getSumCase(); } /** *
   * Expressions
   * 
* * Protobuf type {@code daml_lf_2.Expr} */ public static final class Expr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.class, com.daml.daml_lf_dev.DamlLf2.Expr.Builder.class); } public interface RecConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.RecCon) com.google.protobuf.MessageOrBuilder { /** *
       * type of the record being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the record being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon(); /** *
       * type of the record being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ java.util.List getFieldsList(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ com.daml.daml_lf_dev.DamlLf2.FieldWithExpr getFields(int index); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ int getFieldsCount(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ java.util.List getFieldsOrBuilderList(); /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder getFieldsOrBuilder( int index); } /** *
     * Record construction ('ExpRecCon')
     * 
* * Protobuf type {@code daml_lf_2.Expr.RecCon} */ public static final class RecCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_RecCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder.class); } private int bitField0_; public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type.Con tycon_; /** *
       * type of the record being constructed
       * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr getFields(int index) { return fields_.get(index); } /** *
       * Field names and the associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.RecCon other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.RecCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.RecCon) com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_RecCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecCon build() { com.daml.daml_lf_dev.DamlLf2.Expr.RecCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecCon buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.RecCon result = new com.daml.daml_lf_dev.DamlLf2.Expr.RecCon(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.RecCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.RecCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.RecCon other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being constructed
         * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being constructed
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder setTycon( com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf2.Type.Con value) { if (tyconBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder getTyconBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being constructed
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being constructed
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder> fieldsBuilder_; /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_2.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_2.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_2.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ public Builder addFields(com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ public Builder addFields( com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 2; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and the associated values.
         * 
* * repeated .daml_lf_2.FieldWithExpr fields = 2; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithExpr, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithExpr, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.RecCon) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.RecCon) private static final com.daml.daml_lf_dev.DamlLf2.Expr.RecCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.RecCon(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecProjOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.RecProj) com.google.protobuf.MessageOrBuilder { /** *
       * type of the record being projected.
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the record being projected.
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon(); /** *
       * type of the record being projected.
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * projected expression
       * 
* * .daml_lf_2.Expr record = 3; * @return Whether the record field is set. */ boolean hasRecord(); /** *
       * projected expression
       * 
* * .daml_lf_2.Expr record = 3; * @return The record. */ com.daml.daml_lf_dev.DamlLf2.Expr getRecord(); /** *
       * projected expression
       * 
* * .daml_lf_2.Expr record = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getRecordOrBuilder(); } /** *
     * Record projection (ExpRecProj)
     * 
* * Protobuf type {@code daml_lf_2.Expr.RecProj} */ public static final class RecProj extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_RecProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.class, com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder.class); } private int bitField0_; public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type.Con tycon_; /** *
       * type of the record being projected.
       * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being projected.
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 4; private int fieldInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } public static final int RECORD_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr record_; /** *
       * projected expression
       * 
* * .daml_lf_2.Expr record = 3; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * projected expression
       * 
* * .daml_lf_2.Expr record = 3; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getRecord() { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } /** *
       * projected expression
       * 
* * .daml_lf_2.Expr record = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getRecordOrBuilder() { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getRecord()); } if (fieldInternedStr_ != 0) { output.writeInt32(4, fieldInternedStr_); } 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecord()); } if (fieldInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, fieldInternedStr_); } 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.DamlLf2.Expr.RecProj)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.RecProj other = (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (getFieldInternedStr() != other.getFieldInternedStr()) return false; if (hasRecord() != other.hasRecord()) return false; if (hasRecord()) { if (!getRecord() .equals(other.getRecord())) 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(); } hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); if (hasRecord()) { hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Expr.RecProj parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecProj parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecProj parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.RecProj} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.RecProj) com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.class, com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } fieldInternedStr_ = 0; record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecProj_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProj getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProj build() { com.daml.daml_lf_dev.DamlLf2.Expr.RecProj result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProj buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.RecProj result = new com.daml.daml_lf_dev.DamlLf2.Expr.RecProj(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 0x00000002) != 0)) { result.fieldInternedStr_ = fieldInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.record_ = recordBuilder_ == null ? record_ : recordBuilder_.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.DamlLf2.Expr.RecProj) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.RecProj)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.RecProj other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.getFieldInternedStr() != 0) { setFieldInternedStr(other.getFieldInternedStr()); } if (other.hasRecord()) { mergeRecord(other.getRecord()); } 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 26: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { fieldInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; 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 com.daml.daml_lf_dev.DamlLf2.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being projected.
         * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being projected.
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder setTycon( com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf2.Type.Con value) { if (tyconBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder getTyconBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being projected.
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being projected.
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private int fieldInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } /** *
         * *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) { fieldInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 4; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); fieldInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr record_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> recordBuilder_; /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; * @return Whether the record field is set. */ public boolean hasRecord() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; * @return The record. */ public com.daml.daml_lf_dev.DamlLf2.Expr getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder setRecord(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } record_ = value; } else { recordBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder setRecord( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (recordBuilder_ == null) { record_ = builderForValue.build(); } else { recordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (recordBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && record_ != null && record_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getRecordBuilder().mergeFrom(value); } else { record_ = value; } } else { recordBuilder_.mergeFrom(value); } if (record_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder clearRecord() { bitField0_ = (bitField0_ & ~0x00000004); record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } onChanged(); return this; } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getRecordBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } } /** *
         * projected expression
         * 
* * .daml_lf_2.Expr record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.RecProj) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.RecProj) private static final com.daml.daml_lf_dev.DamlLf2.Expr.RecProj DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.RecProj(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecProj getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecUpdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.RecUpd) com.google.protobuf.MessageOrBuilder { /** *
       * type of the record being updated
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the record being updated
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon(); /** *
       * type of the record being updated
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 2; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * Actual record being updated
       * 
* * .daml_lf_2.Expr record = 3; * @return Whether the record field is set. */ boolean hasRecord(); /** *
       * Actual record being updated
       * 
* * .daml_lf_2.Expr record = 3; * @return The record. */ com.daml.daml_lf_dev.DamlLf2.Expr getRecord(); /** *
       * Actual record being updated
       * 
* * .daml_lf_2.Expr record = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getRecordOrBuilder(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_2.Expr update = 4; * @return Whether the update field is set. */ boolean hasUpdate(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_2.Expr update = 4; * @return The update. */ com.daml.daml_lf_dev.DamlLf2.Expr getUpdate(); /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_2.Expr update = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder(); } /** *
     * Record update ('ExpRecUp')
     * 
* * Protobuf type {@code daml_lf_2.Expr.RecUpd} */ public static final class RecUpd extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_RecUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.class, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder.class); } private int bitField0_; public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type.Con tycon_; /** *
       * type of the record being updated
       * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the record being updated
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 2; private int fieldInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 2; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } public static final int RECORD_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr record_; /** *
       * Actual record being updated
       * 
* * .daml_lf_2.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_2.Expr record = 3; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getRecord() { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } /** *
       * Actual record being updated
       * 
* * .daml_lf_2.Expr record = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getRecordOrBuilder() { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } public static final int UPDATE_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr update_; /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_2.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_2.Expr update = 4; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getUpdate() { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } /** *
       * Value to wich the record is udpated
       * 
* * .daml_lf_2.Expr update = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder() { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (fieldInternedStr_ != 0) { output.writeInt32(2, fieldInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getRecord()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getUpdate()); } 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 (fieldInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, fieldInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRecord()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdate()); } 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.DamlLf2.Expr.RecUpd)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd other = (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (getFieldInternedStr() != other.getFieldInternedStr()) 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 (!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(); } hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecUpd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecUpd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.RecUpd} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.RecUpd) com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.class, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } fieldInternedStr_ = 0; record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_RecUpd_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd build() { com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd result = new com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 0x00000002) != 0)) { result.fieldInternedStr_ = fieldInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.record_ = recordBuilder_ == null ? record_ : recordBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.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.DamlLf2.Expr.RecUpd) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.getFieldInternedStr() != 0) { setFieldInternedStr(other.getFieldInternedStr()); } if (other.hasRecord()) { mergeRecord(other.getRecord()); } if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } 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 16: { fieldInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getUpdateFieldBuilder().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.DamlLf2.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the record being updated
         * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the record being updated
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder setTycon( com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf2.Type.Con value) { if (tyconBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder getTyconBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the record being updated
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the record being updated
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private int fieldInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 2; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 2; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 2; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); fieldInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr record_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> recordBuilder_; /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; * @return Whether the record field is set. */ public boolean hasRecord() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; * @return The record. */ public com.daml.daml_lf_dev.DamlLf2.Expr getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder setRecord(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } record_ = value; } else { recordBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder setRecord( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (recordBuilder_ == null) { record_ = builderForValue.build(); } else { recordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (recordBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && record_ != null && record_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getRecordBuilder().mergeFrom(value); } else { record_ = value; } } else { recordBuilder_.mergeFrom(value); } if (record_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ public Builder clearRecord() { bitField0_ = (bitField0_ & ~0x00000004); record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } onChanged(); return this; } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getRecordBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : record_; } } /** *
         * Actual record being updated
         * 
* * .daml_lf_2.Expr record = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getRecord(), getParentForChildren(), isClean()); record_ = null; } return recordBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> updateBuilder_; /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; * @return Whether the update field is set. */ public boolean hasUpdate() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; * @return The update. */ public com.daml.daml_lf_dev.DamlLf2.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ public Builder setUpdate(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; } else { updateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ public Builder setUpdate( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); } else { updateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (updateBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && update_ != null && update_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; } } else { updateBuilder_.mergeFrom(value); } if (update_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ public Builder clearUpdate() { bitField0_ = (bitField0_ & ~0x00000008); update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } onChanged(); return this; } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getUpdateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } } /** *
         * Value to wich the record is udpated
         * 
* * .daml_lf_2.Expr update = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.RecUpd) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.RecUpd) private static final com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.RecUpd getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariantConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.VariantCon) com.google.protobuf.MessageOrBuilder { /** *
       * type of the variant being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * type of the variant being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon(); /** *
       * type of the variant being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 2; * @return The variantConInternedStr. */ int getVariantConInternedStr(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_2.Expr variant_arg = 3; * @return Whether the variantArg field is set. */ boolean hasVariantArg(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_2.Expr variant_arg = 3; * @return The variantArg. */ com.daml.daml_lf_dev.DamlLf2.Expr getVariantArg(); /** *
       * Argument of the variant.
       * 
* * .daml_lf_2.Expr variant_arg = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getVariantArgOrBuilder(); } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * Protobuf type {@code daml_lf_2.Expr.VariantCon} */ public static final class VariantCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_VariantCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_VariantCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder.class); } private int bitField0_; public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type.Con tycon_; /** *
       * type of the variant being constructed
       * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } /** *
       * type of the variant being constructed
       * 
* * .daml_lf_2.Type.Con tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } public static final int VARIANT_CON_INTERNED_STR_FIELD_NUMBER = 2; private int variantConInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_con_interned_str = 2; * @return The variantConInternedStr. */ @java.lang.Override public int getVariantConInternedStr() { return variantConInternedStr_; } public static final int VARIANT_ARG_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr variantArg_; /** *
       * Argument of the variant.
       * 
* * .daml_lf_2.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_2.Expr variant_arg = 3; * @return The variantArg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getVariantArg() { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : variantArg_; } /** *
       * Argument of the variant.
       * 
* * .daml_lf_2.Expr variant_arg = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getVariantArgOrBuilder() { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (variantConInternedStr_ != 0) { output.writeInt32(2, variantConInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getVariantArg()); } 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 (variantConInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, variantConInternedStr_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getVariantArg()); } 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.DamlLf2.Expr.VariantCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon other = (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (getVariantConInternedStr() != other.getVariantConInternedStr()) return false; if (hasVariantArg() != other.hasVariantArg()) return false; if (hasVariantArg()) { if (!getVariantArg() .equals(other.getVariantArg())) 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(); } hash = (37 * hash) + VARIANT_CON_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVariantConInternedStr(); if (hasVariantArg()) { hash = (37 * hash) + VARIANT_ARG_FIELD_NUMBER; hash = (53 * hash) + getVariantArg().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.VariantCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.VariantCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.VariantCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.VariantCon) com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_VariantCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_VariantCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } variantConInternedStr_ = 0; variantArg_ = null; if (variantArgBuilder_ != null) { variantArgBuilder_.dispose(); variantArgBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_VariantCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon build() { com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon result = new com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 0x00000002) != 0)) { result.variantConInternedStr_ = variantConInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.variantArg_ = variantArgBuilder_ == null ? variantArg_ : variantArgBuilder_.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.DamlLf2.Expr.VariantCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.getVariantConInternedStr() != 0) { setVariantConInternedStr(other.getVariantConInternedStr()); } if (other.hasVariantArg()) { mergeVariantArg(other.getVariantArg()); } 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 16: { variantConInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getVariantArgFieldBuilder().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.DamlLf2.Type.Con tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> tyconBuilder_; /** *
         * type of the variant being constructed
         * 
* * .daml_lf_2.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_2.Type.Con tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf2.Type.Con getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder setTycon( com.daml.daml_lf_dev.DamlLf2.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_2.Type.Con tycon = 1; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf2.Type.Con value) { if (tyconBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder getTyconBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.Con.getDefaultInstance() : tycon_; } } /** *
         * type of the variant being constructed
         * 
* * .daml_lf_2.Type.Con tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type.Con, com.daml.daml_lf_dev.DamlLf2.Type.Con.Builder, com.daml.daml_lf_dev.DamlLf2.Type.ConOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private int variantConInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 2; * @return The variantConInternedStr. */ @java.lang.Override public int getVariantConInternedStr() { return variantConInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 2; * @param value The variantConInternedStr to set. * @return This builder for chaining. */ public Builder setVariantConInternedStr(int value) { variantConInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_con_interned_str = 2; * @return This builder for chaining. */ public Builder clearVariantConInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); variantConInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr variantArg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> variantArgBuilder_; /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; * @return Whether the variantArg field is set. */ public boolean hasVariantArg() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; * @return The variantArg. */ public com.daml.daml_lf_dev.DamlLf2.Expr getVariantArg() { if (variantArgBuilder_ == null) { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : variantArg_; } else { return variantArgBuilder_.getMessage(); } } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ public Builder setVariantArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (variantArgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } variantArg_ = value; } else { variantArgBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ public Builder setVariantArg( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (variantArgBuilder_ == null) { variantArg_ = builderForValue.build(); } else { variantArgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ public Builder mergeVariantArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (variantArgBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && variantArg_ != null && variantArg_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getVariantArgBuilder().mergeFrom(value); } else { variantArg_ = value; } } else { variantArgBuilder_.mergeFrom(value); } if (variantArg_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ public Builder clearVariantArg() { bitField0_ = (bitField0_ & ~0x00000004); variantArg_ = null; if (variantArgBuilder_ != null) { variantArgBuilder_.dispose(); variantArgBuilder_ = null; } onChanged(); return this; } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getVariantArgBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVariantArgFieldBuilder().getBuilder(); } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getVariantArgOrBuilder() { if (variantArgBuilder_ != null) { return variantArgBuilder_.getMessageOrBuilder(); } else { return variantArg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : variantArg_; } } /** *
         * Argument of the variant.
         * 
* * .daml_lf_2.Expr variant_arg = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getVariantArgFieldBuilder() { if (variantArgBuilder_ == null) { variantArgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.VariantCon) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.VariantCon) private static final com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.VariantCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.EnumCon) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; * @return Whether the tycon field is set. */ boolean hasTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; * @return The tycon. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTycon(); /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTyconOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 2; * @return The enumConInternedStr. */ int getEnumConInternedStr(); } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * Protobuf type {@code daml_lf_2.Expr.EnumCon} */ public static final class EnumCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_EnumCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_EnumCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder.class); } private int bitField0_; public static final int TYCON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName tycon_; /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.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_2.TypeConName tycon = 1; * @return The tycon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTycon() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } /** *
       * Name of the type constructor name
       * 
* * .daml_lf_2.TypeConName tycon = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTyconOrBuilder() { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } public static final int ENUM_CON_INTERNED_STR_FIELD_NUMBER = 2; private int enumConInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 enum_con_interned_str = 2; * @return The enumConInternedStr. */ @java.lang.Override public int getEnumConInternedStr() { return enumConInternedStr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (enumConInternedStr_ != 0) { output.writeInt32(2, enumConInternedStr_); } 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 (enumConInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, enumConInternedStr_); } 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.DamlLf2.Expr.EnumCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon other = (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) obj; if (hasTycon() != other.hasTycon()) return false; if (hasTycon()) { if (!getTycon() .equals(other.getTycon())) return false; } if (getEnumConInternedStr() != other.getEnumConInternedStr()) 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(); } hash = (37 * hash) + ENUM_CON_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getEnumConInternedStr(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.EnumCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.EnumCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.EnumCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.EnumCon) com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_EnumCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_EnumCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } enumConInternedStr_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_EnumCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon build() { com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon result = new com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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; } if (((from_bitField0_ & 0x00000002) != 0)) { result.enumConInternedStr_ = enumConInternedStr_; } 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.DamlLf2.Expr.EnumCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance()) return this; if (other.hasTycon()) { mergeTycon(other.getTycon()); } if (other.getEnumConInternedStr() != 0) { setEnumConInternedStr(other.getEnumConInternedStr()); } 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 16: { enumConInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.TypeConName tycon_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> tyconBuilder_; /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.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_2.TypeConName tycon = 1; * @return The tycon. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTycon() { if (tyconBuilder_ == null) { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } else { return tyconBuilder_.getMessage(); } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.TypeConName tycon = 1; */ public Builder setTycon(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName tycon = 1; */ public Builder setTycon( com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName tycon = 1; */ public Builder mergeTycon(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (tyconBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tycon_ != null && tycon_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTyconBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTyconFieldBuilder().getBuilder(); } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.TypeConName tycon = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTyconOrBuilder() { if (tyconBuilder_ != null) { return tyconBuilder_.getMessageOrBuilder(); } else { return tycon_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : tycon_; } } /** *
         * Name of the type constructor name
         * 
* * .daml_lf_2.TypeConName tycon = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTyconFieldBuilder() { if (tyconBuilder_ == null) { tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTycon(), getParentForChildren(), isClean()); tycon_ = null; } return tyconBuilder_; } private int enumConInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 2; * @return The enumConInternedStr. */ @java.lang.Override public int getEnumConInternedStr() { return enumConInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 2; * @param value The enumConInternedStr to set. * @return This builder for chaining. */ public Builder setEnumConInternedStr(int value) { enumConInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 enum_con_interned_str = 2; * @return This builder for chaining. */ public Builder clearEnumConInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); enumConInternedStr_ = 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_2.Expr.EnumCon) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.EnumCon) private static final com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.EnumCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructConOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.StructCon) com.google.protobuf.MessageOrBuilder { /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ java.util.List getFieldsList(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ com.daml.daml_lf_dev.DamlLf2.FieldWithExpr getFields(int index); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ int getFieldsCount(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ java.util.List getFieldsOrBuilderList(); /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder getFieldsOrBuilder( int index); } /** *
     * Struct Construction ('ExpStructCon')
     * 
* * Protobuf type {@code daml_lf_2.Expr.StructCon} */ public static final class StructCon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_StructCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.class, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr getFields(int index) { return fields_.get(index); } /** *
       * Field names and their associated values.
       * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructCon)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.StructCon other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructCon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructCon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructCon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.StructCon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.StructCon) com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructCon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructCon_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.class, com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_StructCon_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructCon getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructCon build() { com.daml.daml_lf_dev.DamlLf2.Expr.StructCon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructCon buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.StructCon result = new com.daml.daml_lf_dev.DamlLf2.Expr.StructCon(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.StructCon) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.StructCon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.StructCon other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithExpr, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder> fieldsBuilder_; /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_2.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_2.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_2.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ public Builder addFields(com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ public Builder addFields( com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithExpr fields = 1; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.getDefaultInstance()); } /** *
         * Field names and their associated values.
         * 
* * repeated .daml_lf_2.FieldWithExpr fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithExpr, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithExprOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithExpr, com.daml.daml_lf_dev.DamlLf2.FieldWithExpr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.StructCon) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.StructCon) private static final com.daml.daml_lf_dev.DamlLf2.Expr.StructCon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.StructCon(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructCon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructProjOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.StructProj) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 1; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * struct to be projected.
       * 
* * .daml_lf_2.Expr struct = 2; * @return Whether the struct field is set. */ boolean hasStruct(); /** *
       * struct to be projected.
       * 
* * .daml_lf_2.Expr struct = 2; * @return The struct. */ com.daml.daml_lf_dev.DamlLf2.Expr getStruct(); /** *
       * struct to be projected.
       * 
* * .daml_lf_2.Expr struct = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getStructOrBuilder(); } /** *
     * Struct Projection ('ExpStructProj')
     * 
* * Protobuf type {@code daml_lf_2.Expr.StructProj} */ public static final class StructProj extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_StructProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.class, com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder.class); } private int bitField0_; public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 1; private int fieldInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 1; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } public static final int STRUCT_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr struct_; /** *
       * struct to be projected.
       * 
* * .daml_lf_2.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_2.Expr struct = 2; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getStruct() { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } /** *
       * struct to be projected.
       * 
* * .daml_lf_2.Expr struct = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getStructOrBuilder() { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (fieldInternedStr_ != 0) { output.writeInt32(1, fieldInternedStr_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStruct()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, fieldInternedStr_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStruct()); } 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.DamlLf2.Expr.StructProj)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.StructProj other = (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) obj; if (getFieldInternedStr() != other.getFieldInternedStr()) return false; if (hasStruct() != other.hasStruct()) return false; if (hasStruct()) { if (!getStruct() .equals(other.getStruct())) 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) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); if (hasStruct()) { hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Expr.StructProj parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructProj parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructProj parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.StructProj} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.StructProj) com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructProj_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructProj_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.class, com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; fieldInternedStr_ = 0; struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructProj_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProj getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProj build() { com.daml.daml_lf_dev.DamlLf2.Expr.StructProj result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProj buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.StructProj result = new com.daml.daml_lf_dev.DamlLf2.Expr.StructProj(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Expr.StructProj result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldInternedStr_ = fieldInternedStr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.struct_ = structBuilder_ == null ? struct_ : structBuilder_.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.DamlLf2.Expr.StructProj) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.StructProj)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.StructProj other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance()) return this; if (other.getFieldInternedStr() != 0) { setFieldInternedStr(other.getFieldInternedStr()); } if (other.hasStruct()) { mergeStruct(other.getStruct()); } 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: { fieldInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getStructFieldBuilder().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 fieldInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 1; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 1; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 1; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); fieldInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr struct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> structBuilder_; /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; * @return Whether the struct field is set. */ public boolean hasStruct() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; * @return The struct. */ public com.daml.daml_lf_dev.DamlLf2.Expr getStruct() { if (structBuilder_ == null) { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } else { return structBuilder_.getMessage(); } } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder setStruct(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } struct_ = value; } else { structBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder setStruct( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (structBuilder_ == null) { struct_ = builderForValue.build(); } else { structBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder mergeStruct(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (structBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && struct_ != null && struct_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getStructBuilder().mergeFrom(value); } else { struct_ = value; } } else { structBuilder_.mergeFrom(value); } if (struct_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder clearStruct() { bitField0_ = (bitField0_ & ~0x00000002); struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } onChanged(); return this; } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getStructBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStructFieldBuilder().getBuilder(); } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getStructOrBuilder() { if (structBuilder_ != null) { return structBuilder_.getMessageOrBuilder(); } else { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } } /** *
         * struct to be projected.
         * 
* * .daml_lf_2.Expr struct = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.StructProj) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.StructProj) private static final com.daml.daml_lf_dev.DamlLf2.Expr.StructProj DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.StructProj(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructProj getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructUpdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.StructUpd) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 1; * @return The fieldInternedStr. */ int getFieldInternedStr(); /** *
       * Actual struct being updated.
       * 
* * .daml_lf_2.Expr struct = 2; * @return Whether the struct field is set. */ boolean hasStruct(); /** *
       * Actual struct being updated.
       * 
* * .daml_lf_2.Expr struct = 2; * @return The struct. */ com.daml.daml_lf_dev.DamlLf2.Expr getStruct(); /** *
       * Actual struct being updated.
       * 
* * .daml_lf_2.Expr struct = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getStructOrBuilder(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_2.Expr update = 3; * @return Whether the update field is set. */ boolean hasUpdate(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_2.Expr update = 3; * @return The update. */ com.daml.daml_lf_dev.DamlLf2.Expr getUpdate(); /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_2.Expr update = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder(); } /** *
     * Struct update ('ExpTuplUpdate')
     * 
* * Protobuf type {@code daml_lf_2.Expr.StructUpd} */ public static final class StructUpd extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_StructUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.class, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder.class); } private int bitField0_; public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 1; private int fieldInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 field_interned_str = 1; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } public static final int STRUCT_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr struct_; /** *
       * Actual struct being updated.
       * 
* * .daml_lf_2.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_2.Expr struct = 2; * @return The struct. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getStruct() { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } /** *
       * Actual struct being updated.
       * 
* * .daml_lf_2.Expr struct = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getStructOrBuilder() { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } public static final int UPDATE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr update_; /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_2.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_2.Expr update = 3; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getUpdate() { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } /** *
       * Value to which the record is udpated.
       * 
* * .daml_lf_2.Expr update = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder() { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (fieldInternedStr_ != 0) { output.writeInt32(1, fieldInternedStr_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStruct()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, fieldInternedStr_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStruct()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpdate()); } 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.DamlLf2.Expr.StructUpd)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd other = (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) obj; if (getFieldInternedStr() != other.getFieldInternedStr()) return false; 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 (!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) + FIELD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getFieldInternedStr(); 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructUpd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructUpd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.StructUpd} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.StructUpd) com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructUpd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructUpd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.class, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; fieldInternedStr_ = 0; struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_StructUpd_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd build() { com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd result = new com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldInternedStr_ = fieldInternedStr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.struct_ = structBuilder_ == null ? struct_ : structBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.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.DamlLf2.Expr.StructUpd) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance()) return this; if (other.getFieldInternedStr() != 0) { setFieldInternedStr(other.getFieldInternedStr()); } if (other.hasStruct()) { mergeStruct(other.getStruct()); } if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } 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: { fieldInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getStructFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getUpdateFieldBuilder().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 fieldInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 1; * @return The fieldInternedStr. */ @java.lang.Override public int getFieldInternedStr() { return fieldInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 1; * @param value The fieldInternedStr to set. * @return This builder for chaining. */ public Builder setFieldInternedStr(int value) { fieldInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 field_interned_str = 1; * @return This builder for chaining. */ public Builder clearFieldInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); fieldInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr struct_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> structBuilder_; /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; * @return Whether the struct field is set. */ public boolean hasStruct() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; * @return The struct. */ public com.daml.daml_lf_dev.DamlLf2.Expr getStruct() { if (structBuilder_ == null) { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } else { return structBuilder_.getMessage(); } } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder setStruct(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } struct_ = value; } else { structBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder setStruct( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (structBuilder_ == null) { struct_ = builderForValue.build(); } else { structBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder mergeStruct(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (structBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && struct_ != null && struct_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getStructBuilder().mergeFrom(value); } else { struct_ = value; } } else { structBuilder_.mergeFrom(value); } if (struct_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ public Builder clearStruct() { bitField0_ = (bitField0_ & ~0x00000002); struct_ = null; if (structBuilder_ != null) { structBuilder_.dispose(); structBuilder_ = null; } onChanged(); return this; } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getStructBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStructFieldBuilder().getBuilder(); } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getStructOrBuilder() { if (structBuilder_ != null) { return structBuilder_.getMessageOrBuilder(); } else { return struct_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : struct_; } } /** *
         * Actual struct being updated.
         * 
* * .daml_lf_2.Expr struct = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getStruct(), getParentForChildren(), isClean()); struct_ = null; } return structBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> updateBuilder_; /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; * @return Whether the update field is set. */ public boolean hasUpdate() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; * @return The update. */ public com.daml.daml_lf_dev.DamlLf2.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ public Builder setUpdate(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; } else { updateBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ public Builder setUpdate( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); } else { updateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (updateBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && update_ != null && update_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; } } else { updateBuilder_.mergeFrom(value); } if (update_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ public Builder clearUpdate() { bitField0_ = (bitField0_ & ~0x00000004); update_ = null; if (updateBuilder_ != null) { updateBuilder_.dispose(); updateBuilder_ = null; } onChanged(); return this; } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getUpdateBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } } /** *
         * Value to which the record is udpated.
         * 
* * .daml_lf_2.Expr update = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.StructUpd) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.StructUpd) private static final com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.StructUpd getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AppOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.App) com.google.protobuf.MessageOrBuilder { /** *
       * Function
       * 
* * .daml_lf_2.Expr fun = 1; * @return Whether the fun field is set. */ boolean hasFun(); /** *
       * Function
       * 
* * .daml_lf_2.Expr fun = 1; * @return The fun. */ com.daml.daml_lf_dev.DamlLf2.Expr getFun(); /** *
       * Function
       * 
* * .daml_lf_2.Expr fun = 1; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getFunOrBuilder(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ java.util.List getArgsList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ com.daml.daml_lf_dev.DamlLf2.Expr getArgs(int index); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ int getArgsCount(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ java.util.List getArgsOrBuilderList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgsOrBuilder( int index); } /** *
     * Application ('ExpApp')
     * 
* * Protobuf type {@code daml_lf_2.Expr.App} */ public static final class App extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_App_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_App_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.App.class, com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder.class); } private int bitField0_; public static final int FUN_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Expr fun_; /** *
       * Function
       * 
* * .daml_lf_2.Expr fun = 1; * @return Whether the fun field is set. */ @java.lang.Override public boolean hasFun() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Function
       * 
* * .daml_lf_2.Expr fun = 1; * @return The fun. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getFun() { return fun_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : fun_; } /** *
       * Function
       * 
* * .daml_lf_2.Expr fun = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getFunOrBuilder() { return fun_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getArgs(int index) { return args_.get(index); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr args = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.App)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.App other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.App parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.App parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.App parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.App} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.App) com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_App_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_App_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.App.class, com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_App_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.App getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.App build() { com.daml.daml_lf_dev.DamlLf2.Expr.App result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.App buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.App result = new com.daml.daml_lf_dev.DamlLf2.Expr.App(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.App) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.App)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.App other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr fun_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> funBuilder_; /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; * @return Whether the fun field is set. */ public boolean hasFun() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; * @return The fun. */ public com.daml.daml_lf_dev.DamlLf2.Expr getFun() { if (funBuilder_ == null) { return fun_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : fun_; } else { return funBuilder_.getMessage(); } } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; */ public Builder setFun(com.daml.daml_lf_dev.DamlLf2.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_2.Expr fun = 1; */ public Builder setFun( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (funBuilder_ == null) { fun_ = builderForValue.build(); } else { funBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; */ public Builder mergeFun(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (funBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && fun_ != null && fun_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getFunBuilder().mergeFrom(value); } else { fun_ = value; } } else { funBuilder_.mergeFrom(value); } if (fun_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; */ public Builder clearFun() { bitField0_ = (bitField0_ & ~0x00000001); fun_ = null; if (funBuilder_ != null) { funBuilder_.dispose(); funBuilder_ = null; } onChanged(); return this; } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getFunBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFunFieldBuilder().getBuilder(); } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getFunOrBuilder() { if (funBuilder_ != null) { return funBuilder_.getMessageOrBuilder(); } else { return fun_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : fun_; } } /** *
         * Function
         * 
* * .daml_lf_2.Expr fun = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getFunFieldBuilder() { if (funBuilder_ == null) { funBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> argsBuilder_; /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.Expr args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ public Builder setArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ public Builder addArgs(com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ public Builder addArgs( com.daml.daml_lf_dev.DamlLf2.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_2.Expr args = 2; */ public Builder addArgs( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Expr args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Expr args = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Expr args = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Expr args = 2; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.App) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.App) private static final com.daml.daml_lf_dev.DamlLf2.Expr.App DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.App(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.App getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TyAppOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.TyApp) com.google.protobuf.MessageOrBuilder { /** *
       * Polymorphic expression
       * 
* * .daml_lf_2.Expr expr = 1; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Polymorphic expression
       * 
* * .daml_lf_2.Expr expr = 1; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Polymorphic expression
       * 
* * .daml_lf_2.Expr expr = 1; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ java.util.List getTypesList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ com.daml.daml_lf_dev.DamlLf2.Type getTypes(int index); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ int getTypesCount(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ java.util.List getTypesOrBuilderList(); /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypesOrBuilder( int index); } /** *
     * Type application ('ExpTyApp')
     * 
* * Protobuf type {@code daml_lf_2.Expr.TyApp} */ public static final class TyApp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_TyApp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_TyApp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.class, com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder.class); } private int bitField0_; public static final int EXPR_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Polymorphic expression
       * 
* * .daml_lf_2.Expr expr = 1; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Polymorphic expression
       * 
* * .daml_lf_2.Expr expr = 1; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Polymorphic expression
       * 
* * .daml_lf_2.Expr expr = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ @java.lang.Override public java.util.List getTypesList() { return types_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ @java.lang.Override public java.util.List getTypesOrBuilderList() { return types_; } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ @java.lang.Override public int getTypesCount() { return types_.size(); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getTypes(int index) { return types_.get(index); } /** *
       * Arguments of the function.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Type types = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyApp)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.TyApp other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyApp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyApp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyApp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.TyApp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.TyApp) com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_TyApp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_TyApp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.class, com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_TyApp_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyApp getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyApp build() { com.daml.daml_lf_dev.DamlLf2.Expr.TyApp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyApp buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.TyApp result = new com.daml.daml_lf_dev.DamlLf2.Expr.TyApp(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.TyApp) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.TyApp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.TyApp other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.Expr expr = 1; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.Expr expr = 1; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.Expr expr = 1; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 1; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.Expr expr = 1; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.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_2.Expr expr = 1; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.Expr expr = 1; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Polymorphic expression
         * 
* * .daml_lf_2.Expr expr = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typesBuilder_; /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.Type types = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ public Builder setTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ public Builder setTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ public Builder addTypes(com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ public Builder addTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ public Builder addTypes( com.daml.daml_lf_dev.DamlLf2.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_2.Type types = 2; */ public Builder addTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Type types = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypesBuilder( int index) { return getTypesFieldBuilder().getBuilder(index); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Type types = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type types = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addTypesBuilder() { return getTypesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Type types = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addTypesBuilder( int index) { return getTypesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
         * Arguments of the function.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Type types = 2; */ public java.util.List getTypesBuilderList() { return getTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypesFieldBuilder() { if (typesBuilder_ == null) { typesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.TyApp) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.TyApp) private static final com.daml.daml_lf_dev.DamlLf2.Expr.TyApp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.TyApp(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyApp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AbsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.Abs) com.google.protobuf.MessageOrBuilder { /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ java.util.List getParamList(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ com.daml.daml_lf_dev.DamlLf2.VarWithType getParam(int index); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ int getParamCount(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ java.util.List getParamOrBuilderList(); /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getParamOrBuilder( int index); /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Expr getBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder(); } /** *
     * Abstraction ('ExpAbs')
     * 
* * Protobuf type {@code daml_lf_2.Expr.Abs} */ public static final class Abs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_Abs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Abs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Abs.class, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.VarWithType param = 1; */ @java.lang.Override public int getParamCount() { return param_.size(); } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithType getParam(int index) { return param_.get(index); } /** *
       * Abstracted Variables with their kind
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.VarWithType param = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getParamOrBuilder( int index) { return param_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr body_; /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Abs)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.Abs other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Abs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Abs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Abs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.Abs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.Abs) com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Abs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Abs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Abs.class, com.daml.daml_lf_dev.DamlLf2.Expr.Abs.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_Abs_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Abs getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Abs build() { com.daml.daml_lf_dev.DamlLf2.Expr.Abs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Abs buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.Abs result = new com.daml.daml_lf_dev.DamlLf2.Expr.Abs(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.Abs) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.Abs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.Abs other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.VarWithType m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder> paramBuilder_; /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.VarWithType param = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType param = 1; */ public Builder setParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType param = 1; */ public Builder setParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType param = 1; */ public Builder addParam(com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType param = 1; */ public Builder addParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType param = 1; */ public Builder addParam( com.daml.daml_lf_dev.DamlLf2.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_2.VarWithType param = 1; */ public Builder addParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.VarWithType param = 1; */ public com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder getParamBuilder( int index) { return getParamFieldBuilder().getBuilder(index); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.VarWithType param = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.VarWithType param = 1; */ public com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder addParamBuilder() { return getParamFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance()); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.VarWithType param = 1; */ public com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder addParamBuilder( int index) { return getParamFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance()); } /** *
         * Abstracted Variables with their kind
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.VarWithType param = 1; */ public java.util.List getParamBuilderList() { return getParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder>( param_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> bodyBuilder_; /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.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_2.Expr body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_2.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_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.Abs) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.Abs) private static final com.daml.daml_lf_dev.DamlLf2.Expr.Abs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.Abs(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Abs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TyAbsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.TyAbs) com.google.protobuf.MessageOrBuilder { /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ java.util.List getParamList(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParam(int index); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ int getParamCount(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ java.util.List getParamOrBuilderList(); /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamOrBuilder( int index); /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Expr getBody(); /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder(); } /** * Protobuf type {@code daml_lf_2.Expr.TyAbs} */ public static final class TyAbs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_TyAbs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_TyAbs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.class, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.TypeVarWithKind param = 1; */ @java.lang.Override public int getParamCount() { return param_.size(); } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParam(int index) { return param_.get(index); } /** *
       * Abstracted Variables with their type
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamOrBuilder( int index) { return param_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr body_; /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } /** *
       * Abstracted value
       * 
* * .daml_lf_2.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyAbs)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyAbs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyAbs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyAbs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.TyAbs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.TyAbs) com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_TyAbs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_TyAbs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.class, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_TyAbs_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs build() { com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs result = new com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.TyAbs) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> paramBuilder_; /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.TypeVarWithKind param = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind param = 1; */ public Builder setParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind param = 1; */ public Builder setParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind param = 1; */ public Builder addParam(com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind param = 1; */ public Builder addParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind param = 1; */ public Builder addParam( com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind param = 1; */ public Builder addParam( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.TypeVarWithKind param = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder getParamBuilder( int index) { return getParamFieldBuilder().getBuilder(index); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeVarWithKind param = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addParamBuilder() { return getParamFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addParamBuilder( int index) { return getParamFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
         * Abstracted Variables with their type
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.TypeVarWithKind param = 1; */ public java.util.List getParamBuilderList() { return getParamFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder>( param_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> bodyBuilder_; /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.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_2.Expr body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Abstracted value
         * 
* * .daml_lf_2.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_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } } /** *
         * Abstracted value
         * 
* * .daml_lf_2.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.TyAbs) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.TyAbs) private static final com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.TyAbs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NilOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.Nil) com.google.protobuf.MessageOrBuilder { /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** *
     * Empty list ('ExpNil')
     * 
* * Protobuf type {@code daml_lf_2.Expr.Nil} */ public static final class Nil extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_Nil_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Nil_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Nil.class, com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type of the list elements.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Nil)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.Nil other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Nil parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Nil parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Nil parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.Nil} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.Nil) com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Nil_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Nil_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Nil.class, com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_Nil_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Nil getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Nil build() { com.daml.daml_lf_dev.DamlLf2.Expr.Nil result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Nil buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.Nil result = new com.daml.daml_lf_dev.DamlLf2.Expr.Nil(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Nil) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.Nil)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.Nil other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.Nil) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.Nil) private static final com.daml.daml_lf_dev.DamlLf2.Expr.Nil DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.Nil(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Nil getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.Cons) com.google.protobuf.MessageOrBuilder { /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ java.util.List getFrontList(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ com.daml.daml_lf_dev.DamlLf2.Expr getFront(int index); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ int getFrontCount(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ java.util.List getFrontOrBuilderList(); /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getFrontOrBuilder( int index); /** *
       * tail of the list
       * 
* * .daml_lf_2.Expr tail = 3; * @return Whether the tail field is set. */ boolean hasTail(); /** *
       * tail of the list
       * 
* * .daml_lf_2.Expr tail = 3; * @return The tail. */ com.daml.daml_lf_dev.DamlLf2.Expr getTail(); /** *
       * tail of the list
       * 
* * .daml_lf_2.Expr tail = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTailOrBuilder(); } /** *
     * Non empty list
     * 
* * Protobuf type {@code daml_lf_2.Expr.Cons} */ public static final class Cons extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Cons.class, com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type of the list elements.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type of the list elements.
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.Expr front = 2; */ @java.lang.Override public int getFrontCount() { return front_.size(); } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getFront(int index) { return front_.get(index); } /** *
       * Front element of the list.
       * *Must be non-empty*
       * 
* * repeated .daml_lf_2.Expr front = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getFrontOrBuilder( int index) { return front_.get(index); } public static final int TAIL_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr tail_; /** *
       * tail of the list
       * 
* * .daml_lf_2.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_2.Expr tail = 3; * @return The tail. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getTail() { return tail_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : tail_; } /** *
       * tail of the list
       * 
* * .daml_lf_2.Expr tail = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTailOrBuilder() { return tail_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Cons)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.Cons other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Cons parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Cons parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Cons parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.Cons} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.Cons) com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Cons.class, com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_Cons_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Cons getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Cons build() { com.daml.daml_lf_dev.DamlLf2.Expr.Cons result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Cons buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.Cons result = new com.daml.daml_lf_dev.DamlLf2.Expr.Cons(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.Cons) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.Cons)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.Cons other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type of the list elements.
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> frontBuilder_; /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.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_2.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_2.Expr front = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Expr front = 2; */ public Builder setFront( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Expr front = 2; */ public Builder setFront( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Expr front = 2; */ public Builder addFront(com.daml.daml_lf_dev.DamlLf2.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_2.Expr front = 2; */ public Builder addFront( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Expr front = 2; */ public Builder addFront( com.daml.daml_lf_dev.DamlLf2.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_2.Expr front = 2; */ public Builder addFront( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Expr front = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getFrontBuilder( int index) { return getFrontFieldBuilder().getBuilder(index); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Expr front = 2; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr front = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder addFrontBuilder() { return getFrontFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Expr front = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder addFrontBuilder( int index) { return getFrontFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()); } /** *
         * Front element of the list.
         * *Must be non-empty*
         * 
* * repeated .daml_lf_2.Expr front = 2; */ public java.util.List getFrontBuilderList() { return getFrontFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getFrontFieldBuilder() { if (frontBuilder_ == null) { frontBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( front_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); front_ = null; } return frontBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr tail_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> tailBuilder_; /** *
         * tail of the list
         * 
* * .daml_lf_2.Expr tail = 3; * @return Whether the tail field is set. */ public boolean hasTail() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * tail of the list
         * 
* * .daml_lf_2.Expr tail = 3; * @return The tail. */ public com.daml.daml_lf_dev.DamlLf2.Expr getTail() { if (tailBuilder_ == null) { return tail_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : tail_; } else { return tailBuilder_.getMessage(); } } /** *
         * tail of the list
         * 
* * .daml_lf_2.Expr tail = 3; */ public Builder setTail(com.daml.daml_lf_dev.DamlLf2.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_2.Expr tail = 3; */ public Builder setTail( com.daml.daml_lf_dev.DamlLf2.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_2.Expr tail = 3; */ public Builder mergeTail(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (tailBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && tail_ != null && tail_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr tail = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getTailBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTailFieldBuilder().getBuilder(); } /** *
         * tail of the list
         * 
* * .daml_lf_2.Expr tail = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTailOrBuilder() { if (tailBuilder_ != null) { return tailBuilder_.getMessageOrBuilder(); } else { return tail_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : tail_; } } /** *
         * tail of the list
         * 
* * .daml_lf_2.Expr tail = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getTailFieldBuilder() { if (tailBuilder_ == null) { tailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.Cons) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.Cons) private static final com.daml.daml_lf_dev.DamlLf2.Expr.Cons DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.Cons(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Cons getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalNoneOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.OptionalNone) com.google.protobuf.MessageOrBuilder { /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** *
     * (*Since version 1*)
     * Empty optional value
     * 
* * Protobuf type {@code daml_lf_2.Expr.OptionalNone} */ public static final class OptionalNone extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_OptionalNone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_OptionalNone_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.class, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type of the element
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalNone)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalNone parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalNone parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalNone parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.OptionalNone} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.OptionalNone) com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_OptionalNone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_OptionalNone_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.class, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_OptionalNone_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone build() { com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone result = new com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalNone) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.OptionalNone) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.OptionalNone) private static final com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalNone getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalSomeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.OptionalSome) com.google.protobuf.MessageOrBuilder { /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * contained value
       * 
* * .daml_lf_2.Expr value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** *
       * contained value
       * 
* * .daml_lf_2.Expr value = 2; * @return The value. */ com.daml.daml_lf_dev.DamlLf2.Expr getValue(); /** *
       * contained value
       * 
* * .daml_lf_2.Expr value = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getValueOrBuilder(); } /** *
     * (*Since version 1*)
     * Non empty optional value
     * 
* * Protobuf type {@code daml_lf_2.Expr.OptionalSome} */ public static final class OptionalSome extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.class, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type of the element
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type of the element
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int VALUE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr value_; /** *
       * contained value
       * 
* * .daml_lf_2.Expr value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contained value
       * 
* * .daml_lf_2.Expr value = 2; * @return The value. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getValue() { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : value_; } /** *
       * contained value
       * 
* * .daml_lf_2.Expr value = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getValueOrBuilder() { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getType()); } if (((bitField0_ & 0x00000002) != 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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } if (((bitField0_ & 0x00000002) != 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.DamlLf2.Expr.OptionalSome)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome other = (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) 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(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } 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.DamlLf2.Expr.OptionalSome parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalSome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalSome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.OptionalSome} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.OptionalSome) com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.class, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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(); getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } 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.DamlLf2.internal_static_daml_lf_2_Expr_OptionalSome_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome build() { com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome result = new com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.value_ = valueBuilder_ == null ? value_ : valueBuilder_.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.DamlLf2.Expr.OptionalSome) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } 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 10: { input.readMessage( getTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 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 com.daml.daml_lf_dev.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type of the element
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> valueBuilder_; /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; * @return The value. */ public com.daml.daml_lf_dev.DamlLf2.Expr getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ public Builder setValue(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ public Builder setValue( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ public Builder mergeValue(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : value_; } } /** *
         * contained value
         * 
* * .daml_lf_2.Expr value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.OptionalSome) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.OptionalSome) private static final com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.OptionalSome getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToAnyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ToAny) com.google.protobuf.MessageOrBuilder { /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Wrap a value in Any
     * 
* * Protobuf type {@code daml_lf_2.Expr.ToAny} */ public static final class ToAny extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type of argument. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAny)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ToAny other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAny parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAny parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAny parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Expr.ToAny} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ToAny) com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToAny_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAny getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAny build() { com.daml.daml_lf_dev.DamlLf2.Expr.ToAny result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAny buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ToAny result = new com.daml.daml_lf_dev.DamlLf2.Expr.ToAny(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAny) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ToAny)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ToAny other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type of argument. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ToAny) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ToAny) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ToAny DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ToAny(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAny getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromAnyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.FromAny) com.google.protobuf.MessageOrBuilder { /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * Value of type Any
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Value of type Any
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Value of type Any
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Extract the given type from Any or return None on type-mismatch
     * 
* * Protobuf type {@code daml_lf_2.Expr.FromAny} */ public static final class FromAny extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type that should be extracted. Must be the TypeConName of a template.
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Value of type Any
       * 
* * .daml_lf_2.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_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Value of type Any
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAny)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.FromAny other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAny parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAny parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAny parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Expr.FromAny} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.FromAny) com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromAny_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromAny_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromAny_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAny getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAny build() { com.daml.daml_lf_dev.DamlLf2.Expr.FromAny result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAny buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.FromAny result = new com.daml.daml_lf_dev.DamlLf2.Expr.FromAny(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAny) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.FromAny)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.FromAny other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type that should be extracted. Must be the TypeConName of a template.
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Value of type Any
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Value of type Any
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Value of type Any
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Value of type Any
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Value of type Any
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.FromAny) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.FromAny) private static final com.daml.daml_lf_dev.DamlLf2.Expr.FromAny DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.FromAny(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAny getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToAnyExceptionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ToAnyException) com.google.protobuf.MessageOrBuilder { /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Wrap an exception value in AnyException
     * 
* * Protobuf type {@code daml_lf_2.Expr.ToAnyException} */ public static final class ToAnyException extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type of argument. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAnyException)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAnyException parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAnyException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAnyException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Expr.ToAnyException} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ToAnyException) com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToAnyException_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException build() { com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException result = new com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAnyException) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type of argument. Must be an exception type.
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ToAnyException) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ToAnyException) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToAnyException getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromAnyExceptionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.FromAnyException) com.google.protobuf.MessageOrBuilder { /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * Value of type AnyException
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Value of type AnyException
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Value of type AnyException
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Extract the given exception type from AnyException or return None on type-mismatch
     * 
* * Protobuf type {@code daml_lf_2.Expr.FromAnyException} */ public static final class FromAnyException extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * type that should be extracted. Must be an exception type.
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Value of type AnyException
       * 
* * .daml_lf_2.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_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Value of type AnyException
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAnyException)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAnyException parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAnyException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAnyException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Expr.FromAnyException} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.FromAnyException) com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromAnyException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromAnyException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromAnyException_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException build() { com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException result = new com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAnyException) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_2.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_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * type that should be extracted. Must be an exception type.
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Value of type AnyException
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Value of type AnyException
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Value of type AnyException
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Value of type AnyException
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Value of type AnyException
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.FromAnyException) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.FromAnyException) private static final com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromAnyException getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ThrowOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.Throw) com.google.protobuf.MessageOrBuilder { /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_2.Type return_type = 1; * @return Whether the returnType field is set. */ boolean hasReturnType(); /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_2.Type return_type = 1; * @return The returnType. */ com.daml.daml_lf_dev.DamlLf2.Type getReturnType(); /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_2.Type return_type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getReturnTypeOrBuilder(); /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_2.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_2.Type exception_type = 2; * @return The exceptionType. */ com.daml.daml_lf_dev.DamlLf2.Type getExceptionType(); /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_2.Type exception_type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getExceptionTypeOrBuilder(); /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_2.Expr exception_expr = 3; * @return Whether the exceptionExpr field is set. */ boolean hasExceptionExpr(); /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_2.Expr exception_expr = 3; * @return The exceptionExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExceptionExpr(); /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_2.Expr exception_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExceptionExprOrBuilder(); } /** *
     * Throw an exception.
     * 
* * Protobuf type {@code daml_lf_2.Expr.Throw} */ public static final class Throw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_Throw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Throw_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Throw.class, com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder.class); } private int bitField0_; public static final int RETURN_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type returnType_; /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_2.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_2.Type return_type = 1; * @return The returnType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getReturnType() { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } /** *
       * Overall type of the "throw" expression.
       * 
* * .daml_lf_2.Type return_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getReturnTypeOrBuilder() { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } public static final int EXCEPTION_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Type exceptionType_; /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_2.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_2.Type exception_type = 2; * @return The exceptionType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getExceptionType() { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : exceptionType_; } /** *
       * Type of exception to throw. Must be an exception type.
       * 
* * .daml_lf_2.Type exception_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getExceptionTypeOrBuilder() { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : exceptionType_; } public static final int EXCEPTION_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr exceptionExpr_; /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_2.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_2.Expr exception_expr = 3; * @return The exceptionExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExceptionExpr() { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : exceptionExpr_; } /** *
       * Value of type "exception_type".
       * 
* * .daml_lf_2.Expr exception_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExceptionExprOrBuilder() { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Throw)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.Throw other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Throw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Throw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Throw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.Throw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.Throw) com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Throw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Throw_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Throw.class, com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_Throw_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Throw getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Throw build() { com.daml.daml_lf_dev.DamlLf2.Expr.Throw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Throw buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.Throw result = new com.daml.daml_lf_dev.DamlLf2.Expr.Throw(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Throw) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.Throw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.Throw other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type returnType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> returnTypeBuilder_; /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_2.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_2.Type return_type = 1; * @return The returnType. */ public com.daml.daml_lf_dev.DamlLf2.Type getReturnType() { if (returnTypeBuilder_ == null) { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } else { return returnTypeBuilder_.getMessage(); } } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_2.Type return_type = 1; */ public Builder setReturnType(com.daml.daml_lf_dev.DamlLf2.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_2.Type return_type = 1; */ public Builder setReturnType( com.daml.daml_lf_dev.DamlLf2.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_2.Type return_type = 1; */ public Builder mergeReturnType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (returnTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && returnType_ != null && returnType_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getReturnTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getReturnTypeFieldBuilder().getBuilder(); } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_2.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getReturnTypeOrBuilder() { if (returnTypeBuilder_ != null) { return returnTypeBuilder_.getMessageOrBuilder(); } else { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } } /** *
         * Overall type of the "throw" expression.
         * 
* * .daml_lf_2.Type return_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getReturnTypeFieldBuilder() { if (returnTypeBuilder_ == null) { returnTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getReturnType(), getParentForChildren(), isClean()); returnType_ = null; } return returnTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Type exceptionType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> exceptionTypeBuilder_; /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_2.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_2.Type exception_type = 2; * @return The exceptionType. */ public com.daml.daml_lf_dev.DamlLf2.Type getExceptionType() { if (exceptionTypeBuilder_ == null) { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : exceptionType_; } else { return exceptionTypeBuilder_.getMessage(); } } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_2.Type exception_type = 2; */ public Builder setExceptionType(com.daml.daml_lf_dev.DamlLf2.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_2.Type exception_type = 2; */ public Builder setExceptionType( com.daml.daml_lf_dev.DamlLf2.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_2.Type exception_type = 2; */ public Builder mergeExceptionType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (exceptionTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && exceptionType_ != null && exceptionType_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type exception_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getExceptionTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExceptionTypeFieldBuilder().getBuilder(); } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_2.Type exception_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getExceptionTypeOrBuilder() { if (exceptionTypeBuilder_ != null) { return exceptionTypeBuilder_.getMessageOrBuilder(); } else { return exceptionType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : exceptionType_; } } /** *
         * Type of exception to throw. Must be an exception type.
         * 
* * .daml_lf_2.Type exception_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getExceptionTypeFieldBuilder() { if (exceptionTypeBuilder_ == null) { exceptionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getExceptionType(), getParentForChildren(), isClean()); exceptionType_ = null; } return exceptionTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr exceptionExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exceptionExprBuilder_; /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_2.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_2.Expr exception_expr = 3; * @return The exceptionExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExceptionExpr() { if (exceptionExprBuilder_ == null) { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : exceptionExpr_; } else { return exceptionExprBuilder_.getMessage(); } } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_2.Expr exception_expr = 3; */ public Builder setExceptionExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr exception_expr = 3; */ public Builder setExceptionExpr( com.daml.daml_lf_dev.DamlLf2.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_2.Expr exception_expr = 3; */ public Builder mergeExceptionExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exceptionExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && exceptionExpr_ != null && exceptionExpr_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr exception_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExceptionExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExceptionExprFieldBuilder().getBuilder(); } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_2.Expr exception_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExceptionExprOrBuilder() { if (exceptionExprBuilder_ != null) { return exceptionExprBuilder_.getMessageOrBuilder(); } else { return exceptionExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : exceptionExpr_; } } /** *
         * Value of type "exception_type".
         * 
* * .daml_lf_2.Expr exception_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExceptionExprFieldBuilder() { if (exceptionExprBuilder_ == null) { exceptionExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.Throw) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.Throw) private static final com.daml.daml_lf_dev.DamlLf2.Expr.Throw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.Throw(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Throw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ToInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ boolean hasTemplateType(); /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType(); /** * .daml_lf_2.TypeConName template_type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder(); /** * .daml_lf_2.Expr template_expr = 3; * @return Whether the templateExpr field is set. */ boolean hasTemplateExpr(); /** * .daml_lf_2.Expr template_expr = 3; * @return The templateExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getTemplateExpr(); /** * .daml_lf_2.Expr template_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTemplateExprOrBuilder(); } /** *
     * Convert a template payload to an interface.
     * 
* * Protobuf type {@code daml_lf_2.Expr.ToInterface} */ public static final class ToInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interfaceType_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_2.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } public static final int TEMPLATE_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.TypeConName templateType_; /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ @java.lang.Override public boolean hasTemplateType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } /** * .daml_lf_2.TypeConName template_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } public static final int TEMPLATE_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr templateExpr_; /** * .daml_lf_2.Expr template_expr = 3; * @return Whether the templateExpr field is set. */ @java.lang.Override public boolean hasTemplateExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr template_expr = 3; * @return The templateExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getTemplateExpr() { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : templateExpr_; } /** * .daml_lf_2.Expr template_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTemplateExprOrBuilder() { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.ToInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ToInterface) com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_2.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.TypeConName templateType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateTypeBuilder_; /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ public boolean hasTemplateType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType() { if (templateTypeBuilder_ == null) { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } else { return templateTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder setTemplateType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateType_ = value; } else { templateTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder setTemplateType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateTypeBuilder_ == null) { templateType_ = builderForValue.build(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && templateType_ != null && templateType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateTypeBuilder().mergeFrom(value); } else { templateType_ = value; } } else { templateTypeBuilder_.mergeFrom(value); } if (templateType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder clearTemplateType() { bitField0_ = (bitField0_ & ~0x00000002); templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTemplateTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder() { if (templateTypeBuilder_ != null) { return templateTypeBuilder_.getMessageOrBuilder(); } else { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } } /** * .daml_lf_2.TypeConName template_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateTypeFieldBuilder() { if (templateTypeBuilder_ == null) { templateTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplateType(), getParentForChildren(), isClean()); templateType_ = null; } return templateTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr templateExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> templateExprBuilder_; /** * .daml_lf_2.Expr template_expr = 3; * @return Whether the templateExpr field is set. */ public boolean hasTemplateExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr template_expr = 3; * @return The templateExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getTemplateExpr() { if (templateExprBuilder_ == null) { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : templateExpr_; } else { return templateExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr template_expr = 3; */ public Builder setTemplateExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (templateExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateExpr_ = value; } else { templateExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr template_expr = 3; */ public Builder setTemplateExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (templateExprBuilder_ == null) { templateExpr_ = builderForValue.build(); } else { templateExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr template_expr = 3; */ public Builder mergeTemplateExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (templateExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && templateExpr_ != null && templateExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getTemplateExprBuilder().mergeFrom(value); } else { templateExpr_ = value; } } else { templateExprBuilder_.mergeFrom(value); } if (templateExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr template_expr = 3; */ public Builder clearTemplateExpr() { bitField0_ = (bitField0_ & ~0x00000004); templateExpr_ = null; if (templateExprBuilder_ != null) { templateExprBuilder_.dispose(); templateExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr template_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getTemplateExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTemplateExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr template_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTemplateExprOrBuilder() { if (templateExprBuilder_ != null) { return templateExprBuilder_.getMessageOrBuilder(); } else { return templateExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : templateExpr_; } } /** * .daml_lf_2.Expr template_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getTemplateExprFieldBuilder() { if (templateExprBuilder_ == null) { templateExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ToInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ToInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.FromInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ boolean hasTemplateType(); /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType(); /** * .daml_lf_2.TypeConName template_type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder(); /** * .daml_lf_2.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 3; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Convert an interface back to a template payload if possible.
     * 
* * Protobuf type {@code daml_lf_2.Expr.FromInterface} */ public static final class FromInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interfaceType_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_2.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } public static final int TEMPLATE_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.TypeConName templateType_; /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ @java.lang.Override public boolean hasTemplateType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } /** * .daml_lf_2.TypeConName template_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } public static final int INTERFACE_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr interfaceExpr_; /** * .daml_lf_2.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr interface_expr = 3; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_2.Expr interface_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.FromInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.FromInterface) com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_2.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.TypeConName templateType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateTypeBuilder_; /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ public boolean hasTemplateType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType() { if (templateTypeBuilder_ == null) { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } else { return templateTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder setTemplateType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateType_ = value; } else { templateTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder setTemplateType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateTypeBuilder_ == null) { templateType_ = builderForValue.build(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && templateType_ != null && templateType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateTypeBuilder().mergeFrom(value); } else { templateType_ = value; } } else { templateTypeBuilder_.mergeFrom(value); } if (templateType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder clearTemplateType() { bitField0_ = (bitField0_ & ~0x00000002); templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTemplateTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder() { if (templateTypeBuilder_ != null) { return templateTypeBuilder_.getMessageOrBuilder(); } else { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } } /** * .daml_lf_2.TypeConName template_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateTypeFieldBuilder() { if (templateTypeBuilder_ == null) { templateTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplateType(), getParentForChildren(), isClean()); templateType_ = null; } return templateTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_2.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr interface_expr = 3; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000004); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_2.Expr interface_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.FromInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.FromInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CallInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.CallInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * int32 method_interned_name = 2; * @return The methodInternedName. */ int getMethodInternedName(); /** * .daml_lf_2.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 3; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Invoke an interface method.
     * 
* * Protobuf type {@code daml_lf_2.Expr.CallInterface} */ public static final class CallInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_CallInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_CallInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interfaceType_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_2.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr interfaceExpr_; /** * .daml_lf_2.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr interface_expr = 3; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_2.Expr interface_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.CallInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.CallInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.CallInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.CallInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.CallInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.CallInterface) com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_CallInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_CallInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_CallInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.CallInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_2.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_2.Expr interface_expr = 3; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr interface_expr = 3; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000004); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr interface_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_2.Expr interface_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.CallInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.CallInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.CallInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ViewInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ViewInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain an interface view
     * 
* * Protobuf type {@code daml_lf_2.Expr.ViewInterface} */ public static final class ViewInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ViewInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ViewInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ViewInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ViewInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ViewInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ViewInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Expr.ViewInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ViewInterface) com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ViewInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ViewInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ViewInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ViewInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ViewInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ViewInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ViewInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignatoryInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.SignatoryInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain the signatories of a contract through an interface
     * 
* * Protobuf type {@code daml_lf_2.Expr.SignatoryInterface} */ public static final class SignatoryInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_SignatoryInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_SignatoryInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.SignatoryInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.SignatoryInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.SignatoryInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.SignatoryInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.SignatoryInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Obtain the signatories of a contract through an interface
       * 
* * Protobuf type {@code daml_lf_2.Expr.SignatoryInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.SignatoryInterface) com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_SignatoryInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_SignatoryInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_SignatoryInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.SignatoryInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.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_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.SignatoryInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.SignatoryInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.SignatoryInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObserverInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ObserverInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain the observers of a contract through an interface
     * 
* * Protobuf type {@code daml_lf_2.Expr.ObserverInterface} */ public static final class ObserverInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ObserverInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ObserverInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ObserverInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ObserverInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ObserverInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ObserverInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.Expr.ObserverInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Obtain the observers of a contract through an interface
       * 
* * Protobuf type {@code daml_lf_2.Expr.ObserverInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ObserverInterface) com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ObserverInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ObserverInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ObserverInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ObserverInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.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_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ObserverInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ObserverInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ObserverInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnsafeFromInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.UnsafeFromInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ boolean hasInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType(); /** * .daml_lf_2.TypeConName interface_type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder(); /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ boolean hasTemplateType(); /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType(); /** * .daml_lf_2.TypeConName template_type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder(); /** * .daml_lf_2.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ boolean hasContractIdExpr(); /** * .daml_lf_2.Expr contract_id_expr = 3; * @return The contractIdExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getContractIdExpr(); /** * .daml_lf_2.Expr contract_id_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractIdExprOrBuilder(); /** * .daml_lf_2.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 4; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Convert an interface back to a template payload, or raises WronglyTypedContract if not possible.
     * 
* * Protobuf type {@code daml_lf_2.Expr.UnsafeFromInterface} */ public static final class UnsafeFromInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interfaceType_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ @java.lang.Override public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } /** * .daml_lf_2.TypeConName interface_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } public static final int TEMPLATE_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.TypeConName templateType_; /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ @java.lang.Override public boolean hasTemplateType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } /** * .daml_lf_2.TypeConName template_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder() { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } public static final int CONTRACT_ID_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr contractIdExpr_; /** * .daml_lf_2.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ @java.lang.Override public boolean hasContractIdExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr contract_id_expr = 3; * @return The contractIdExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getContractIdExpr() { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } /** * .daml_lf_2.Expr contract_id_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractIdExprOrBuilder() { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } public static final int INTERFACE_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr interfaceExpr_; /** * .daml_lf_2.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr interface_expr = 4; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_2.Expr interface_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.UnsafeFromInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.UnsafeFromInterface) com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interfaceType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceTypeBuilder_; /** * .daml_lf_2.TypeConName interface_type = 1; * @return Whether the interfaceType field is set. */ public boolean hasInterfaceType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface_type = 1; * @return The interfaceType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterfaceType() { if (interfaceTypeBuilder_ == null) { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } else { return interfaceTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceType_ = value; } else { interfaceTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder setInterfaceType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceTypeBuilder_ == null) { interfaceType_ = builderForValue.build(); } else { interfaceTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder mergeInterfaceType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interfaceType_ != null && interfaceType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceTypeBuilder().mergeFrom(value); } else { interfaceType_ = value; } } else { interfaceTypeBuilder_.mergeFrom(value); } if (interfaceType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public Builder clearInterfaceType() { bitField0_ = (bitField0_ & ~0x00000001); interfaceType_ = null; if (interfaceTypeBuilder_ != null) { interfaceTypeBuilder_.dispose(); interfaceTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName interface_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceTypeOrBuilder() { if (interfaceTypeBuilder_ != null) { return interfaceTypeBuilder_.getMessageOrBuilder(); } else { return interfaceType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interfaceType_; } } /** * .daml_lf_2.TypeConName interface_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceTypeFieldBuilder() { if (interfaceTypeBuilder_ == null) { interfaceTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterfaceType(), getParentForChildren(), isClean()); interfaceType_ = null; } return interfaceTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.TypeConName templateType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateTypeBuilder_; /** * .daml_lf_2.TypeConName template_type = 2; * @return Whether the templateType field is set. */ public boolean hasTemplateType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName template_type = 2; * @return The templateType. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplateType() { if (templateTypeBuilder_ == null) { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } else { return templateTypeBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder setTemplateType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } templateType_ = value; } else { templateTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder setTemplateType( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateTypeBuilder_ == null) { templateType_ = builderForValue.build(); } else { templateTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder mergeTemplateType(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && templateType_ != null && templateType_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateTypeBuilder().mergeFrom(value); } else { templateType_ = value; } } else { templateTypeBuilder_.mergeFrom(value); } if (templateType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public Builder clearTemplateType() { bitField0_ = (bitField0_ & ~0x00000002); templateType_ = null; if (templateTypeBuilder_ != null) { templateTypeBuilder_.dispose(); templateTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTemplateTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName template_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateTypeOrBuilder() { if (templateTypeBuilder_ != null) { return templateTypeBuilder_.getMessageOrBuilder(); } else { return templateType_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : templateType_; } } /** * .daml_lf_2.TypeConName template_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateTypeFieldBuilder() { if (templateTypeBuilder_ == null) { templateTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplateType(), getParentForChildren(), isClean()); templateType_ = null; } return templateTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr contractIdExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> contractIdExprBuilder_; /** * .daml_lf_2.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ public boolean hasContractIdExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr contract_id_expr = 3; * @return The contractIdExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getContractIdExpr() { if (contractIdExprBuilder_ == null) { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } else { return contractIdExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public Builder setContractIdExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractIdExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdExpr_ = value; } else { contractIdExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public Builder setContractIdExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (contractIdExprBuilder_ == null) { contractIdExpr_ = builderForValue.build(); } else { contractIdExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public Builder mergeContractIdExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractIdExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contractIdExpr_ != null && contractIdExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getContractIdExprBuilder().mergeFrom(value); } else { contractIdExpr_ = value; } } else { contractIdExprBuilder_.mergeFrom(value); } if (contractIdExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.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_2.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getContractIdExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContractIdExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractIdExprOrBuilder() { if (contractIdExprBuilder_ != null) { return contractIdExprBuilder_.getMessageOrBuilder(); } else { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } } /** * .daml_lf_2.Expr contract_id_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getContractIdExprFieldBuilder() { if (contractIdExprBuilder_ == null) { contractIdExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getContractIdExpr(), getParentForChildren(), isClean()); contractIdExpr_ = null; } return contractIdExprBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_2.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr interface_expr = 4; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000008); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_2.Expr interface_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.UnsafeFromInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.UnsafeFromInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ToRequiredInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ToRequiredInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ boolean hasRequiredInterface(); /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface(); /** * .daml_lf_2.TypeConName required_interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder(); /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ boolean hasRequiringInterface(); /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface(); /** * .daml_lf_2.TypeConName requiring_interface = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder(); /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** * .daml_lf_2.Expr expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Upcast from an interface payload to an interface it requires.
     * 
* * Protobuf type {@code daml_lf_2.Expr.ToRequiredInterface} */ public static final class ToRequiredInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder.class); } private int bitField0_; public static final int REQUIRED_INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName requiredInterface_; /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ @java.lang.Override public boolean hasRequiredInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } /** * .daml_lf_2.TypeConName required_interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } public static final int REQUIRING_INTERFACE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.TypeConName requiringInterface_; /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ @java.lang.Override public boolean hasRequiringInterface() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } public static final int EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_2.Expr expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToRequiredInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToRequiredInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToRequiredInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToRequiredInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.ToRequiredInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ToRequiredInterface) com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ToRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ToRequiredInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToRequiredInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName requiredInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiredInterfaceBuilder_; /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ public boolean hasRequiredInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface() { if (requiredInterfaceBuilder_ == null) { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } else { return requiredInterfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder setRequiredInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredInterface_ = value; } else { requiredInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder setRequiredInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = builderForValue.build(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredInterface_ != null && requiredInterface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getRequiredInterfaceBuilder().mergeFrom(value); } else { requiredInterface_ = value; } } else { requiredInterfaceBuilder_.mergeFrom(value); } if (requiredInterface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { bitField0_ = (bitField0_ & ~0x00000001); requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiredInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { if (requiredInterfaceBuilder_ != null) { return requiredInterfaceBuilder_.getMessageOrBuilder(); } else { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } } /** * .daml_lf_2.TypeConName required_interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiredInterfaceFieldBuilder() { if (requiredInterfaceBuilder_ == null) { requiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getRequiredInterface(), getParentForChildren(), isClean()); requiredInterface_ = null; } return requiredInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.TypeConName requiringInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiringInterfaceBuilder_; /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ public boolean hasRequiringInterface() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface() { if (requiringInterfaceBuilder_ == null) { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } else { return requiringInterfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiringInterface_ = value; } else { requiringInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = builderForValue.build(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requiringInterface_ != null && requiringInterface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getRequiringInterfaceBuilder().mergeFrom(value); } else { requiringInterface_ = value; } } else { requiringInterfaceBuilder_.mergeFrom(value); } if (requiringInterface_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { bitField0_ = (bitField0_ & ~0x00000002); requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiringInterfaceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRequiringInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { if (requiringInterfaceBuilder_ != null) { return requiringInterfaceBuilder_.getMessageOrBuilder(); } else { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiringInterfaceFieldBuilder() { if (requiringInterfaceBuilder_ == null) { requiringInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getRequiringInterface(), getParentForChildren(), isClean()); requiringInterface_ = null; } return requiringInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr expr = 3; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_2.Expr expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ToRequiredInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ToRequiredInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ToRequiredInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromRequiredInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.FromRequiredInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ boolean hasRequiredInterface(); /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface(); /** * .daml_lf_2.TypeConName required_interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder(); /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ boolean hasRequiringInterface(); /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface(); /** * .daml_lf_2.TypeConName requiring_interface = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder(); /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** * .daml_lf_2.Expr expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Downcast from an interface payload to an interface that requires it, if possible.
     * 
* * Protobuf type {@code daml_lf_2.Expr.FromRequiredInterface} */ public static final class FromRequiredInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder.class); } private int bitField0_; public static final int REQUIRED_INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName requiredInterface_; /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ @java.lang.Override public boolean hasRequiredInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } /** * .daml_lf_2.TypeConName required_interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } public static final int REQUIRING_INTERFACE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.TypeConName requiringInterface_; /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ @java.lang.Override public boolean hasRequiringInterface() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } public static final int EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_2.Expr expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromRequiredInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromRequiredInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromRequiredInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromRequiredInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.FromRequiredInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.FromRequiredInterface) com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_FromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_FromRequiredInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromRequiredInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName requiredInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiredInterfaceBuilder_; /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ public boolean hasRequiredInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface() { if (requiredInterfaceBuilder_ == null) { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } else { return requiredInterfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder setRequiredInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredInterface_ = value; } else { requiredInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder setRequiredInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = builderForValue.build(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredInterface_ != null && requiredInterface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getRequiredInterfaceBuilder().mergeFrom(value); } else { requiredInterface_ = value; } } else { requiredInterfaceBuilder_.mergeFrom(value); } if (requiredInterface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { bitField0_ = (bitField0_ & ~0x00000001); requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiredInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { if (requiredInterfaceBuilder_ != null) { return requiredInterfaceBuilder_.getMessageOrBuilder(); } else { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } } /** * .daml_lf_2.TypeConName required_interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiredInterfaceFieldBuilder() { if (requiredInterfaceBuilder_ == null) { requiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getRequiredInterface(), getParentForChildren(), isClean()); requiredInterface_ = null; } return requiredInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.TypeConName requiringInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiringInterfaceBuilder_; /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ public boolean hasRequiringInterface() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface() { if (requiringInterfaceBuilder_ == null) { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } else { return requiringInterfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiringInterface_ = value; } else { requiringInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = builderForValue.build(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requiringInterface_ != null && requiringInterface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getRequiringInterfaceBuilder().mergeFrom(value); } else { requiringInterface_ = value; } } else { requiringInterfaceBuilder_.mergeFrom(value); } if (requiringInterface_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { bitField0_ = (bitField0_ & ~0x00000002); requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiringInterfaceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRequiringInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { if (requiringInterfaceBuilder_ != null) { return requiringInterfaceBuilder_.getMessageOrBuilder(); } else { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiringInterfaceFieldBuilder() { if (requiringInterfaceBuilder_ == null) { requiringInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getRequiringInterface(), getParentForChildren(), isClean()); requiringInterface_ = null; } return requiringInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr expr = 3; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_2.Expr expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.FromRequiredInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.FromRequiredInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.FromRequiredInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnsafeFromRequiredInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.UnsafeFromRequiredInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ boolean hasRequiredInterface(); /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface(); /** * .daml_lf_2.TypeConName required_interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder(); /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ boolean hasRequiringInterface(); /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface(); /** * .daml_lf_2.TypeConName requiring_interface = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder(); /** * .daml_lf_2.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ boolean hasContractIdExpr(); /** * .daml_lf_2.Expr contract_id_expr = 3; * @return The contractIdExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getContractIdExpr(); /** * .daml_lf_2.Expr contract_id_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractIdExprOrBuilder(); /** * .daml_lf_2.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ boolean hasInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 4; * @return The interfaceExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr(); /** * .daml_lf_2.Expr interface_expr = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder(); } /** *
     * Downcast from an interface payload to an interface that requires it, or raises WronglyTypedContract if not possible.
     * 
* * Protobuf type {@code daml_lf_2.Expr.UnsafeFromRequiredInterface} */ public static final class UnsafeFromRequiredInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder.class); } private int bitField0_; public static final int REQUIRED_INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName requiredInterface_; /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ @java.lang.Override public boolean hasRequiredInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } /** * .daml_lf_2.TypeConName required_interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } public static final int REQUIRING_INTERFACE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.TypeConName requiringInterface_; /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ @java.lang.Override public boolean hasRequiringInterface() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } public static final int CONTRACT_ID_EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr contractIdExpr_; /** * .daml_lf_2.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ @java.lang.Override public boolean hasContractIdExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr contract_id_expr = 3; * @return The contractIdExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getContractIdExpr() { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } /** * .daml_lf_2.Expr contract_id_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractIdExprOrBuilder() { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } public static final int INTERFACE_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr interfaceExpr_; /** * .daml_lf_2.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ @java.lang.Override public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr interface_expr = 4; * @return The interfaceExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } /** * .daml_lf_2.Expr interface_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromRequiredInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromRequiredInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromRequiredInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromRequiredInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.UnsafeFromRequiredInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.UnsafeFromRequiredInterface) com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.class, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface build() { com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface result = new com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromRequiredInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName requiredInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiredInterfaceBuilder_; /** * .daml_lf_2.TypeConName required_interface = 1; * @return Whether the requiredInterface field is set. */ public boolean hasRequiredInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName required_interface = 1; * @return The requiredInterface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiredInterface() { if (requiredInterfaceBuilder_ == null) { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } else { return requiredInterfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder setRequiredInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredInterface_ = value; } else { requiredInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder setRequiredInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiredInterfaceBuilder_ == null) { requiredInterface_ = builderForValue.build(); } else { requiredInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder mergeRequiredInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiredInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredInterface_ != null && requiredInterface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getRequiredInterfaceBuilder().mergeFrom(value); } else { requiredInterface_ = value; } } else { requiredInterfaceBuilder_.mergeFrom(value); } if (requiredInterface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public Builder clearRequiredInterface() { bitField0_ = (bitField0_ & ~0x00000001); requiredInterface_ = null; if (requiredInterfaceBuilder_ != null) { requiredInterfaceBuilder_.dispose(); requiredInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiredInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName required_interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiredInterfaceOrBuilder() { if (requiredInterfaceBuilder_ != null) { return requiredInterfaceBuilder_.getMessageOrBuilder(); } else { return requiredInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiredInterface_; } } /** * .daml_lf_2.TypeConName required_interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiredInterfaceFieldBuilder() { if (requiredInterfaceBuilder_ == null) { requiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getRequiredInterface(), getParentForChildren(), isClean()); requiredInterface_ = null; } return requiredInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.TypeConName requiringInterface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiringInterfaceBuilder_; /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return Whether the requiringInterface field is set. */ public boolean hasRequiringInterface() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.TypeConName requiring_interface = 2; * @return The requiringInterface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequiringInterface() { if (requiringInterfaceBuilder_ == null) { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } else { return requiringInterfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiringInterface_ = value; } else { requiringInterfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder setRequiringInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiringInterfaceBuilder_ == null) { requiringInterface_ = builderForValue.build(); } else { requiringInterfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder mergeRequiringInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiringInterfaceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requiringInterface_ != null && requiringInterface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getRequiringInterfaceBuilder().mergeFrom(value); } else { requiringInterface_ = value; } } else { requiringInterfaceBuilder_.mergeFrom(value); } if (requiringInterface_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public Builder clearRequiringInterface() { bitField0_ = (bitField0_ & ~0x00000002); requiringInterface_ = null; if (requiringInterfaceBuilder_ != null) { requiringInterfaceBuilder_.dispose(); requiringInterfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiringInterfaceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRequiringInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiringInterfaceOrBuilder() { if (requiringInterfaceBuilder_ != null) { return requiringInterfaceBuilder_.getMessageOrBuilder(); } else { return requiringInterface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : requiringInterface_; } } /** * .daml_lf_2.TypeConName requiring_interface = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiringInterfaceFieldBuilder() { if (requiringInterfaceBuilder_ == null) { requiringInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getRequiringInterface(), getParentForChildren(), isClean()); requiringInterface_ = null; } return requiringInterfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr contractIdExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> contractIdExprBuilder_; /** * .daml_lf_2.Expr contract_id_expr = 3; * @return Whether the contractIdExpr field is set. */ public boolean hasContractIdExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr contract_id_expr = 3; * @return The contractIdExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getContractIdExpr() { if (contractIdExprBuilder_ == null) { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } else { return contractIdExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public Builder setContractIdExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractIdExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractIdExpr_ = value; } else { contractIdExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public Builder setContractIdExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (contractIdExprBuilder_ == null) { contractIdExpr_ = builderForValue.build(); } else { contractIdExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public Builder mergeContractIdExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractIdExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contractIdExpr_ != null && contractIdExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getContractIdExprBuilder().mergeFrom(value); } else { contractIdExpr_ = value; } } else { contractIdExprBuilder_.mergeFrom(value); } if (contractIdExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.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_2.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getContractIdExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContractIdExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr contract_id_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractIdExprOrBuilder() { if (contractIdExprBuilder_ != null) { return contractIdExprBuilder_.getMessageOrBuilder(); } else { return contractIdExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractIdExpr_; } } /** * .daml_lf_2.Expr contract_id_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getContractIdExprFieldBuilder() { if (contractIdExprBuilder_ == null) { contractIdExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getContractIdExpr(), getParentForChildren(), isClean()); contractIdExpr_ = null; } return contractIdExprBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr interfaceExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> interfaceExprBuilder_; /** * .daml_lf_2.Expr interface_expr = 4; * @return Whether the interfaceExpr field is set. */ public boolean hasInterfaceExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr interface_expr = 4; * @return The interfaceExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getInterfaceExpr() { if (interfaceExprBuilder_ == null) { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } else { return interfaceExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder setInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interfaceExpr_ = value; } else { interfaceExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder setInterfaceExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (interfaceExprBuilder_ == null) { interfaceExpr_ = builderForValue.build(); } else { interfaceExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder mergeInterfaceExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (interfaceExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && interfaceExpr_ != null && interfaceExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getInterfaceExprBuilder().mergeFrom(value); } else { interfaceExpr_ = value; } } else { interfaceExprBuilder_.mergeFrom(value); } if (interfaceExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public Builder clearInterfaceExpr() { bitField0_ = (bitField0_ & ~0x00000008); interfaceExpr_ = null; if (interfaceExprBuilder_ != null) { interfaceExprBuilder_.dispose(); interfaceExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getInterfaceExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInterfaceExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr interface_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getInterfaceExprOrBuilder() { if (interfaceExprBuilder_ != null) { return interfaceExprBuilder_.getMessageOrBuilder(); } else { return interfaceExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : interfaceExpr_; } } /** * .daml_lf_2.Expr interface_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getInterfaceExprFieldBuilder() { if (interfaceExprBuilder_ == null) { interfaceExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.UnsafeFromRequiredInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.UnsafeFromRequiredInterface) private static final com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.UnsafeFromRequiredInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceTemplateTypeRepOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.InterfaceTemplateTypeRep) com.google.protobuf.MessageOrBuilder { /** *
       * interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** *
       * interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Obtain the type representation of a contract through an interface
     * 
* * Protobuf type {@code daml_lf_2.Expr.InterfaceTemplateTypeRep} */ public static final class InterfaceTemplateTypeRep extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.class, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** *
       * interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** *
       * interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.InterfaceTemplateTypeRep)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.InterfaceTemplateTypeRep parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.InterfaceTemplateTypeRep parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.InterfaceTemplateTypeRep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Expr.InterfaceTemplateTypeRep} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.InterfaceTemplateTypeRep) com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.class, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep build() { com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep result = new com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.InterfaceTemplateTypeRep) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * interface type
         * 
* * .daml_lf_2.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_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** *
         * interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * interface argument
         * 
* * .daml_lf_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.InterfaceTemplateTypeRep) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.InterfaceTemplateTypeRep) private static final com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.InterfaceTemplateTypeRep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChoiceControllerOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ChoiceController) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** * .daml_lf_2.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ boolean hasContractExpr(); /** * .daml_lf_2.Expr contract_expr = 3; * @return The contractExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getContractExpr(); /** * .daml_lf_2.Expr contract_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractExprOrBuilder(); /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ boolean hasChoiceArgExpr(); /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getChoiceArgExpr(); /** * .daml_lf_2.Expr choice_arg_expr = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getChoiceArgExprOrBuilder(); } /** *
     * Obtain the controllers for a choice.
     * 
* * Protobuf type {@code daml_lf_2.Expr.ChoiceController} */ public static final class ChoiceController extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceController_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.class, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr contractExpr_; /** * .daml_lf_2.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ @java.lang.Override public boolean hasContractExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr contract_expr = 3; * @return The contractExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getContractExpr() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } /** * .daml_lf_2.Expr contract_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractExprOrBuilder() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } public static final int CHOICE_ARG_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr choiceArgExpr_; /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ @java.lang.Override public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getChoiceArgExpr() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : choiceArgExpr_; } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getChoiceArgExprOrBuilder() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceController)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceController parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceController parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.ChoiceController} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ChoiceController) com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceController_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.class, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceController_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController build() { com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController result = new com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceController) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr contractExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> contractExprBuilder_; /** * .daml_lf_2.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ public boolean hasContractExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr contract_expr = 3; * @return The contractExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getContractExpr() { if (contractExprBuilder_ == null) { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } else { return contractExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder setContractExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractExpr_ = value; } else { contractExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder setContractExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (contractExprBuilder_ == null) { contractExpr_ = builderForValue.build(); } else { contractExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder mergeContractExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contractExpr_ != null && contractExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getContractExprBuilder().mergeFrom(value); } else { contractExpr_ = value; } } else { contractExprBuilder_.mergeFrom(value); } if (contractExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder clearContractExpr() { bitField0_ = (bitField0_ & ~0x00000004); contractExpr_ = null; if (contractExprBuilder_ != null) { contractExprBuilder_.dispose(); contractExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getContractExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContractExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractExprOrBuilder() { if (contractExprBuilder_ != null) { return contractExprBuilder_.getMessageOrBuilder(); } else { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } } /** * .daml_lf_2.Expr contract_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getContractExprFieldBuilder() { if (contractExprBuilder_ == null) { contractExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getContractExpr(), getParentForChildren(), isClean()); contractExpr_ = null; } return contractExprBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr choiceArgExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> choiceArgExprBuilder_; /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getChoiceArgExpr() { if (choiceArgExprBuilder_ == null) { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : choiceArgExpr_; } else { return choiceArgExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (choiceArgExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgExpr_ = value; } else { choiceArgExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (choiceArgExprBuilder_ == null) { choiceArgExpr_ = builderForValue.build(); } else { choiceArgExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public Builder mergeChoiceArgExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (choiceArgExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && choiceArgExpr_ != null && choiceArgExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getChoiceArgExprBuilder().mergeFrom(value); } else { choiceArgExpr_ = value; } } else { choiceArgExprBuilder_.mergeFrom(value); } if (choiceArgExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.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_2.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getChoiceArgExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getChoiceArgExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getChoiceArgExprOrBuilder() { if (choiceArgExprBuilder_ != null) { return choiceArgExprBuilder_.getMessageOrBuilder(); } else { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : choiceArgExpr_; } } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getChoiceArgExprFieldBuilder() { if (choiceArgExprBuilder_ == null) { choiceArgExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ChoiceController) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ChoiceController) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChoiceObserverOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Expr.ChoiceObserver) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** * .daml_lf_2.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ boolean hasContractExpr(); /** * .daml_lf_2.Expr contract_expr = 3; * @return The contractExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getContractExpr(); /** * .daml_lf_2.Expr contract_expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractExprOrBuilder(); /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ boolean hasChoiceArgExpr(); /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getChoiceArgExpr(); /** * .daml_lf_2.Expr choice_arg_expr = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getChoiceArgExprOrBuilder(); } /** *
     * Obtain the observers for a choice.
     * 
* * Protobuf type {@code daml_lf_2.Expr.ChoiceObserver} */ public static final class ChoiceObserver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceObserver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceObserver_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.class, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr contractExpr_; /** * .daml_lf_2.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ @java.lang.Override public boolean hasContractExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr contract_expr = 3; * @return The contractExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getContractExpr() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } /** * .daml_lf_2.Expr contract_expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractExprOrBuilder() { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } public static final int CHOICE_ARG_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr choiceArgExpr_; /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ @java.lang.Override public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getChoiceArgExpr() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : choiceArgExpr_; } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getChoiceArgExprOrBuilder() { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceObserver)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceObserver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceObserver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceObserver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.Expr.ChoiceObserver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.ChoiceObserver) com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceObserver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceObserver_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.class, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_ChoiceObserver_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver build() { com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver result = new com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceObserver) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr contractExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> contractExprBuilder_; /** * .daml_lf_2.Expr contract_expr = 3; * @return Whether the contractExpr field is set. */ public boolean hasContractExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr contract_expr = 3; * @return The contractExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getContractExpr() { if (contractExprBuilder_ == null) { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } else { return contractExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder setContractExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractExpr_ = value; } else { contractExprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder setContractExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (contractExprBuilder_ == null) { contractExpr_ = builderForValue.build(); } else { contractExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder mergeContractExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (contractExprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contractExpr_ != null && contractExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getContractExprBuilder().mergeFrom(value); } else { contractExpr_ = value; } } else { contractExprBuilder_.mergeFrom(value); } if (contractExpr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public Builder clearContractExpr() { bitField0_ = (bitField0_ & ~0x00000004); contractExpr_ = null; if (contractExprBuilder_ != null) { contractExprBuilder_.dispose(); contractExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getContractExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContractExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr contract_expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getContractExprOrBuilder() { if (contractExprBuilder_ != null) { return contractExprBuilder_.getMessageOrBuilder(); } else { return contractExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : contractExpr_; } } /** * .daml_lf_2.Expr contract_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getContractExprFieldBuilder() { if (contractExprBuilder_ == null) { contractExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getContractExpr(), getParentForChildren(), isClean()); contractExpr_ = null; } return contractExprBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr choiceArgExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> choiceArgExprBuilder_; /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return Whether the choiceArgExpr field is set. */ public boolean hasChoiceArgExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr choice_arg_expr = 4; * @return The choiceArgExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getChoiceArgExpr() { if (choiceArgExprBuilder_ == null) { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : choiceArgExpr_; } else { return choiceArgExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (choiceArgExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choiceArgExpr_ = value; } else { choiceArgExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public Builder setChoiceArgExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (choiceArgExprBuilder_ == null) { choiceArgExpr_ = builderForValue.build(); } else { choiceArgExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public Builder mergeChoiceArgExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (choiceArgExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && choiceArgExpr_ != null && choiceArgExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getChoiceArgExprBuilder().mergeFrom(value); } else { choiceArgExpr_ = value; } } else { choiceArgExprBuilder_.mergeFrom(value); } if (choiceArgExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.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_2.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getChoiceArgExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getChoiceArgExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getChoiceArgExprOrBuilder() { if (choiceArgExprBuilder_ != null) { return choiceArgExprBuilder_.getMessageOrBuilder(); } else { return choiceArgExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : choiceArgExpr_; } } /** * .daml_lf_2.Expr choice_arg_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getChoiceArgExprFieldBuilder() { if (choiceArgExprBuilder_ == null) { choiceArgExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.ChoiceObserver) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.ChoiceObserver) private static final com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.ChoiceObserver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExperimentalOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.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_2.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_2.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** * .daml_lf_2.Type type = 2; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** * Protobuf type {@code daml_lf_2.Expr.Experimental} */ public static final class Experimental extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Expr_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.class, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; /** * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** * .daml_lf_2.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Experimental)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr.Experimental other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Experimental parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Experimental parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Experimental parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr.Experimental} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr.Experimental) com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.class, com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Expr_Experimental_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Experimental getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Experimental build() { com.daml.daml_lf_dev.DamlLf2.Expr.Experimental result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Experimental buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr.Experimental result = new com.daml.daml_lf_dev.DamlLf2.Expr.Experimental(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr.Experimental) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr.Experimental)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr.Experimental other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_2.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Type type = 2; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Type type = 2; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** * .daml_lf_2.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr.Experimental) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr.Experimental) private static final com.daml.daml_lf_dev.DamlLf2.Expr.Experimental DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr.Experimental(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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_INTERNED_STR(2), VAL(3), BUILTIN(4), BUILTIN_CON(5), BUILTIN_LIT(6), REC_CON(7), REC_PROJ(8), REC_UPD(9), VARIANT_CON(10), ENUM_CON(11), STRUCT_CON(12), STRUCT_PROJ(13), STRUCT_UPD(14), APP(15), TY_APP(16), ABS(17), TY_ABS(18), CASE(19), LET(20), NIL(21), CONS(22), UPDATE(23), OPTIONAL_NONE(25), OPTIONAL_SOME(26), TO_ANY(27), FROM_ANY(28), TYPE_REP(29), TO_ANY_EXCEPTION(30), FROM_ANY_EXCEPTION(31), THROW(32), TO_INTERFACE(33), FROM_INTERFACE(34), CALL_INTERFACE(35), SIGNATORY_INTERFACE(36), OBSERVER_INTERFACE(37), VIEW_INTERFACE(38), UNSAFE_FROM_INTERFACE(39), INTERFACE_TEMPLATE_TYPE_REP(40), TO_REQUIRED_INTERFACE(41), FROM_REQUIRED_INTERFACE(42), UNSAFE_FROM_REQUIRED_INTERFACE(43), CHOICE_CONTROLLER(1001), CHOICE_OBSERVER(1002), SCENARIO(1003), 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 2: return VAR_INTERNED_STR; case 3: return VAL; case 4: return BUILTIN; case 5: return BUILTIN_CON; case 6: return BUILTIN_LIT; case 7: return REC_CON; case 8: return REC_PROJ; case 9: return REC_UPD; case 10: return VARIANT_CON; case 11: return ENUM_CON; case 12: return STRUCT_CON; case 13: return STRUCT_PROJ; case 14: return STRUCT_UPD; case 15: return APP; case 16: return TY_APP; case 17: return ABS; case 18: return TY_ABS; case 19: return CASE; case 20: return LET; case 21: return NIL; case 22: return CONS; case 23: return UPDATE; case 25: return OPTIONAL_NONE; case 26: return OPTIONAL_SOME; case 27: return TO_ANY; case 28: return FROM_ANY; case 29: return TYPE_REP; case 30: return TO_ANY_EXCEPTION; case 31: return FROM_ANY_EXCEPTION; case 32: return THROW; case 33: return TO_INTERFACE; case 34: return FROM_INTERFACE; case 35: return CALL_INTERFACE; case 36: return SIGNATORY_INTERFACE; case 37: return OBSERVER_INTERFACE; case 38: return VIEW_INTERFACE; case 39: return UNSAFE_FROM_INTERFACE; case 40: return INTERFACE_TEMPLATE_TYPE_REP; case 41: return TO_REQUIRED_INTERFACE; case 42: return FROM_REQUIRED_INTERFACE; case 43: return UNSAFE_FROM_REQUIRED_INTERFACE; case 1001: return CHOICE_CONTROLLER; case 1002: return CHOICE_OBSERVER; case 1003: return SCENARIO; 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 = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_2.Location location = 1; * @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_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** *
     * Location of the expression in the Daml code source.
     * Optional
     * 
* * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int VAR_INTERNED_STR_FIELD_NUMBER = 2; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 2; * @return Whether the varInternedStr field is set. */ @java.lang.Override public boolean hasVarInternedStr() { return sumCase_ == 2; } /** *
     * *Must be a valid interned identifier*
     * 
* * int32 var_interned_str = 2; * @return The varInternedStr. */ @java.lang.Override public int getVarInternedStr() { if (sumCase_ == 2) { return (java.lang.Integer) sum_; } return 0; } public static final int VAL_FIELD_NUMBER = 3; /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_2.ValName val = 3; * @return Whether the val field is set. */ @java.lang.Override public boolean hasVal() { return sumCase_ == 3; } /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_2.ValName val = 3; * @return The val. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValName getVal() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } /** *
     * Defined value ('ExpVal')
     * 
* * .daml_lf_2.ValName val = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder getValOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } public static final int BUILTIN_FIELD_NUMBER = 4; /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return Whether the builtin field is set. */ public boolean hasBuiltin() { return sumCase_ == 4; } /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return The enum numeric value on the wire for builtin. */ public int getBuiltinValue() { if (sumCase_ == 4) { return (java.lang.Integer) sum_; } return 0; } /** *
     * Builtin function ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return The builtin. */ public com.daml.daml_lf_dev.DamlLf2.BuiltinFunction getBuiltin() { if (sumCase_ == 4) { com.daml.daml_lf_dev.DamlLf2.BuiltinFunction result = com.daml.daml_lf_dev.DamlLf2.BuiltinFunction.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinFunction.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinFunction.TRACE; } public static final int BUILTIN_CON_FIELD_NUMBER = 5; /** *
     * Builtin constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return Whether the builtinCon field is set. */ public boolean hasBuiltinCon() { return sumCase_ == 5; } /** *
     * Builtin constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return The enum numeric value on the wire for builtinCon. */ public int getBuiltinConValue() { if (sumCase_ == 5) { return (java.lang.Integer) sum_; } return 0; } /** *
     * Builtin constructor ('()', 'False' or 'True')
     * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return The builtinCon. */ public com.daml.daml_lf_dev.DamlLf2.BuiltinCon getBuiltinCon() { if (sumCase_ == 5) { com.daml.daml_lf_dev.DamlLf2.BuiltinCon result = com.daml.daml_lf_dev.DamlLf2.BuiltinCon.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinCon.CON_UNIT; } public static final int BUILTIN_LIT_FIELD_NUMBER = 6; /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; * @return Whether the builtinLit field is set. */ @java.lang.Override public boolean hasBuiltinLit() { return sumCase_ == 6; } /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; * @return The builtinLit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLit getBuiltinLit() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_; } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } /** *
     * Builtin literal ('ExpBuiltin')
     * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder getBuiltinLitOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_; } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } public static final int REC_CON_FIELD_NUMBER = 7; /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; * @return Whether the recCon field is set. */ @java.lang.Override public boolean hasRecCon() { return sumCase_ == 7; } /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; * @return The recCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecCon getRecCon() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } /** *
     * Record construction ('ExpRecCon')
     * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder getRecConOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } public static final int REC_PROJ_FIELD_NUMBER = 8; /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; * @return Whether the recProj field is set. */ @java.lang.Override public boolean hasRecProj() { return sumCase_ == 8; } /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; * @return The recProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProj getRecProj() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } /** *
     * Record projection ('ExpRecProj')
     * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder getRecProjOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } public static final int REC_UPD_FIELD_NUMBER = 9; /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; * @return Whether the recUpd field is set. */ @java.lang.Override public boolean hasRecUpd() { return sumCase_ == 9; } /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; * @return The recUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd getRecUpd() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } /** *
     * Record udpate ('ExpRecUpdate')
     * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder getRecUpdOrBuilder() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } public static final int VARIANT_CON_FIELD_NUMBER = 10; /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; * @return Whether the variantCon field is set. */ @java.lang.Override public boolean hasVariantCon() { return sumCase_ == 10; } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; * @return The variantCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon getVariantCon() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } /** *
     * Variant construction ('ExpVariantCon')
     * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder getVariantConOrBuilder() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } public static final int ENUM_CON_FIELD_NUMBER = 11; /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; * @return Whether the enumCon field is set. */ @java.lang.Override public boolean hasEnumCon() { return sumCase_ == 11; } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; * @return The enumCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon getEnumCon() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } /** *
     * Enum construction ('ExpEnumCon')
     * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder getEnumConOrBuilder() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } public static final int STRUCT_CON_FIELD_NUMBER = 12; /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; * @return Whether the structCon field is set. */ @java.lang.Override public boolean hasStructCon() { return sumCase_ == 12; } /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; * @return The structCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructCon getStructCon() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } /** *
     * Struct construction ('ExpStructCon')
     * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder getStructConOrBuilder() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } public static final int STRUCT_PROJ_FIELD_NUMBER = 13; /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; * @return Whether the structProj field is set. */ @java.lang.Override public boolean hasStructProj() { return sumCase_ == 13; } /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; * @return The structProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProj getStructProj() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } /** *
     * Struct project ('ExpStructProj')
     * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder getStructProjOrBuilder() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } public static final int STRUCT_UPD_FIELD_NUMBER = 14; /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; * @return Whether the structUpd field is set. */ @java.lang.Override public boolean hasStructUpd() { return sumCase_ == 14; } /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; * @return The structUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd getStructUpd() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } /** *
     * Struct update ('ExpStructUpdate')
     * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder getStructUpdOrBuilder() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } public static final int APP_FIELD_NUMBER = 15; /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_2.Expr.App app = 15; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return sumCase_ == 15; } /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_2.Expr.App app = 15; * @return The app. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.App getApp() { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } /** *
     * Application ('ExpApp')
     * 
* * .daml_lf_2.Expr.App app = 15; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder getAppOrBuilder() { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } public static final int TY_APP_FIELD_NUMBER = 16; /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; * @return Whether the tyApp field is set. */ @java.lang.Override public boolean hasTyApp() { return sumCase_ == 16; } /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; * @return The tyApp. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyApp getTyApp() { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } /** *
     * Type Application ('ExpTyApp')
     * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder getTyAppOrBuilder() { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } public static final int ABS_FIELD_NUMBER = 17; /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_2.Expr.Abs abs = 17; * @return Whether the abs field is set. */ @java.lang.Override public boolean hasAbs() { return sumCase_ == 17; } /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_2.Expr.Abs abs = 17; * @return The abs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Abs getAbs() { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } /** *
     * Abstraction ('ExpAbs')
     * 
* * .daml_lf_2.Expr.Abs abs = 17; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder getAbsOrBuilder() { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } public static final int TY_ABS_FIELD_NUMBER = 18; /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; * @return Whether the tyAbs field is set. */ @java.lang.Override public boolean hasTyAbs() { return sumCase_ == 18; } /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; * @return The tyAbs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs getTyAbs() { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } /** *
     * Type Abstraction ('ExpTyAbs')
     * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder getTyAbsOrBuilder() { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } public static final int CASE_FIELD_NUMBER = 19; /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_2.Case case = 19; * @return Whether the case field is set. */ @java.lang.Override public boolean hasCase() { return sumCase_ == 19; } /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_2.Case case = 19; * @return The case. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Case getCase() { if (sumCase_ == 19) { return (com.daml.daml_lf_dev.DamlLf2.Case) sum_; } return com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } /** *
     * Pattern Matching ('ExpCase')
     * 
* * .daml_lf_2.Case case = 19; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder getCaseOrBuilder() { if (sumCase_ == 19) { return (com.daml.daml_lf_dev.DamlLf2.Case) sum_; } return com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } public static final int LET_FIELD_NUMBER = 20; /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_2.Block let = 20; * @return Whether the let field is set. */ @java.lang.Override public boolean hasLet() { return sumCase_ == 20; } /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_2.Block let = 20; * @return The let. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getLet() { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } /** *
     * Let block ('ExpLet')
     * 
* * .daml_lf_2.Block let = 20; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getLetOrBuilder() { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } public static final int NIL_FIELD_NUMBER = 21; /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_2.Expr.Nil nil = 21; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 21; } /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_2.Expr.Nil nil = 21; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Nil getNil() { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } /** *
     * Empty List ('ExpNil')
     * 
* * .daml_lf_2.Expr.Nil nil = 21; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder getNilOrBuilder() { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } public static final int CONS_FIELD_NUMBER = 22; /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_2.Expr.Cons cons = 22; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 22; } /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_2.Expr.Cons cons = 22; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Cons getCons() { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } /** *
     * Non Empty list ('ExpCons')
     * 
* * .daml_lf_2.Expr.Cons cons = 22; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder getConsOrBuilder() { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } public static final int UPDATE_FIELD_NUMBER = 23; /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_2.Update update = 23; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return sumCase_ == 23; } /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_2.Update update = 23; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update getUpdate() { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf2.Update) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } /** *
     * Update expression ('ExpUpdate')
     * 
* * .daml_lf_2.Update update = 23; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder getUpdateOrBuilder() { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf2.Update) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } public static final int OPTIONAL_NONE_FIELD_NUMBER = 25; /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 25; } /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone getOptionalNone() { if (sumCase_ == 25) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } /** *
     * empty optional value ('ExpNone')
     * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder() { if (sumCase_ == 25) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } public static final int OPTIONAL_SOME_FIELD_NUMBER = 26; /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 26; } /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome getOptionalSome() { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } /** *
     * non empty optional value ('ExpSome')
     * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } public static final int TO_ANY_FIELD_NUMBER = 27; /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * 
* * .daml_lf_2.Expr.ToAny to_any = 27; * @return Whether the toAny field is set. */ @java.lang.Override public boolean hasToAny() { return sumCase_ == 27; } /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * 
* * .daml_lf_2.Expr.ToAny to_any = 27; * @return The toAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAny getToAny() { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } /** *
     * Wrap an arbitrary value in Any ('ExpToAny')
     * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder getToAnyOrBuilder() { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } public static final int FROM_ANY_FIELD_NUMBER = 28; /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * 
* * .daml_lf_2.Expr.FromAny from_any = 28; * @return Whether the fromAny field is set. */ @java.lang.Override public boolean hasFromAny() { return sumCase_ == 28; } /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * 
* * .daml_lf_2.Expr.FromAny from_any = 28; * @return The fromAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAny getFromAny() { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } /** *
     * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
     * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder getFromAnyOrBuilder() { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } public static final int TYPE_REP_FIELD_NUMBER = 29; /** *
     * A type representation
     * 
* * .daml_lf_2.Type type_rep = 29; * @return Whether the typeRep field is set. */ @java.lang.Override public boolean hasTypeRep() { return sumCase_ == 29; } /** *
     * A type representation
     * 
* * .daml_lf_2.Type type_rep = 29; * @return The typeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getTypeRep() { if (sumCase_ == 29) { return (com.daml.daml_lf_dev.DamlLf2.Type) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } /** *
     * A type representation
     * 
* * .daml_lf_2.Type type_rep = 29; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeRepOrBuilder() { if (sumCase_ == 29) { return (com.daml.daml_lf_dev.DamlLf2.Type) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } public static final int TO_ANY_EXCEPTION_FIELD_NUMBER = 30; /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; * @return Whether the toAnyException field is set. */ @java.lang.Override public boolean hasToAnyException() { return sumCase_ == 30; } /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; * @return The toAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException getToAnyException() { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } /** *
     * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
     * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder getToAnyExceptionOrBuilder() { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } public static final int FROM_ANY_EXCEPTION_FIELD_NUMBER = 31; /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; * @return Whether the fromAnyException field is set. */ @java.lang.Override public boolean hasFromAnyException() { return sumCase_ == 31; } /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; * @return The fromAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException getFromAnyException() { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } /** *
     * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
     * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder getFromAnyExceptionOrBuilder() { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } public static final int THROW_FIELD_NUMBER = 32; /** *
     * Throw an exception ('ExpThrow').
     * 
* * .daml_lf_2.Expr.Throw throw = 32; * @return Whether the throw field is set. */ @java.lang.Override public boolean hasThrow() { return sumCase_ == 32; } /** *
     * Throw an exception ('ExpThrow').
     * 
* * .daml_lf_2.Expr.Throw throw = 32; * @return The throw. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Throw getThrow() { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } /** *
     * Throw an exception ('ExpThrow').
     * 
* * .daml_lf_2.Expr.Throw throw = 32; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder getThrowOrBuilder() { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } public static final int TO_INTERFACE_FIELD_NUMBER = 33; /** *
     * Convert to/from interface payloads.
     * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; * @return Whether the toInterface field is set. */ @java.lang.Override public boolean hasToInterface() { return sumCase_ == 33; } /** *
     * Convert to/from interface payloads.
     * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; * @return The toInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface getToInterface() { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } /** *
     * Convert to/from interface payloads.
     * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder getToInterfaceOrBuilder() { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } public static final int FROM_INTERFACE_FIELD_NUMBER = 34; /** * .daml_lf_2.Expr.FromInterface from_interface = 34; * @return Whether the fromInterface field is set. */ @java.lang.Override public boolean hasFromInterface() { return sumCase_ == 34; } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; * @return The fromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface getFromInterface() { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder getFromInterfaceOrBuilder() { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } public static final int CALL_INTERFACE_FIELD_NUMBER = 35; /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; * @return Whether the callInterface field is set. */ @java.lang.Override public boolean hasCallInterface() { return sumCase_ == 35; } /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; * @return The callInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface getCallInterface() { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder() { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } public static final int SIGNATORY_INTERFACE_FIELD_NUMBER = 36; /** *
     * Obtain a contract's signatories/observers through an interface.
     * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; * @return Whether the signatoryInterface field is set. */ @java.lang.Override public boolean hasSignatoryInterface() { return sumCase_ == 36; } /** *
     * Obtain a contract's signatories/observers through an interface.
     * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; * @return The signatoryInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface getSignatoryInterface() { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } /** *
     * Obtain a contract's signatories/observers through an interface.
     * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder() { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } public static final int OBSERVER_INTERFACE_FIELD_NUMBER = 37; /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; * @return Whether the observerInterface field is set. */ @java.lang.Override public boolean hasObserverInterface() { return sumCase_ == 37; } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; * @return The observerInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface getObserverInterface() { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder() { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } public static final int VIEW_INTERFACE_FIELD_NUMBER = 38; /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; * @return Whether the viewInterface field is set. */ @java.lang.Override public boolean hasViewInterface() { return sumCase_ == 38; } /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; * @return The viewInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface getViewInterface() { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } /** *
     * Invoke an interface method.
     * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder getViewInterfaceOrBuilder() { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } public static final int UNSAFE_FROM_INTERFACE_FIELD_NUMBER = 39; /** *
     * Unsafe conversion from interface payloads.
     * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; * @return Whether the unsafeFromInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromInterface() { return sumCase_ == 39; } /** *
     * Unsafe conversion from interface payloads.
     * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; * @return The unsafeFromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface getUnsafeFromInterface() { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } /** *
     * Unsafe conversion from interface payloads.
     * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder() { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } public static final int INTERFACE_TEMPLATE_TYPE_REP_FIELD_NUMBER = 40; /** *
     * Obtain the type representation of a contract's template through an interface.
     * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; * @return Whether the interfaceTemplateTypeRep field is set. */ @java.lang.Override public boolean hasInterfaceTemplateTypeRep() { return sumCase_ == 40; } /** *
     * Obtain the type representation of a contract's template through an interface.
     * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; * @return The interfaceTemplateTypeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep() { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } /** *
     * Obtain the type representation of a contract's template through an interface.
     * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder() { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } public static final int TO_REQUIRED_INTERFACE_FIELD_NUMBER = 41; /** *
     * Upcast/downcast interface payloads.
     * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; * @return Whether the toRequiredInterface field is set. */ @java.lang.Override public boolean hasToRequiredInterface() { return sumCase_ == 41; } /** *
     * Upcast/downcast interface payloads.
     * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; * @return The toRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface getToRequiredInterface() { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } /** *
     * Upcast/downcast interface payloads.
     * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder() { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } public static final int FROM_REQUIRED_INTERFACE_FIELD_NUMBER = 42; /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; * @return Whether the fromRequiredInterface field is set. */ @java.lang.Override public boolean hasFromRequiredInterface() { return sumCase_ == 42; } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; * @return The fromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface getFromRequiredInterface() { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder() { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } public static final int UNSAFE_FROM_REQUIRED_INTERFACE_FIELD_NUMBER = 43; /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; * @return Whether the unsafeFromRequiredInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromRequiredInterface() { return sumCase_ == 43; } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; * @return The unsafeFromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface() { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder() { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } public static final int CHOICE_CONTROLLER_FIELD_NUMBER = 1001; /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; * @return Whether the choiceController field is set. */ @java.lang.Override public boolean hasChoiceController() { return sumCase_ == 1001; } /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; * @return The choiceController. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController getChoiceController() { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } /** *
     * Obtain the controllers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder getChoiceControllerOrBuilder() { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } public static final int CHOICE_OBSERVER_FIELD_NUMBER = 1002; /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; * @return Whether the choiceObserver field is set. */ @java.lang.Override public boolean hasChoiceObserver() { return sumCase_ == 1002; } /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; * @return The choiceObserver. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver getChoiceObserver() { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } /** *
     * Obtain the observers for a choice.
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder getChoiceObserverOrBuilder() { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } public static final int SCENARIO_FIELD_NUMBER = 1003; /** *
     * Scenario Expression ('ExpScenario')
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Scenario scenario = 1003; * @return Whether the scenario field is set. */ @java.lang.Override public boolean hasScenario() { return sumCase_ == 1003; } /** *
     * Scenario Expression ('ExpScenario')
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Scenario scenario = 1003; * @return The scenario. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario getScenario() { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } /** *
     * Scenario Expression ('ExpScenario')
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Scenario scenario = 1003; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder getScenarioOrBuilder() { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } public static final int EXPERIMENTAL_FIELD_NUMBER = 9999; /** *
     * *Available only in 2.dev*
     * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; * @return Whether the experimental field is set. */ @java.lang.Override public boolean hasExperimental() { return sumCase_ == 9999; } /** *
     * *Available only in 2.dev*
     * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; * @return The experimental. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Experimental getExperimental() { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance(); } /** *
     * *Available only in 2.dev*
     * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder getExperimentalOrBuilder() { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLocation()); } if (sumCase_ == 2) { output.writeInt32( 2, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf2.ValName) sum_); } if (sumCase_ == 4) { output.writeEnum(4, ((java.lang.Integer) sum_)); } if (sumCase_ == 5) { output.writeEnum(5, ((java.lang.Integer) sum_)); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_); } if (sumCase_ == 10) { output.writeMessage(10, (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_); } if (sumCase_ == 11) { output.writeMessage(11, (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_); } if (sumCase_ == 12) { output.writeMessage(12, (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_); } if (sumCase_ == 15) { output.writeMessage(15, (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_); } if (sumCase_ == 16) { output.writeMessage(16, (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_); } if (sumCase_ == 17) { output.writeMessage(17, (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_); } if (sumCase_ == 18) { output.writeMessage(18, (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_); } if (sumCase_ == 19) { output.writeMessage(19, (com.daml.daml_lf_dev.DamlLf2.Case) sum_); } if (sumCase_ == 20) { output.writeMessage(20, (com.daml.daml_lf_dev.DamlLf2.Block) sum_); } if (sumCase_ == 21) { output.writeMessage(21, (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_); } if (sumCase_ == 22) { output.writeMessage(22, (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_); } if (sumCase_ == 23) { output.writeMessage(23, (com.daml.daml_lf_dev.DamlLf2.Update) sum_); } if (sumCase_ == 25) { output.writeMessage(25, (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_); } if (sumCase_ == 26) { output.writeMessage(26, (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_); } if (sumCase_ == 27) { output.writeMessage(27, (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_); } if (sumCase_ == 28) { output.writeMessage(28, (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_); } if (sumCase_ == 29) { output.writeMessage(29, (com.daml.daml_lf_dev.DamlLf2.Type) sum_); } if (sumCase_ == 30) { output.writeMessage(30, (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_); } if (sumCase_ == 31) { output.writeMessage(31, (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_); } if (sumCase_ == 32) { output.writeMessage(32, (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_); } if (sumCase_ == 33) { output.writeMessage(33, (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_); } if (sumCase_ == 34) { output.writeMessage(34, (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_); } if (sumCase_ == 35) { output.writeMessage(35, (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_); } if (sumCase_ == 36) { output.writeMessage(36, (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_); } if (sumCase_ == 37) { output.writeMessage(37, (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_); } if (sumCase_ == 38) { output.writeMessage(38, (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_); } if (sumCase_ == 39) { output.writeMessage(39, (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_); } if (sumCase_ == 40) { output.writeMessage(40, (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_); } if (sumCase_ == 41) { output.writeMessage(41, (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_); } if (sumCase_ == 42) { output.writeMessage(42, (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_); } if (sumCase_ == 43) { output.writeMessage(43, (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_); } if (sumCase_ == 1001) { output.writeMessage(1001, (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_); } if (sumCase_ == 1002) { output.writeMessage(1002, (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_); } if (sumCase_ == 1003) { output.writeMessage(1003, (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_); } if (sumCase_ == 9999) { output.writeMessage(9999, (com.daml.daml_lf_dev.DamlLf2.Expr.Experimental) sum_); } 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 (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 2, (int)((java.lang.Integer) sum_)); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf2.ValName) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, ((java.lang.Integer) sum_)); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, ((java.lang.Integer) sum_)); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_); } if (sumCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_); } if (sumCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_); } if (sumCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_); } if (sumCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_); } if (sumCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (com.daml.daml_lf_dev.DamlLf2.Case) sum_); } if (sumCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (com.daml.daml_lf_dev.DamlLf2.Block) sum_); } if (sumCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_); } if (sumCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_); } if (sumCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (com.daml.daml_lf_dev.DamlLf2.Update) sum_); } if (sumCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_); } if (sumCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_); } if (sumCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_); } if (sumCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_); } if (sumCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (com.daml.daml_lf_dev.DamlLf2.Type) sum_); } if (sumCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_); } if (sumCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_); } if (sumCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_); } if (sumCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_); } if (sumCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_); } if (sumCase_ == 35) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_); } if (sumCase_ == 36) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_); } if (sumCase_ == 37) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_); } if (sumCase_ == 38) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(38, (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_); } if (sumCase_ == 39) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_); } if (sumCase_ == 40) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_); } if (sumCase_ == 41) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_); } if (sumCase_ == 42) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_); } if (sumCase_ == 43) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_); } if (sumCase_ == 1001) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_); } if (sumCase_ == 1002) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1002, (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_); } if (sumCase_ == 1003) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1003, (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_); } if (sumCase_ == 9999) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9999, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Expr other = (com.daml.daml_lf_dev.DamlLf2.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 2: if (getVarInternedStr() != other.getVarInternedStr()) return false; break; case 3: if (!getVal() .equals(other.getVal())) return false; break; case 4: if (getBuiltinValue() != other.getBuiltinValue()) return false; break; case 5: if (getBuiltinConValue() != other.getBuiltinConValue()) return false; break; case 6: if (!getBuiltinLit() .equals(other.getBuiltinLit())) return false; break; case 7: if (!getRecCon() .equals(other.getRecCon())) return false; break; case 8: if (!getRecProj() .equals(other.getRecProj())) return false; break; case 9: if (!getRecUpd() .equals(other.getRecUpd())) return false; break; case 10: if (!getVariantCon() .equals(other.getVariantCon())) return false; break; case 11: if (!getEnumCon() .equals(other.getEnumCon())) return false; break; case 12: if (!getStructCon() .equals(other.getStructCon())) return false; break; case 13: if (!getStructProj() .equals(other.getStructProj())) return false; break; case 14: if (!getStructUpd() .equals(other.getStructUpd())) return false; break; case 15: if (!getApp() .equals(other.getApp())) return false; break; case 16: if (!getTyApp() .equals(other.getTyApp())) return false; break; case 17: if (!getAbs() .equals(other.getAbs())) return false; break; case 18: if (!getTyAbs() .equals(other.getTyAbs())) return false; break; case 19: if (!getCase() .equals(other.getCase())) return false; break; case 20: if (!getLet() .equals(other.getLet())) return false; break; case 21: if (!getNil() .equals(other.getNil())) return false; break; case 22: if (!getCons() .equals(other.getCons())) return false; break; case 23: if (!getUpdate() .equals(other.getUpdate())) return false; break; case 25: if (!getOptionalNone() .equals(other.getOptionalNone())) return false; break; case 26: if (!getOptionalSome() .equals(other.getOptionalSome())) return false; break; case 27: if (!getToAny() .equals(other.getToAny())) return false; break; case 28: if (!getFromAny() .equals(other.getFromAny())) return false; break; case 29: if (!getTypeRep() .equals(other.getTypeRep())) return false; break; case 30: if (!getToAnyException() .equals(other.getToAnyException())) return false; break; case 31: if (!getFromAnyException() .equals(other.getFromAnyException())) return false; break; case 32: if (!getThrow() .equals(other.getThrow())) return false; break; case 33: if (!getToInterface() .equals(other.getToInterface())) return false; break; case 34: if (!getFromInterface() .equals(other.getFromInterface())) return false; break; case 35: if (!getCallInterface() .equals(other.getCallInterface())) return false; break; case 36: if (!getSignatoryInterface() .equals(other.getSignatoryInterface())) return false; break; case 37: if (!getObserverInterface() .equals(other.getObserverInterface())) return false; break; case 38: if (!getViewInterface() .equals(other.getViewInterface())) return false; break; case 39: if (!getUnsafeFromInterface() .equals(other.getUnsafeFromInterface())) return false; break; case 40: if (!getInterfaceTemplateTypeRep() .equals(other.getInterfaceTemplateTypeRep())) return false; break; case 41: if (!getToRequiredInterface() .equals(other.getToRequiredInterface())) return false; break; case 42: if (!getFromRequiredInterface() .equals(other.getFromRequiredInterface())) return false; break; case 43: if (!getUnsafeFromRequiredInterface() .equals(other.getUnsafeFromRequiredInterface())) return false; break; case 1001: if (!getChoiceController() .equals(other.getChoiceController())) return false; break; case 1002: if (!getChoiceObserver() .equals(other.getChoiceObserver())) return false; break; case 1003: if (!getScenario() .equals(other.getScenario())) 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 2: hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarInternedStr(); break; case 3: hash = (37 * hash) + VAL_FIELD_NUMBER; hash = (53 * hash) + getVal().hashCode(); break; case 4: hash = (37 * hash) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + getBuiltinValue(); break; case 5: hash = (37 * hash) + BUILTIN_CON_FIELD_NUMBER; hash = (53 * hash) + getBuiltinConValue(); break; case 6: hash = (37 * hash) + BUILTIN_LIT_FIELD_NUMBER; hash = (53 * hash) + getBuiltinLit().hashCode(); break; case 7: hash = (37 * hash) + REC_CON_FIELD_NUMBER; hash = (53 * hash) + getRecCon().hashCode(); break; case 8: hash = (37 * hash) + REC_PROJ_FIELD_NUMBER; hash = (53 * hash) + getRecProj().hashCode(); break; case 9: hash = (37 * hash) + REC_UPD_FIELD_NUMBER; hash = (53 * hash) + getRecUpd().hashCode(); break; case 10: hash = (37 * hash) + VARIANT_CON_FIELD_NUMBER; hash = (53 * hash) + getVariantCon().hashCode(); break; case 11: hash = (37 * hash) + ENUM_CON_FIELD_NUMBER; hash = (53 * hash) + getEnumCon().hashCode(); break; case 12: hash = (37 * hash) + STRUCT_CON_FIELD_NUMBER; hash = (53 * hash) + getStructCon().hashCode(); break; case 13: hash = (37 * hash) + STRUCT_PROJ_FIELD_NUMBER; hash = (53 * hash) + getStructProj().hashCode(); break; case 14: hash = (37 * hash) + STRUCT_UPD_FIELD_NUMBER; hash = (53 * hash) + getStructUpd().hashCode(); break; case 15: hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); break; case 16: hash = (37 * hash) + TY_APP_FIELD_NUMBER; hash = (53 * hash) + getTyApp().hashCode(); break; case 17: hash = (37 * hash) + ABS_FIELD_NUMBER; hash = (53 * hash) + getAbs().hashCode(); break; case 18: hash = (37 * hash) + TY_ABS_FIELD_NUMBER; hash = (53 * hash) + getTyAbs().hashCode(); break; case 19: hash = (37 * hash) + CASE_FIELD_NUMBER; hash = (53 * hash) + getCase().hashCode(); break; case 20: hash = (37 * hash) + LET_FIELD_NUMBER; hash = (53 * hash) + getLet().hashCode(); break; case 21: hash = (37 * hash) + NIL_FIELD_NUMBER; hash = (53 * hash) + getNil().hashCode(); break; case 22: hash = (37 * hash) + CONS_FIELD_NUMBER; hash = (53 * hash) + getCons().hashCode(); break; case 23: hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); break; case 25: hash = (37 * hash) + OPTIONAL_NONE_FIELD_NUMBER; hash = (53 * hash) + getOptionalNone().hashCode(); break; case 26: hash = (37 * hash) + OPTIONAL_SOME_FIELD_NUMBER; hash = (53 * hash) + getOptionalSome().hashCode(); break; case 27: hash = (37 * hash) + TO_ANY_FIELD_NUMBER; hash = (53 * hash) + getToAny().hashCode(); break; case 28: hash = (37 * hash) + FROM_ANY_FIELD_NUMBER; hash = (53 * hash) + getFromAny().hashCode(); break; case 29: hash = (37 * hash) + TYPE_REP_FIELD_NUMBER; hash = (53 * hash) + getTypeRep().hashCode(); break; case 30: hash = (37 * hash) + TO_ANY_EXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getToAnyException().hashCode(); break; case 31: hash = (37 * hash) + FROM_ANY_EXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getFromAnyException().hashCode(); break; case 32: hash = (37 * hash) + THROW_FIELD_NUMBER; hash = (53 * hash) + getThrow().hashCode(); break; case 33: hash = (37 * hash) + TO_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getToInterface().hashCode(); break; case 34: hash = (37 * hash) + FROM_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFromInterface().hashCode(); break; case 35: hash = (37 * hash) + CALL_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getCallInterface().hashCode(); break; case 36: hash = (37 * hash) + SIGNATORY_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getSignatoryInterface().hashCode(); break; case 37: hash = (37 * hash) + OBSERVER_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getObserverInterface().hashCode(); break; case 38: hash = (37 * hash) + VIEW_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getViewInterface().hashCode(); break; case 39: hash = (37 * hash) + UNSAFE_FROM_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getUnsafeFromInterface().hashCode(); break; case 40: hash = (37 * hash) + INTERFACE_TEMPLATE_TYPE_REP_FIELD_NUMBER; hash = (53 * hash) + getInterfaceTemplateTypeRep().hashCode(); break; case 41: hash = (37 * hash) + TO_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getToRequiredInterface().hashCode(); break; case 42: hash = (37 * hash) + FROM_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getFromRequiredInterface().hashCode(); break; case 43: hash = (37 * hash) + UNSAFE_FROM_REQUIRED_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getUnsafeFromRequiredInterface().hashCode(); break; case 1001: hash = (37 * hash) + CHOICE_CONTROLLER_FIELD_NUMBER; hash = (53 * hash) + getChoiceController().hashCode(); break; case 1002: hash = (37 * hash) + CHOICE_OBSERVER_FIELD_NUMBER; hash = (53 * hash) + getChoiceObserver().hashCode(); break; case 1003: hash = (37 * hash) + SCENARIO_FIELD_NUMBER; hash = (53 * hash) + getScenario().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.DamlLf2.Expr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Expr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Expr) com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Expr.class, com.daml.daml_lf_dev.DamlLf2.Expr.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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 (builtinLitBuilder_ != null) { builtinLitBuilder_.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 (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 (scenarioBuilder_ != null) { scenarioBuilder_.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.DamlLf2.internal_static_daml_lf_2_Expr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr build() { com.daml.daml_lf_dev.DamlLf2.Expr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr buildPartial() { com.daml.daml_lf_dev.DamlLf2.Expr result = new com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Expr result) { int from_bitField1_ = bitField1_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.Expr result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 3 && valBuilder_ != null) { result.sum_ = valBuilder_.build(); } if (sumCase_ == 6 && builtinLitBuilder_ != null) { result.sum_ = builtinLitBuilder_.build(); } if (sumCase_ == 7 && recConBuilder_ != null) { result.sum_ = recConBuilder_.build(); } if (sumCase_ == 8 && recProjBuilder_ != null) { result.sum_ = recProjBuilder_.build(); } if (sumCase_ == 9 && recUpdBuilder_ != null) { result.sum_ = recUpdBuilder_.build(); } if (sumCase_ == 10 && variantConBuilder_ != null) { result.sum_ = variantConBuilder_.build(); } if (sumCase_ == 11 && enumConBuilder_ != null) { result.sum_ = enumConBuilder_.build(); } if (sumCase_ == 12 && structConBuilder_ != null) { result.sum_ = structConBuilder_.build(); } if (sumCase_ == 13 && structProjBuilder_ != null) { result.sum_ = structProjBuilder_.build(); } if (sumCase_ == 14 && structUpdBuilder_ != null) { result.sum_ = structUpdBuilder_.build(); } if (sumCase_ == 15 && appBuilder_ != null) { result.sum_ = appBuilder_.build(); } if (sumCase_ == 16 && tyAppBuilder_ != null) { result.sum_ = tyAppBuilder_.build(); } if (sumCase_ == 17 && absBuilder_ != null) { result.sum_ = absBuilder_.build(); } if (sumCase_ == 18 && tyAbsBuilder_ != null) { result.sum_ = tyAbsBuilder_.build(); } if (sumCase_ == 19 && caseBuilder_ != null) { result.sum_ = caseBuilder_.build(); } if (sumCase_ == 20 && letBuilder_ != null) { result.sum_ = letBuilder_.build(); } if (sumCase_ == 21 && nilBuilder_ != null) { result.sum_ = nilBuilder_.build(); } if (sumCase_ == 22 && consBuilder_ != null) { result.sum_ = consBuilder_.build(); } if (sumCase_ == 23 && updateBuilder_ != null) { result.sum_ = updateBuilder_.build(); } if (sumCase_ == 25 && optionalNoneBuilder_ != null) { result.sum_ = optionalNoneBuilder_.build(); } if (sumCase_ == 26 && optionalSomeBuilder_ != null) { result.sum_ = optionalSomeBuilder_.build(); } if (sumCase_ == 27 && toAnyBuilder_ != null) { result.sum_ = toAnyBuilder_.build(); } if (sumCase_ == 28 && fromAnyBuilder_ != null) { result.sum_ = fromAnyBuilder_.build(); } if (sumCase_ == 29 && typeRepBuilder_ != null) { result.sum_ = typeRepBuilder_.build(); } if (sumCase_ == 30 && toAnyExceptionBuilder_ != null) { result.sum_ = toAnyExceptionBuilder_.build(); } if (sumCase_ == 31 && fromAnyExceptionBuilder_ != null) { result.sum_ = fromAnyExceptionBuilder_.build(); } if (sumCase_ == 32 && throwBuilder_ != null) { result.sum_ = throwBuilder_.build(); } if (sumCase_ == 33 && toInterfaceBuilder_ != null) { result.sum_ = toInterfaceBuilder_.build(); } if (sumCase_ == 34 && fromInterfaceBuilder_ != null) { result.sum_ = fromInterfaceBuilder_.build(); } if (sumCase_ == 35 && callInterfaceBuilder_ != null) { result.sum_ = callInterfaceBuilder_.build(); } if (sumCase_ == 36 && signatoryInterfaceBuilder_ != null) { result.sum_ = signatoryInterfaceBuilder_.build(); } if (sumCase_ == 37 && observerInterfaceBuilder_ != null) { result.sum_ = observerInterfaceBuilder_.build(); } if (sumCase_ == 38 && viewInterfaceBuilder_ != null) { result.sum_ = viewInterfaceBuilder_.build(); } if (sumCase_ == 39 && unsafeFromInterfaceBuilder_ != null) { result.sum_ = unsafeFromInterfaceBuilder_.build(); } if (sumCase_ == 40 && interfaceTemplateTypeRepBuilder_ != null) { result.sum_ = interfaceTemplateTypeRepBuilder_.build(); } if (sumCase_ == 41 && toRequiredInterfaceBuilder_ != null) { result.sum_ = toRequiredInterfaceBuilder_.build(); } if (sumCase_ == 42 && fromRequiredInterfaceBuilder_ != null) { result.sum_ = fromRequiredInterfaceBuilder_.build(); } if (sumCase_ == 43 && unsafeFromRequiredInterfaceBuilder_ != null) { result.sum_ = unsafeFromRequiredInterfaceBuilder_.build(); } if (sumCase_ == 1001 && choiceControllerBuilder_ != null) { result.sum_ = choiceControllerBuilder_.build(); } if (sumCase_ == 1002 && choiceObserverBuilder_ != null) { result.sum_ = choiceObserverBuilder_.build(); } if (sumCase_ == 1003 && scenarioBuilder_ != null) { result.sum_ = scenarioBuilder_.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.DamlLf2.Expr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Expr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Expr other) { if (other == com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } switch (other.getSumCase()) { case VAR_INTERNED_STR: { setVarInternedStr(other.getVarInternedStr()); break; } case VAL: { mergeVal(other.getVal()); break; } case BUILTIN: { setBuiltinValue(other.getBuiltinValue()); break; } case BUILTIN_CON: { setBuiltinConValue(other.getBuiltinConValue()); break; } case BUILTIN_LIT: { mergeBuiltinLit(other.getBuiltinLit()); 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 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 SCENARIO: { mergeScenario(other.getScenario()); 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: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { sum_ = input.readInt32(); sumCase_ = 2; break; } // case 16 case 26: { input.readMessage( getValFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 case 32: { int rawValue = input.readEnum(); sumCase_ = 4; sum_ = rawValue; break; } // case 32 case 40: { int rawValue = input.readEnum(); sumCase_ = 5; sum_ = rawValue; break; } // case 40 case 50: { input.readMessage( getBuiltinLitFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 6; break; } // case 50 case 58: { input.readMessage( getRecConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 7; break; } // case 58 case 66: { input.readMessage( getRecProjFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 8; break; } // case 66 case 74: { input.readMessage( getRecUpdFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 9; break; } // case 74 case 82: { input.readMessage( getVariantConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 10; break; } // case 82 case 90: { input.readMessage( getEnumConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 11; break; } // case 90 case 98: { input.readMessage( getStructConFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 12; break; } // case 98 case 106: { input.readMessage( getStructProjFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 13; break; } // case 106 case 114: { input.readMessage( getStructUpdFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 14; break; } // case 114 case 122: { input.readMessage( getAppFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 15; break; } // case 122 case 130: { input.readMessage( getTyAppFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 16; break; } // case 130 case 138: { input.readMessage( getAbsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 17; break; } // case 138 case 146: { input.readMessage( getTyAbsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 18; break; } // case 146 case 154: { input.readMessage( getCaseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 19; break; } // case 154 case 162: { input.readMessage( getLetFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 20; break; } // case 162 case 170: { input.readMessage( getNilFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 21; break; } // case 170 case 178: { input.readMessage( getConsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 22; break; } // case 178 case 186: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 23; break; } // case 186 case 202: { input.readMessage( getOptionalNoneFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 25; break; } // case 202 case 210: { input.readMessage( getOptionalSomeFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 26; break; } // case 210 case 218: { input.readMessage( getToAnyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 27; break; } // case 218 case 226: { input.readMessage( getFromAnyFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 28; break; } // case 226 case 234: { input.readMessage( getTypeRepFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 29; break; } // case 234 case 242: { input.readMessage( getToAnyExceptionFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 30; break; } // case 242 case 250: { input.readMessage( getFromAnyExceptionFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 31; break; } // case 250 case 258: { input.readMessage( getThrowFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 32; break; } // case 258 case 266: { input.readMessage( getToInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 33; break; } // case 266 case 274: { input.readMessage( getFromInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 34; break; } // case 274 case 282: { input.readMessage( getCallInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 35; break; } // case 282 case 290: { input.readMessage( getSignatoryInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 36; break; } // case 290 case 298: { input.readMessage( getObserverInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 37; break; } // case 298 case 306: { input.readMessage( getViewInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 38; break; } // case 306 case 314: { input.readMessage( getUnsafeFromInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 39; break; } // case 314 case 322: { input.readMessage( getInterfaceTemplateTypeRepFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 40; break; } // case 322 case 330: { input.readMessage( getToRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 41; break; } // case 330 case 338: { input.readMessage( getFromRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 42; break; } // case 338 case 346: { input.readMessage( getUnsafeFromRequiredInterfaceFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 43; break; } // case 346 case 8010: { input.readMessage( getChoiceControllerFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1001; break; } // case 8010 case 8018: { input.readMessage( getChoiceObserverFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1002; break; } // case 8018 case 8026: { input.readMessage( getScenarioFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1003; break; } // case 8026 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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_2.Location location = 1; * @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_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.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_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.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_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.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_2.Location location = 1; */ 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_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** *
       * Location of the expression in the Daml code source.
       * Optional
       * 
* * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 2; * @return Whether the varInternedStr field is set. */ public boolean hasVarInternedStr() { return sumCase_ == 2; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 2; * @return The varInternedStr. */ public int getVarInternedStr() { if (sumCase_ == 2) { return (java.lang.Integer) sum_; } return 0; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 2; * @param value The varInternedStr to set. * @return This builder for chaining. */ public Builder setVarInternedStr(int value) { sumCase_ = 2; sum_ = value; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_interned_str = 2; * @return This builder for chaining. */ public Builder clearVarInternedStr() { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ValName, com.daml.daml_lf_dev.DamlLf2.ValName.Builder, com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder> valBuilder_; /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; * @return Whether the val field is set. */ @java.lang.Override public boolean hasVal() { return sumCase_ == 3; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; * @return The val. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValName getVal() { if (valBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } else { if (sumCase_ == 3) { return valBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ public Builder setVal(com.daml.daml_lf_dev.DamlLf2.ValName value) { if (valBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { valBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ public Builder setVal( com.daml.daml_lf_dev.DamlLf2.ValName.Builder builderForValue) { if (valBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { valBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ public Builder mergeVal(com.daml.daml_lf_dev.DamlLf2.ValName value) { if (valBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.ValName.newBuilder((com.daml.daml_lf_dev.DamlLf2.ValName) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { valBuilder_.mergeFrom(value); } else { valBuilder_.setMessage(value); } } sumCase_ = 3; return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ public Builder clearVal() { if (valBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } valBuilder_.clear(); } return this; } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ public com.daml.daml_lf_dev.DamlLf2.ValName.Builder getValBuilder() { return getValFieldBuilder().getBuilder(); } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder getValOrBuilder() { if ((sumCase_ == 3) && (valBuilder_ != null)) { return valBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.ValName) sum_; } return com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } } /** *
       * Defined value ('ExpVal')
       * 
* * .daml_lf_2.ValName val = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ValName, com.daml.daml_lf_dev.DamlLf2.ValName.Builder, com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder> getValFieldBuilder() { if (valBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf2.ValName.getDefaultInstance(); } valBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.ValName, com.daml.daml_lf_dev.DamlLf2.ValName.Builder, com.daml.daml_lf_dev.DamlLf2.ValNameOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.ValName) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged(); return valBuilder_; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return Whether the builtin field is set. */ @java.lang.Override public boolean hasBuiltin() { return sumCase_ == 4; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return The enum numeric value on the wire for builtin. */ @java.lang.Override public int getBuiltinValue() { if (sumCase_ == 4) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @param value The enum numeric value on the wire for builtin to set. * @return This builder for chaining. */ public Builder setBuiltinValue(int value) { sumCase_ = 4; sum_ = value; onChanged(); return this; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return The builtin. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinFunction getBuiltin() { if (sumCase_ == 4) { com.daml.daml_lf_dev.DamlLf2.BuiltinFunction result = com.daml.daml_lf_dev.DamlLf2.BuiltinFunction.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinFunction.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinFunction.TRACE; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @param value The builtin to set. * @return This builder for chaining. */ public Builder setBuiltin(com.daml.daml_lf_dev.DamlLf2.BuiltinFunction value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 4; sum_ = value.getNumber(); onChanged(); return this; } /** *
       * Builtin function ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinFunction builtin = 4; * @return This builder for chaining. */ public Builder clearBuiltin() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } /** *
       * Builtin constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return Whether the builtinCon field is set. */ @java.lang.Override public boolean hasBuiltinCon() { return sumCase_ == 5; } /** *
       * Builtin constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return The enum numeric value on the wire for builtinCon. */ @java.lang.Override public int getBuiltinConValue() { if (sumCase_ == 5) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** *
       * Builtin constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @param value The enum numeric value on the wire for builtinCon to set. * @return This builder for chaining. */ public Builder setBuiltinConValue(int value) { sumCase_ = 5; sum_ = value; onChanged(); return this; } /** *
       * Builtin constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return The builtinCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinCon getBuiltinCon() { if (sumCase_ == 5) { com.daml.daml_lf_dev.DamlLf2.BuiltinCon result = com.daml.daml_lf_dev.DamlLf2.BuiltinCon.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinCon.CON_UNIT; } /** *
       * Builtin constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @param value The builtinCon to set. * @return This builder for chaining. */ public Builder setBuiltinCon(com.daml.daml_lf_dev.DamlLf2.BuiltinCon value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 5; sum_ = value.getNumber(); onChanged(); return this; } /** *
       * Builtin constructor ('()', 'False' or 'True')
       * 
* * .daml_lf_2.BuiltinCon builtin_con = 5; * @return This builder for chaining. */ public Builder clearBuiltinCon() { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.BuiltinLit, com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder, com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder> builtinLitBuilder_; /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; * @return Whether the builtinLit field is set. */ @java.lang.Override public boolean hasBuiltinLit() { return sumCase_ == 6; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; * @return The builtinLit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLit getBuiltinLit() { if (builtinLitBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_; } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } else { if (sumCase_ == 6) { return builtinLitBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ public Builder setBuiltinLit(com.daml.daml_lf_dev.DamlLf2.BuiltinLit value) { if (builtinLitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { builtinLitBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ public Builder setBuiltinLit( com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder builderForValue) { if (builtinLitBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { builtinLitBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ public Builder mergeBuiltinLit(com.daml.daml_lf_dev.DamlLf2.BuiltinLit value) { if (builtinLitBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.BuiltinLit.newBuilder((com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 6) { builtinLitBuilder_.mergeFrom(value); } else { builtinLitBuilder_.setMessage(value); } } sumCase_ = 6; return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ public Builder clearBuiltinLit() { if (builtinLitBuilder_ == null) { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; } builtinLitBuilder_.clear(); } return this; } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ public com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder getBuiltinLitBuilder() { return getBuiltinLitFieldBuilder().getBuilder(); } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder getBuiltinLitOrBuilder() { if ((sumCase_ == 6) && (builtinLitBuilder_ != null)) { return builtinLitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_; } return com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } } /** *
       * Builtin literal ('ExpBuiltin')
       * 
* * .daml_lf_2.BuiltinLit builtin_lit = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.BuiltinLit, com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder, com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder> getBuiltinLitFieldBuilder() { if (builtinLitBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf2.BuiltinLit.getDefaultInstance(); } builtinLitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.BuiltinLit, com.daml.daml_lf_dev.DamlLf2.BuiltinLit.Builder, com.daml.daml_lf_dev.DamlLf2.BuiltinLitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.BuiltinLit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged(); return builtinLitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecCon, com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder> recConBuilder_; /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; * @return Whether the recCon field is set. */ @java.lang.Override public boolean hasRecCon() { return sumCase_ == 7; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; * @return The recCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecCon getRecCon() { if (recConBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } else { if (sumCase_ == 7) { return recConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ public Builder setRecCon(com.daml.daml_lf_dev.DamlLf2.Expr.RecCon value) { if (recConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recConBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ public Builder setRecCon( com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder builderForValue) { if (recConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ public Builder mergeRecCon(com.daml.daml_lf_dev.DamlLf2.Expr.RecCon value) { if (recConBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 7) { recConBuilder_.mergeFrom(value); } else { recConBuilder_.setMessage(value); } } sumCase_ = 7; return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ public Builder clearRecCon() { if (recConBuilder_ == null) { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 7) { sumCase_ = 0; sum_ = null; } recConBuilder_.clear(); } return this; } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ public com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder getRecConBuilder() { return getRecConFieldBuilder().getBuilder(); } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder getRecConOrBuilder() { if ((sumCase_ == 7) && (recConBuilder_ != null)) { return recConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } } /** *
       * Record construction ('ExpRecCon')
       * 
* * .daml_lf_2.Expr.RecCon rec_con = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecCon, com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder> getRecConFieldBuilder() { if (recConBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.getDefaultInstance(); } recConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecCon, com.daml.daml_lf_dev.DamlLf2.Expr.RecCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecConOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.RecCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged(); return recConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecProj, com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder> recProjBuilder_; /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; * @return Whether the recProj field is set. */ @java.lang.Override public boolean hasRecProj() { return sumCase_ == 8; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; * @return The recProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProj getRecProj() { if (recProjBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } else { if (sumCase_ == 8) { return recProjBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ public Builder setRecProj(com.daml.daml_lf_dev.DamlLf2.Expr.RecProj value) { if (recProjBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recProjBuilder_.setMessage(value); } sumCase_ = 8; return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ public Builder setRecProj( com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder builderForValue) { if (recProjBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recProjBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ public Builder mergeRecProj(com.daml.daml_lf_dev.DamlLf2.Expr.RecProj value) { if (recProjBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 8) { recProjBuilder_.mergeFrom(value); } else { recProjBuilder_.setMessage(value); } } sumCase_ = 8; return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ public Builder clearRecProj() { if (recProjBuilder_ == null) { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 8) { sumCase_ = 0; sum_ = null; } recProjBuilder_.clear(); } return this; } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ public com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder getRecProjBuilder() { return getRecProjFieldBuilder().getBuilder(); } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder getRecProjOrBuilder() { if ((sumCase_ == 8) && (recProjBuilder_ != null)) { return recProjBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } } /** *
       * Record projection ('ExpRecProj')
       * 
* * .daml_lf_2.Expr.RecProj rec_proj = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecProj, com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder> getRecProjFieldBuilder() { if (recProjBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.getDefaultInstance(); } recProjBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecProj, com.daml.daml_lf_dev.DamlLf2.Expr.RecProj.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecProjOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.RecProj) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged(); return recProjBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder> recUpdBuilder_; /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; * @return Whether the recUpd field is set. */ @java.lang.Override public boolean hasRecUpd() { return sumCase_ == 9; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; * @return The recUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd getRecUpd() { if (recUpdBuilder_ == null) { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } else { if (sumCase_ == 9) { return recUpdBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ public Builder setRecUpd(com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd value) { if (recUpdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { recUpdBuilder_.setMessage(value); } sumCase_ = 9; return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ public Builder setRecUpd( com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder builderForValue) { if (recUpdBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { recUpdBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ public Builder mergeRecUpd(com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd value) { if (recUpdBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 9) { recUpdBuilder_.mergeFrom(value); } else { recUpdBuilder_.setMessage(value); } } sumCase_ = 9; return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ public Builder clearRecUpd() { if (recUpdBuilder_ == null) { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 9) { sumCase_ = 0; sum_ = null; } recUpdBuilder_.clear(); } return this; } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder getRecUpdBuilder() { return getRecUpdFieldBuilder().getBuilder(); } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder getRecUpdOrBuilder() { if ((sumCase_ == 9) && (recUpdBuilder_ != null)) { return recUpdBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } } /** *
       * Record udpate ('ExpRecUpdate')
       * 
* * .daml_lf_2.Expr.RecUpd rec_upd = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder> getRecUpdFieldBuilder() { if (recUpdBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.getDefaultInstance(); } recUpdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.RecUpdOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.RecUpd) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged(); return recUpdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon, com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder> variantConBuilder_; /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; * @return Whether the variantCon field is set. */ @java.lang.Override public boolean hasVariantCon() { return sumCase_ == 10; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; * @return The variantCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon getVariantCon() { if (variantConBuilder_ == null) { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } else { if (sumCase_ == 10) { return variantConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ public Builder setVariantCon(com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon value) { if (variantConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { variantConBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ public Builder setVariantCon( com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder builderForValue) { if (variantConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { variantConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 10; return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ public Builder mergeVariantCon(com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon value) { if (variantConBuilder_ == null) { if (sumCase_ == 10 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 10) { variantConBuilder_.mergeFrom(value); } else { variantConBuilder_.setMessage(value); } } sumCase_ = 10; return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ public Builder clearVariantCon() { if (variantConBuilder_ == null) { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 10) { sumCase_ = 0; sum_ = null; } variantConBuilder_.clear(); } return this; } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ public com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder getVariantConBuilder() { return getVariantConFieldBuilder().getBuilder(); } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder getVariantConOrBuilder() { if ((sumCase_ == 10) && (variantConBuilder_ != null)) { return variantConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } } /** *
       * Variant construction ('ExpVariantCon')
       * 
* * .daml_lf_2.Expr.VariantCon variant_con = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon, com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder> getVariantConFieldBuilder() { if (variantConBuilder_ == null) { if (!(sumCase_ == 10)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.getDefaultInstance(); } variantConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon, com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.VariantConOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.VariantCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 10; onChanged(); return variantConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon, com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder> enumConBuilder_; /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; * @return Whether the enumCon field is set. */ @java.lang.Override public boolean hasEnumCon() { return sumCase_ == 11; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; * @return The enumCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon getEnumCon() { if (enumConBuilder_ == null) { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } else { if (sumCase_ == 11) { return enumConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ public Builder setEnumCon(com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon value) { if (enumConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { enumConBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ public Builder setEnumCon( com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder builderForValue) { if (enumConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 11; return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ public Builder mergeEnumCon(com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon value) { if (enumConBuilder_ == null) { if (sumCase_ == 11 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 11) { enumConBuilder_.mergeFrom(value); } else { enumConBuilder_.setMessage(value); } } sumCase_ = 11; return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ public Builder clearEnumCon() { if (enumConBuilder_ == null) { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 11) { sumCase_ = 0; sum_ = null; } enumConBuilder_.clear(); } return this; } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ public com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder getEnumConBuilder() { return getEnumConFieldBuilder().getBuilder(); } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder getEnumConOrBuilder() { if ((sumCase_ == 11) && (enumConBuilder_ != null)) { return enumConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } } /** *
       * Enum construction ('ExpEnumCon')
       * 
* * .daml_lf_2.Expr.EnumCon enum_con = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon, com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder> getEnumConFieldBuilder() { if (enumConBuilder_ == null) { if (!(sumCase_ == 11)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.getDefaultInstance(); } enumConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon, com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.EnumConOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.EnumCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 11; onChanged(); return enumConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructCon, com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder> structConBuilder_; /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; * @return Whether the structCon field is set. */ @java.lang.Override public boolean hasStructCon() { return sumCase_ == 12; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; * @return The structCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructCon getStructCon() { if (structConBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } else { if (sumCase_ == 12) { return structConBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ public Builder setStructCon(com.daml.daml_lf_dev.DamlLf2.Expr.StructCon value) { if (structConBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structConBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ public Builder setStructCon( com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.Builder builderForValue) { if (structConBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structConBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ public Builder mergeStructCon(com.daml.daml_lf_dev.DamlLf2.Expr.StructCon value) { if (structConBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 12) { structConBuilder_.mergeFrom(value); } else { structConBuilder_.setMessage(value); } } sumCase_ = 12; return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ public Builder clearStructCon() { if (structConBuilder_ == null) { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 12) { sumCase_ = 0; sum_ = null; } structConBuilder_.clear(); } return this; } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ public com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.Builder getStructConBuilder() { return getStructConFieldBuilder().getBuilder(); } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder getStructConOrBuilder() { if ((sumCase_ == 12) && (structConBuilder_ != null)) { return structConBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } } /** *
       * Struct construction ('ExpStructCon')
       * 
* * .daml_lf_2.Expr.StructCon struct_con = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructCon, com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder> getStructConFieldBuilder() { if (structConBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.getDefaultInstance(); } structConBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructCon, com.daml.daml_lf_dev.DamlLf2.Expr.StructCon.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructConOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.StructCon) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged(); return structConBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructProj, com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder> structProjBuilder_; /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; * @return Whether the structProj field is set. */ @java.lang.Override public boolean hasStructProj() { return sumCase_ == 13; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; * @return The structProj. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProj getStructProj() { if (structProjBuilder_ == null) { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } else { if (sumCase_ == 13) { return structProjBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ public Builder setStructProj(com.daml.daml_lf_dev.DamlLf2.Expr.StructProj value) { if (structProjBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structProjBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ public Builder setStructProj( com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder builderForValue) { if (structProjBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structProjBuilder_.setMessage(builderForValue.build()); } sumCase_ = 13; return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ public Builder mergeStructProj(com.daml.daml_lf_dev.DamlLf2.Expr.StructProj value) { if (structProjBuilder_ == null) { if (sumCase_ == 13 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 13) { structProjBuilder_.mergeFrom(value); } else { structProjBuilder_.setMessage(value); } } sumCase_ = 13; return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ public Builder clearStructProj() { if (structProjBuilder_ == null) { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 13) { sumCase_ = 0; sum_ = null; } structProjBuilder_.clear(); } return this; } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ public com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder getStructProjBuilder() { return getStructProjFieldBuilder().getBuilder(); } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder getStructProjOrBuilder() { if ((sumCase_ == 13) && (structProjBuilder_ != null)) { return structProjBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } } /** *
       * Struct project ('ExpStructProj')
       * 
* * .daml_lf_2.Expr.StructProj struct_proj = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructProj, com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder> getStructProjFieldBuilder() { if (structProjBuilder_ == null) { if (!(sumCase_ == 13)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.getDefaultInstance(); } structProjBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructProj, com.daml.daml_lf_dev.DamlLf2.Expr.StructProj.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructProjOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.StructProj) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 13; onChanged(); return structProjBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder> structUpdBuilder_; /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; * @return Whether the structUpd field is set. */ @java.lang.Override public boolean hasStructUpd() { return sumCase_ == 14; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; * @return The structUpd. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd getStructUpd() { if (structUpdBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } else { if (sumCase_ == 14) { return structUpdBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ public Builder setStructUpd(com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd value) { if (structUpdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { structUpdBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ public Builder setStructUpd( com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder builderForValue) { if (structUpdBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { structUpdBuilder_.setMessage(builderForValue.build()); } sumCase_ = 14; return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ public Builder mergeStructUpd(com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd value) { if (structUpdBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 14) { structUpdBuilder_.mergeFrom(value); } else { structUpdBuilder_.setMessage(value); } } sumCase_ = 14; return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ public Builder clearStructUpd() { if (structUpdBuilder_ == null) { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 14) { sumCase_ = 0; sum_ = null; } structUpdBuilder_.clear(); } return this; } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder getStructUpdBuilder() { return getStructUpdFieldBuilder().getBuilder(); } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder getStructUpdOrBuilder() { if ((sumCase_ == 14) && (structUpdBuilder_ != null)) { return structUpdBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } } /** *
       * Struct update ('ExpStructUpdate')
       * 
* * .daml_lf_2.Expr.StructUpd struct_upd = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder> getStructUpdFieldBuilder() { if (structUpdBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.getDefaultInstance(); } structUpdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.StructUpdOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.StructUpd) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged(); return structUpdBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.App, com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder> appBuilder_; /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return sumCase_ == 15; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; * @return The app. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.App getApp() { if (appBuilder_ == null) { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } else { if (sumCase_ == 15) { return appBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ public Builder setApp(com.daml.daml_lf_dev.DamlLf2.Expr.App value) { if (appBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { appBuilder_.setMessage(value); } sumCase_ = 15; return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ public Builder setApp( com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder builderForValue) { if (appBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { appBuilder_.setMessage(builderForValue.build()); } sumCase_ = 15; return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ public Builder mergeApp(com.daml.daml_lf_dev.DamlLf2.Expr.App value) { if (appBuilder_ == null) { if (sumCase_ == 15 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.App.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 15) { appBuilder_.mergeFrom(value); } else { appBuilder_.setMessage(value); } } sumCase_ = 15; return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ public Builder clearApp() { if (appBuilder_ == null) { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 15) { sumCase_ = 0; sum_ = null; } appBuilder_.clear(); } return this; } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ public com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder getAppBuilder() { return getAppFieldBuilder().getBuilder(); } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder getAppOrBuilder() { if ((sumCase_ == 15) && (appBuilder_ != null)) { return appBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 15) { return (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } } /** *
       * Application ('ExpApp')
       * 
* * .daml_lf_2.Expr.App app = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.App, com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder> getAppFieldBuilder() { if (appBuilder_ == null) { if (!(sumCase_ == 15)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.App.getDefaultInstance(); } appBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.App, com.daml.daml_lf_dev.DamlLf2.Expr.App.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.AppOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.App) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 15; onChanged(); return appBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.TyApp, com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder> tyAppBuilder_; /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; * @return Whether the tyApp field is set. */ @java.lang.Override public boolean hasTyApp() { return sumCase_ == 16; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; * @return The tyApp. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyApp getTyApp() { if (tyAppBuilder_ == null) { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } else { if (sumCase_ == 16) { return tyAppBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ public Builder setTyApp(com.daml.daml_lf_dev.DamlLf2.Expr.TyApp value) { if (tyAppBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tyAppBuilder_.setMessage(value); } sumCase_ = 16; return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ public Builder setTyApp( com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder builderForValue) { if (tyAppBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tyAppBuilder_.setMessage(builderForValue.build()); } sumCase_ = 16; return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ public Builder mergeTyApp(com.daml.daml_lf_dev.DamlLf2.Expr.TyApp value) { if (tyAppBuilder_ == null) { if (sumCase_ == 16 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 16) { tyAppBuilder_.mergeFrom(value); } else { tyAppBuilder_.setMessage(value); } } sumCase_ = 16; return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ public Builder clearTyApp() { if (tyAppBuilder_ == null) { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 16) { sumCase_ = 0; sum_ = null; } tyAppBuilder_.clear(); } return this; } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ public com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder getTyAppBuilder() { return getTyAppFieldBuilder().getBuilder(); } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder getTyAppOrBuilder() { if ((sumCase_ == 16) && (tyAppBuilder_ != null)) { return tyAppBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 16) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } } /** *
       * Type Application ('ExpTyApp')
       * 
* * .daml_lf_2.Expr.TyApp ty_app = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.TyApp, com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder> getTyAppFieldBuilder() { if (tyAppBuilder_ == null) { if (!(sumCase_ == 16)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.getDefaultInstance(); } tyAppBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.TyApp, com.daml.daml_lf_dev.DamlLf2.Expr.TyApp.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.TyAppOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.TyApp) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 16; onChanged(); return tyAppBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Abs, com.daml.daml_lf_dev.DamlLf2.Expr.Abs.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder> absBuilder_; /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; * @return Whether the abs field is set. */ @java.lang.Override public boolean hasAbs() { return sumCase_ == 17; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; * @return The abs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Abs getAbs() { if (absBuilder_ == null) { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } else { if (sumCase_ == 17) { return absBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ public Builder setAbs(com.daml.daml_lf_dev.DamlLf2.Expr.Abs value) { if (absBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { absBuilder_.setMessage(value); } sumCase_ = 17; return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ public Builder setAbs( com.daml.daml_lf_dev.DamlLf2.Expr.Abs.Builder builderForValue) { if (absBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { absBuilder_.setMessage(builderForValue.build()); } sumCase_ = 17; return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ public Builder mergeAbs(com.daml.daml_lf_dev.DamlLf2.Expr.Abs value) { if (absBuilder_ == null) { if (sumCase_ == 17 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Abs.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 17) { absBuilder_.mergeFrom(value); } else { absBuilder_.setMessage(value); } } sumCase_ = 17; return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ public Builder clearAbs() { if (absBuilder_ == null) { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 17) { sumCase_ = 0; sum_ = null; } absBuilder_.clear(); } return this; } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Abs.Builder getAbsBuilder() { return getAbsFieldBuilder().getBuilder(); } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder getAbsOrBuilder() { if ((sumCase_ == 17) && (absBuilder_ != null)) { return absBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 17) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } } /** *
       * Abstraction ('ExpAbs')
       * 
* * .daml_lf_2.Expr.Abs abs = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Abs, com.daml.daml_lf_dev.DamlLf2.Expr.Abs.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder> getAbsFieldBuilder() { if (absBuilder_ == null) { if (!(sumCase_ == 17)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Abs.getDefaultInstance(); } absBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Abs, com.daml.daml_lf_dev.DamlLf2.Expr.Abs.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.AbsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.Abs) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 17; onChanged(); return absBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder> tyAbsBuilder_; /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; * @return Whether the tyAbs field is set. */ @java.lang.Override public boolean hasTyAbs() { return sumCase_ == 18; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; * @return The tyAbs. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs getTyAbs() { if (tyAbsBuilder_ == null) { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } else { if (sumCase_ == 18) { return tyAbsBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ public Builder setTyAbs(com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs value) { if (tyAbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tyAbsBuilder_.setMessage(value); } sumCase_ = 18; return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ public Builder setTyAbs( com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.Builder builderForValue) { if (tyAbsBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tyAbsBuilder_.setMessage(builderForValue.build()); } sumCase_ = 18; return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ public Builder mergeTyAbs(com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs value) { if (tyAbsBuilder_ == null) { if (sumCase_ == 18 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 18) { tyAbsBuilder_.mergeFrom(value); } else { tyAbsBuilder_.setMessage(value); } } sumCase_ = 18; return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ public Builder clearTyAbs() { if (tyAbsBuilder_ == null) { if (sumCase_ == 18) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 18) { sumCase_ = 0; sum_ = null; } tyAbsBuilder_.clear(); } return this; } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.Builder getTyAbsBuilder() { return getTyAbsFieldBuilder().getBuilder(); } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder getTyAbsOrBuilder() { if ((sumCase_ == 18) && (tyAbsBuilder_ != null)) { return tyAbsBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 18) { return (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } } /** *
       * Type Abstraction ('ExpTyAbs')
       * 
* * .daml_lf_2.Expr.TyAbs ty_abs = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder> getTyAbsFieldBuilder() { if (tyAbsBuilder_ == null) { if (!(sumCase_ == 18)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.getDefaultInstance(); } tyAbsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.TyAbsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.TyAbs) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 18; onChanged(); return tyAbsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Case, com.daml.daml_lf_dev.DamlLf2.Case.Builder, com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder> caseBuilder_; /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; * @return Whether the case field is set. */ @java.lang.Override public boolean hasCase() { return sumCase_ == 19; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; * @return The case. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Case getCase() { if (caseBuilder_ == null) { if (sumCase_ == 19) { return (com.daml.daml_lf_dev.DamlLf2.Case) sum_; } return com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } else { if (sumCase_ == 19) { return caseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ public Builder setCase(com.daml.daml_lf_dev.DamlLf2.Case value) { if (caseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { caseBuilder_.setMessage(value); } sumCase_ = 19; return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ public Builder setCase( com.daml.daml_lf_dev.DamlLf2.Case.Builder builderForValue) { if (caseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { caseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 19; return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ public Builder mergeCase(com.daml.daml_lf_dev.DamlLf2.Case value) { if (caseBuilder_ == null) { if (sumCase_ == 19 && sum_ != com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Case.newBuilder((com.daml.daml_lf_dev.DamlLf2.Case) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 19) { caseBuilder_.mergeFrom(value); } else { caseBuilder_.setMessage(value); } } sumCase_ = 19; return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ public Builder clearCase() { if (caseBuilder_ == null) { if (sumCase_ == 19) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 19) { sumCase_ = 0; sum_ = null; } caseBuilder_.clear(); } return this; } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ public com.daml.daml_lf_dev.DamlLf2.Case.Builder getCaseBuilder() { return getCaseFieldBuilder().getBuilder(); } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder getCaseOrBuilder() { if ((sumCase_ == 19) && (caseBuilder_ != null)) { return caseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 19) { return (com.daml.daml_lf_dev.DamlLf2.Case) sum_; } return com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } } /** *
       * Pattern Matching ('ExpCase')
       * 
* * .daml_lf_2.Case case = 19; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Case, com.daml.daml_lf_dev.DamlLf2.Case.Builder, com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder> getCaseFieldBuilder() { if (caseBuilder_ == null) { if (!(sumCase_ == 19)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Case, com.daml.daml_lf_dev.DamlLf2.Case.Builder, com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Case) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 19; onChanged(); return caseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder> letBuilder_; /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; * @return Whether the let field is set. */ @java.lang.Override public boolean hasLet() { return sumCase_ == 20; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; * @return The let. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getLet() { if (letBuilder_ == null) { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } else { if (sumCase_ == 20) { return letBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ public Builder setLet(com.daml.daml_lf_dev.DamlLf2.Block value) { if (letBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { letBuilder_.setMessage(value); } sumCase_ = 20; return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ public Builder setLet( com.daml.daml_lf_dev.DamlLf2.Block.Builder builderForValue) { if (letBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { letBuilder_.setMessage(builderForValue.build()); } sumCase_ = 20; return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ public Builder mergeLet(com.daml.daml_lf_dev.DamlLf2.Block value) { if (letBuilder_ == null) { if (sumCase_ == 20 && sum_ != com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Block.newBuilder((com.daml.daml_lf_dev.DamlLf2.Block) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 20) { letBuilder_.mergeFrom(value); } else { letBuilder_.setMessage(value); } } sumCase_ = 20; return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ public Builder clearLet() { if (letBuilder_ == null) { if (sumCase_ == 20) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 20) { sumCase_ = 0; sum_ = null; } letBuilder_.clear(); } return this; } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ public com.daml.daml_lf_dev.DamlLf2.Block.Builder getLetBuilder() { return getLetFieldBuilder().getBuilder(); } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getLetOrBuilder() { if ((sumCase_ == 20) && (letBuilder_ != null)) { return letBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 20) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } } /** *
       * Let block ('ExpLet')
       * 
* * .daml_lf_2.Block let = 20; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder> getLetFieldBuilder() { if (letBuilder_ == null) { if (!(sumCase_ == 20)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } letBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 20; onChanged(); return letBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Nil, com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder> nilBuilder_; /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 21; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Nil getNil() { if (nilBuilder_ == null) { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } else { if (sumCase_ == 21) { return nilBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ public Builder setNil(com.daml.daml_lf_dev.DamlLf2.Expr.Nil value) { if (nilBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { nilBuilder_.setMessage(value); } sumCase_ = 21; return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ public Builder setNil( com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder builderForValue) { if (nilBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { nilBuilder_.setMessage(builderForValue.build()); } sumCase_ = 21; return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ public Builder mergeNil(com.daml.daml_lf_dev.DamlLf2.Expr.Nil value) { if (nilBuilder_ == null) { if (sumCase_ == 21 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Nil.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 21) { nilBuilder_.mergeFrom(value); } else { nilBuilder_.setMessage(value); } } sumCase_ = 21; return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ public Builder clearNil() { if (nilBuilder_ == null) { if (sumCase_ == 21) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 21) { sumCase_ = 0; sum_ = null; } nilBuilder_.clear(); } return this; } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder getNilBuilder() { return getNilFieldBuilder().getBuilder(); } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder getNilOrBuilder() { if ((sumCase_ == 21) && (nilBuilder_ != null)) { return nilBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 21) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } } /** *
       * Empty List ('ExpNil')
       * 
* * .daml_lf_2.Expr.Nil nil = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Nil, com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder> getNilFieldBuilder() { if (nilBuilder_ == null) { if (!(sumCase_ == 21)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Nil.getDefaultInstance(); } nilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Nil, com.daml.daml_lf_dev.DamlLf2.Expr.Nil.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.NilOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.Nil) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 21; onChanged(); return nilBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Cons, com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder> consBuilder_; /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 22; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Cons getCons() { if (consBuilder_ == null) { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } else { if (sumCase_ == 22) { return consBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ public Builder setCons(com.daml.daml_lf_dev.DamlLf2.Expr.Cons value) { if (consBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { consBuilder_.setMessage(value); } sumCase_ = 22; return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ public Builder setCons( com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder builderForValue) { if (consBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { consBuilder_.setMessage(builderForValue.build()); } sumCase_ = 22; return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ public Builder mergeCons(com.daml.daml_lf_dev.DamlLf2.Expr.Cons value) { if (consBuilder_ == null) { if (sumCase_ == 22 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Cons.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 22) { consBuilder_.mergeFrom(value); } else { consBuilder_.setMessage(value); } } sumCase_ = 22; return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ public Builder clearCons() { if (consBuilder_ == null) { if (sumCase_ == 22) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 22) { sumCase_ = 0; sum_ = null; } consBuilder_.clear(); } return this; } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder getConsBuilder() { return getConsFieldBuilder().getBuilder(); } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder getConsOrBuilder() { if ((sumCase_ == 22) && (consBuilder_ != null)) { return consBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 22) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } } /** *
       * Non Empty list ('ExpCons')
       * 
* * .daml_lf_2.Expr.Cons cons = 22; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Cons, com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder> getConsFieldBuilder() { if (consBuilder_ == null) { if (!(sumCase_ == 22)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Cons.getDefaultInstance(); } consBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Cons, com.daml.daml_lf_dev.DamlLf2.Expr.Cons.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ConsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.Cons) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 22; onChanged(); return consBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update, com.daml.daml_lf_dev.DamlLf2.Update.Builder, com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder> updateBuilder_; /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; * @return Whether the update field is set. */ @java.lang.Override public boolean hasUpdate() { return sumCase_ == 23; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update getUpdate() { if (updateBuilder_ == null) { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf2.Update) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } else { if (sumCase_ == 23) { return updateBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ public Builder setUpdate(com.daml.daml_lf_dev.DamlLf2.Update value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } sumCase_ = 23; return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ public Builder setUpdate( com.daml.daml_lf_dev.DamlLf2.Update.Builder builderForValue) { if (updateBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } sumCase_ = 23; return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf2.Update value) { if (updateBuilder_ == null) { if (sumCase_ == 23 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.newBuilder((com.daml.daml_lf_dev.DamlLf2.Update) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 23) { updateBuilder_.mergeFrom(value); } else { updateBuilder_.setMessage(value); } } sumCase_ = 23; return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ public Builder clearUpdate() { if (updateBuilder_ == null) { if (sumCase_ == 23) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 23) { sumCase_ = 0; sum_ = null; } updateBuilder_.clear(); } return this; } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ public com.daml.daml_lf_dev.DamlLf2.Update.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder getUpdateOrBuilder() { if ((sumCase_ == 23) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 23) { return (com.daml.daml_lf_dev.DamlLf2.Update) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } } /** *
       * Update expression ('ExpUpdate')
       * 
* * .daml_lf_2.Update update = 23; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update, com.daml.daml_lf_dev.DamlLf2.Update.Builder, com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(sumCase_ == 23)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update, com.daml.daml_lf_dev.DamlLf2.Update.Builder, com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 23; onChanged(); return updateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder> optionalNoneBuilder_; /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 25; } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone getOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 25) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } else { if (sumCase_ == 25) { return optionalNoneBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ public Builder setOptionalNone(com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone value) { if (optionalNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalNoneBuilder_.setMessage(value); } sumCase_ = 25; return this; } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ public Builder setOptionalNone( com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder builderForValue) { if (optionalNoneBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalNoneBuilder_.setMessage(builderForValue.build()); } sumCase_ = 25; return this; } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ public Builder mergeOptionalNone(com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone value) { if (optionalNoneBuilder_ == null) { if (sumCase_ == 25 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 25) { optionalNoneBuilder_.mergeFrom(value); } else { optionalNoneBuilder_.setMessage(value); } } sumCase_ = 25; return this; } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ public Builder clearOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 25) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 25) { sumCase_ = 0; sum_ = null; } optionalNoneBuilder_.clear(); } return this; } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder getOptionalNoneBuilder() { return getOptionalNoneFieldBuilder().getBuilder(); } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder() { if ((sumCase_ == 25) && (optionalNoneBuilder_ != null)) { return optionalNoneBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 25) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } } /** *
       * empty optional value ('ExpNone')
       * 
* * .daml_lf_2.Expr.OptionalNone optional_none = 25; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder> getOptionalNoneFieldBuilder() { if (optionalNoneBuilder_ == null) { if (!(sumCase_ == 25)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.getDefaultInstance(); } optionalNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNoneOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalNone) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 25; onChanged(); return optionalNoneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder> optionalSomeBuilder_; /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 26; } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome getOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } else { if (sumCase_ == 26) { return optionalSomeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ public Builder setOptionalSome(com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalSomeBuilder_.setMessage(value); } sumCase_ = 26; return this; } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ public Builder setOptionalSome( com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder builderForValue) { if (optionalSomeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalSomeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 26; return this; } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ public Builder mergeOptionalSome(com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (sumCase_ == 26 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 26) { optionalSomeBuilder_.mergeFrom(value); } else { optionalSomeBuilder_.setMessage(value); } } sumCase_ = 26; return this; } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ public Builder clearOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 26) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 26) { sumCase_ = 0; sum_ = null; } optionalSomeBuilder_.clear(); } return this; } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder getOptionalSomeBuilder() { return getOptionalSomeFieldBuilder().getBuilder(); } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if ((sumCase_ == 26) && (optionalSomeBuilder_ != null)) { return optionalSomeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 26) { return (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } } /** *
       * non empty optional value ('ExpSome')
       * 
* * .daml_lf_2.Expr.OptionalSome optional_some = 26; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder> getOptionalSomeFieldBuilder() { if (optionalSomeBuilder_ == null) { if (!(sumCase_ == 26)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.getDefaultInstance(); } optionalSomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSomeOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.OptionalSome) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 26; onChanged(); return optionalSomeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToAny, com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder> toAnyBuilder_; /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; * @return Whether the toAny field is set. */ @java.lang.Override public boolean hasToAny() { return sumCase_ == 27; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; * @return The toAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAny getToAny() { if (toAnyBuilder_ == null) { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } else { if (sumCase_ == 27) { return toAnyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ public Builder setToAny(com.daml.daml_lf_dev.DamlLf2.Expr.ToAny value) { if (toAnyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toAnyBuilder_.setMessage(value); } sumCase_ = 27; return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ public Builder setToAny( com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder builderForValue) { if (toAnyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toAnyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 27; return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ public Builder mergeToAny(com.daml.daml_lf_dev.DamlLf2.Expr.ToAny value) { if (toAnyBuilder_ == null) { if (sumCase_ == 27 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 27) { toAnyBuilder_.mergeFrom(value); } else { toAnyBuilder_.setMessage(value); } } sumCase_ = 27; return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ public Builder clearToAny() { if (toAnyBuilder_ == null) { if (sumCase_ == 27) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 27) { sumCase_ = 0; sum_ = null; } toAnyBuilder_.clear(); } return this; } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder getToAnyBuilder() { return getToAnyFieldBuilder().getBuilder(); } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder getToAnyOrBuilder() { if ((sumCase_ == 27) && (toAnyBuilder_ != null)) { return toAnyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 27) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } } /** *
       * Wrap an arbitrary value in Any ('ExpToAny')
       * 
* * .daml_lf_2.Expr.ToAny to_any = 27; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToAny, com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder> getToAnyFieldBuilder() { if (toAnyBuilder_ == null) { if (!(sumCase_ == 27)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.getDefaultInstance(); } toAnyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToAny, com.daml.daml_lf_dev.DamlLf2.Expr.ToAny.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ToAny) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 27; onChanged(); return toAnyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromAny, com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder> fromAnyBuilder_; /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; * @return Whether the fromAny field is set. */ @java.lang.Override public boolean hasFromAny() { return sumCase_ == 28; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; * @return The fromAny. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAny getFromAny() { if (fromAnyBuilder_ == null) { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } else { if (sumCase_ == 28) { return fromAnyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ public Builder setFromAny(com.daml.daml_lf_dev.DamlLf2.Expr.FromAny value) { if (fromAnyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromAnyBuilder_.setMessage(value); } sumCase_ = 28; return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ public Builder setFromAny( com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder builderForValue) { if (fromAnyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromAnyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 28; return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ public Builder mergeFromAny(com.daml.daml_lf_dev.DamlLf2.Expr.FromAny value) { if (fromAnyBuilder_ == null) { if (sumCase_ == 28 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 28) { fromAnyBuilder_.mergeFrom(value); } else { fromAnyBuilder_.setMessage(value); } } sumCase_ = 28; return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ public Builder clearFromAny() { if (fromAnyBuilder_ == null) { if (sumCase_ == 28) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 28) { sumCase_ = 0; sum_ = null; } fromAnyBuilder_.clear(); } return this; } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ public com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder getFromAnyBuilder() { return getFromAnyFieldBuilder().getBuilder(); } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder getFromAnyOrBuilder() { if ((sumCase_ == 28) && (fromAnyBuilder_ != null)) { return fromAnyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 28) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } } /** *
       * Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
       * 
* * .daml_lf_2.Expr.FromAny from_any = 28; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromAny, com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder> getFromAnyFieldBuilder() { if (fromAnyBuilder_ == null) { if (!(sumCase_ == 28)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.getDefaultInstance(); } fromAnyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromAny, com.daml.daml_lf_dev.DamlLf2.Expr.FromAny.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.FromAny) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 28; onChanged(); return fromAnyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeRepBuilder_; /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; * @return Whether the typeRep field is set. */ @java.lang.Override public boolean hasTypeRep() { return sumCase_ == 29; } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; * @return The typeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getTypeRep() { if (typeRepBuilder_ == null) { if (sumCase_ == 29) { return (com.daml.daml_lf_dev.DamlLf2.Type) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } else { if (sumCase_ == 29) { return typeRepBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ public Builder setTypeRep(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeRepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { typeRepBuilder_.setMessage(value); } sumCase_ = 29; return this; } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ public Builder setTypeRep( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeRepBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { typeRepBuilder_.setMessage(builderForValue.build()); } sumCase_ = 29; return this; } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ public Builder mergeTypeRep(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeRepBuilder_ == null) { if (sumCase_ == 29 && sum_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.newBuilder((com.daml.daml_lf_dev.DamlLf2.Type) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 29) { typeRepBuilder_.mergeFrom(value); } else { typeRepBuilder_.setMessage(value); } } sumCase_ = 29; return this; } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ public Builder clearTypeRep() { if (typeRepBuilder_ == null) { if (sumCase_ == 29) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 29) { sumCase_ = 0; sum_ = null; } typeRepBuilder_.clear(); } return this; } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeRepBuilder() { return getTypeRepFieldBuilder().getBuilder(); } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeRepOrBuilder() { if ((sumCase_ == 29) && (typeRepBuilder_ != null)) { return typeRepBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 29) { return (com.daml.daml_lf_dev.DamlLf2.Type) sum_; } return com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } } /** *
       * A type representation
       * 
* * .daml_lf_2.Type type_rep = 29; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeRepFieldBuilder() { if (typeRepBuilder_ == null) { if (!(sumCase_ == 29)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance(); } typeRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Type) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 29; onChanged(); return typeRepBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder> toAnyExceptionBuilder_; /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; * @return Whether the toAnyException field is set. */ @java.lang.Override public boolean hasToAnyException() { return sumCase_ == 30; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; * @return The toAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException getToAnyException() { if (toAnyExceptionBuilder_ == null) { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } else { if (sumCase_ == 30) { return toAnyExceptionBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ public Builder setToAnyException(com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException value) { if (toAnyExceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toAnyExceptionBuilder_.setMessage(value); } sumCase_ = 30; return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ public Builder setToAnyException( com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder builderForValue) { if (toAnyExceptionBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toAnyExceptionBuilder_.setMessage(builderForValue.build()); } sumCase_ = 30; return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ public Builder mergeToAnyException(com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException value) { if (toAnyExceptionBuilder_ == null) { if (sumCase_ == 30 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 30) { toAnyExceptionBuilder_.mergeFrom(value); } else { toAnyExceptionBuilder_.setMessage(value); } } sumCase_ = 30; return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ public Builder clearToAnyException() { if (toAnyExceptionBuilder_ == null) { if (sumCase_ == 30) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 30) { sumCase_ = 0; sum_ = null; } toAnyExceptionBuilder_.clear(); } return this; } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder getToAnyExceptionBuilder() { return getToAnyExceptionFieldBuilder().getBuilder(); } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder getToAnyExceptionOrBuilder() { if ((sumCase_ == 30) && (toAnyExceptionBuilder_ != null)) { return toAnyExceptionBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 30) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } } /** *
       * Wrap an arbitrary exception into an AnyException ('ExpToAnyException').
       * 
* * .daml_lf_2.Expr.ToAnyException to_any_exception = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder> getToAnyExceptionFieldBuilder() { if (toAnyExceptionBuilder_ == null) { if (!(sumCase_ == 30)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.getDefaultInstance(); } toAnyExceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyExceptionOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ToAnyException) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 30; onChanged(); return toAnyExceptionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder> fromAnyExceptionBuilder_; /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; * @return Whether the fromAnyException field is set. */ @java.lang.Override public boolean hasFromAnyException() { return sumCase_ == 31; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; * @return The fromAnyException. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException getFromAnyException() { if (fromAnyExceptionBuilder_ == null) { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } else { if (sumCase_ == 31) { return fromAnyExceptionBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ public Builder setFromAnyException(com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException value) { if (fromAnyExceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromAnyExceptionBuilder_.setMessage(value); } sumCase_ = 31; return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ public Builder setFromAnyException( com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder builderForValue) { if (fromAnyExceptionBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromAnyExceptionBuilder_.setMessage(builderForValue.build()); } sumCase_ = 31; return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ public Builder mergeFromAnyException(com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException value) { if (fromAnyExceptionBuilder_ == null) { if (sumCase_ == 31 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 31) { fromAnyExceptionBuilder_.mergeFrom(value); } else { fromAnyExceptionBuilder_.setMessage(value); } } sumCase_ = 31; return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ public Builder clearFromAnyException() { if (fromAnyExceptionBuilder_ == null) { if (sumCase_ == 31) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 31) { sumCase_ = 0; sum_ = null; } fromAnyExceptionBuilder_.clear(); } return this; } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder getFromAnyExceptionBuilder() { return getFromAnyExceptionFieldBuilder().getBuilder(); } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder getFromAnyExceptionOrBuilder() { if ((sumCase_ == 31) && (fromAnyExceptionBuilder_ != null)) { return fromAnyExceptionBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 31) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } } /** *
       * Extract an arbitrary exception from an AnyException ('ExpFromAnyException').
       * 
* * .daml_lf_2.Expr.FromAnyException from_any_exception = 31; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder> getFromAnyExceptionFieldBuilder() { if (fromAnyExceptionBuilder_ == null) { if (!(sumCase_ == 31)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.getDefaultInstance(); } fromAnyExceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyExceptionOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.FromAnyException) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 31; onChanged(); return fromAnyExceptionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Throw, com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder> throwBuilder_; /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; * @return Whether the throw field is set. */ @java.lang.Override public boolean hasThrow() { return sumCase_ == 32; } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; * @return The throw. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Throw getThrow() { if (throwBuilder_ == null) { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } else { if (sumCase_ == 32) { return throwBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ public Builder setThrow(com.daml.daml_lf_dev.DamlLf2.Expr.Throw value) { if (throwBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { throwBuilder_.setMessage(value); } sumCase_ = 32; return this; } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ public Builder setThrow( com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder builderForValue) { if (throwBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { throwBuilder_.setMessage(builderForValue.build()); } sumCase_ = 32; return this; } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ public Builder mergeThrow(com.daml.daml_lf_dev.DamlLf2.Expr.Throw value) { if (throwBuilder_ == null) { if (sumCase_ == 32 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Throw.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 32) { throwBuilder_.mergeFrom(value); } else { throwBuilder_.setMessage(value); } } sumCase_ = 32; return this; } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ public Builder clearThrow() { if (throwBuilder_ == null) { if (sumCase_ == 32) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 32) { sumCase_ = 0; sum_ = null; } throwBuilder_.clear(); } return this; } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder getThrowBuilder() { return getThrowFieldBuilder().getBuilder(); } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder getThrowOrBuilder() { if ((sumCase_ == 32) && (throwBuilder_ != null)) { return throwBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 32) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } } /** *
       * Throw an exception ('ExpThrow').
       * 
* * .daml_lf_2.Expr.Throw throw = 32; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Throw, com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder> getThrowFieldBuilder() { if (throwBuilder_ == null) { if (!(sumCase_ == 32)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Throw.getDefaultInstance(); } throwBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Throw, com.daml.daml_lf_dev.DamlLf2.Expr.Throw.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ThrowOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.Throw) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 32; onChanged(); return throwBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder> toInterfaceBuilder_; /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; * @return Whether the toInterface field is set. */ @java.lang.Override public boolean hasToInterface() { return sumCase_ == 33; } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; * @return The toInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface getToInterface() { if (toInterfaceBuilder_ == null) { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } else { if (sumCase_ == 33) { return toInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ public Builder setToInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface value) { if (toInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toInterfaceBuilder_.setMessage(value); } sumCase_ = 33; return this; } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ public Builder setToInterface( com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder builderForValue) { if (toInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 33; return this; } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ public Builder mergeToInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface value) { if (toInterfaceBuilder_ == null) { if (sumCase_ == 33 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 33) { toInterfaceBuilder_.mergeFrom(value); } else { toInterfaceBuilder_.setMessage(value); } } sumCase_ = 33; return this; } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ public Builder clearToInterface() { if (toInterfaceBuilder_ == null) { if (sumCase_ == 33) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 33) { sumCase_ = 0; sum_ = null; } toInterfaceBuilder_.clear(); } return this; } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder getToInterfaceBuilder() { return getToInterfaceFieldBuilder().getBuilder(); } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder getToInterfaceOrBuilder() { if ((sumCase_ == 33) && (toInterfaceBuilder_ != null)) { return toInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 33) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } } /** *
       * Convert to/from interface payloads.
       * 
* * .daml_lf_2.Expr.ToInterface to_interface = 33; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder> getToInterfaceFieldBuilder() { if (toInterfaceBuilder_ == null) { if (!(sumCase_ == 33)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.getDefaultInstance(); } toInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ToInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 33; onChanged(); return toInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder> fromInterfaceBuilder_; /** * .daml_lf_2.Expr.FromInterface from_interface = 34; * @return Whether the fromInterface field is set. */ @java.lang.Override public boolean hasFromInterface() { return sumCase_ == 34; } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; * @return The fromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface getFromInterface() { if (fromInterfaceBuilder_ == null) { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } else { if (sumCase_ == 34) { return fromInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ public Builder setFromInterface(com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface value) { if (fromInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromInterfaceBuilder_.setMessage(value); } sumCase_ = 34; return this; } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ public Builder setFromInterface( com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder builderForValue) { if (fromInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 34; return this; } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ public Builder mergeFromInterface(com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface value) { if (fromInterfaceBuilder_ == null) { if (sumCase_ == 34 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 34) { fromInterfaceBuilder_.mergeFrom(value); } else { fromInterfaceBuilder_.setMessage(value); } } sumCase_ = 34; return this; } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ public Builder clearFromInterface() { if (fromInterfaceBuilder_ == null) { if (sumCase_ == 34) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 34) { sumCase_ = 0; sum_ = null; } fromInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder getFromInterfaceBuilder() { return getFromInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder getFromInterfaceOrBuilder() { if ((sumCase_ == 34) && (fromInterfaceBuilder_ != null)) { return fromInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 34) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.FromInterface from_interface = 34; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder> getFromInterfaceFieldBuilder() { if (fromInterfaceBuilder_ == null) { if (!(sumCase_ == 34)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.getDefaultInstance(); } fromInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.FromInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 34; onChanged(); return fromInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder> callInterfaceBuilder_; /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; * @return Whether the callInterface field is set. */ @java.lang.Override public boolean hasCallInterface() { return sumCase_ == 35; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; * @return The callInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface getCallInterface() { if (callInterfaceBuilder_ == null) { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } else { if (sumCase_ == 35) { return callInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ public Builder setCallInterface(com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface value) { if (callInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { callInterfaceBuilder_.setMessage(value); } sumCase_ = 35; return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ public Builder setCallInterface( com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder builderForValue) { if (callInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { callInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 35; return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ public Builder mergeCallInterface(com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface value) { if (callInterfaceBuilder_ == null) { if (sumCase_ == 35 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 35) { callInterfaceBuilder_.mergeFrom(value); } else { callInterfaceBuilder_.setMessage(value); } } sumCase_ = 35; return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ public Builder clearCallInterface() { if (callInterfaceBuilder_ == null) { if (sumCase_ == 35) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 35) { sumCase_ = 0; sum_ = null; } callInterfaceBuilder_.clear(); } return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder getCallInterfaceBuilder() { return getCallInterfaceFieldBuilder().getBuilder(); } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder getCallInterfaceOrBuilder() { if ((sumCase_ == 35) && (callInterfaceBuilder_ != null)) { return callInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 35) { return (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.CallInterface call_interface = 35; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder> getCallInterfaceFieldBuilder() { if (callInterfaceBuilder_ == null) { if (!(sumCase_ == 35)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.getDefaultInstance(); } callInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.CallInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.CallInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 35; onChanged(); return callInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder> signatoryInterfaceBuilder_; /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; * @return Whether the signatoryInterface field is set. */ @java.lang.Override public boolean hasSignatoryInterface() { return sumCase_ == 36; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; * @return The signatoryInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface getSignatoryInterface() { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } else { if (sumCase_ == 36) { return signatoryInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ public Builder setSignatoryInterface(com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface value) { if (signatoryInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { signatoryInterfaceBuilder_.setMessage(value); } sumCase_ = 36; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ public Builder setSignatoryInterface( com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder builderForValue) { if (signatoryInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { signatoryInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 36; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ public Builder mergeSignatoryInterface(com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface value) { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 36 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 36) { signatoryInterfaceBuilder_.mergeFrom(value); } else { signatoryInterfaceBuilder_.setMessage(value); } } sumCase_ = 36; return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ public Builder clearSignatoryInterface() { if (signatoryInterfaceBuilder_ == null) { if (sumCase_ == 36) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 36) { sumCase_ = 0; sum_ = null; } signatoryInterfaceBuilder_.clear(); } return this; } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder getSignatoryInterfaceBuilder() { return getSignatoryInterfaceFieldBuilder().getBuilder(); } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder getSignatoryInterfaceOrBuilder() { if ((sumCase_ == 36) && (signatoryInterfaceBuilder_ != null)) { return signatoryInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 36) { return (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } } /** *
       * Obtain a contract's signatories/observers through an interface.
       * 
* * .daml_lf_2.Expr.SignatoryInterface signatory_interface = 36; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder> getSignatoryInterfaceFieldBuilder() { if (signatoryInterfaceBuilder_ == null) { if (!(sumCase_ == 36)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.getDefaultInstance(); } signatoryInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.SignatoryInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 36; onChanged(); return signatoryInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder> observerInterfaceBuilder_; /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; * @return Whether the observerInterface field is set. */ @java.lang.Override public boolean hasObserverInterface() { return sumCase_ == 37; } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; * @return The observerInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface getObserverInterface() { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } else { if (sumCase_ == 37) { return observerInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ public Builder setObserverInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface value) { if (observerInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { observerInterfaceBuilder_.setMessage(value); } sumCase_ = 37; return this; } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ public Builder setObserverInterface( com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder builderForValue) { if (observerInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { observerInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 37; return this; } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ public Builder mergeObserverInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface value) { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 37 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 37) { observerInterfaceBuilder_.mergeFrom(value); } else { observerInterfaceBuilder_.setMessage(value); } } sumCase_ = 37; return this; } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ public Builder clearObserverInterface() { if (observerInterfaceBuilder_ == null) { if (sumCase_ == 37) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 37) { sumCase_ = 0; sum_ = null; } observerInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder getObserverInterfaceBuilder() { return getObserverInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder getObserverInterfaceOrBuilder() { if ((sumCase_ == 37) && (observerInterfaceBuilder_ != null)) { return observerInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 37) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.ObserverInterface observer_interface = 37; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder> getObserverInterfaceFieldBuilder() { if (observerInterfaceBuilder_ == null) { if (!(sumCase_ == 37)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.getDefaultInstance(); } observerInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ObserverInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 37; onChanged(); return observerInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder> viewInterfaceBuilder_; /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; * @return Whether the viewInterface field is set. */ @java.lang.Override public boolean hasViewInterface() { return sumCase_ == 38; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; * @return The viewInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface getViewInterface() { if (viewInterfaceBuilder_ == null) { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } else { if (sumCase_ == 38) { return viewInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ public Builder setViewInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface value) { if (viewInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { viewInterfaceBuilder_.setMessage(value); } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ public Builder setViewInterface( com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder builderForValue) { if (viewInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { viewInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ public Builder mergeViewInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface value) { if (viewInterfaceBuilder_ == null) { if (sumCase_ == 38 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 38) { viewInterfaceBuilder_.mergeFrom(value); } else { viewInterfaceBuilder_.setMessage(value); } } sumCase_ = 38; return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ public Builder clearViewInterface() { if (viewInterfaceBuilder_ == null) { if (sumCase_ == 38) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 38) { sumCase_ = 0; sum_ = null; } viewInterfaceBuilder_.clear(); } return this; } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder getViewInterfaceBuilder() { return getViewInterfaceFieldBuilder().getBuilder(); } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder getViewInterfaceOrBuilder() { if ((sumCase_ == 38) && (viewInterfaceBuilder_ != null)) { return viewInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 38) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } } /** *
       * Invoke an interface method.
       * 
* * .daml_lf_2.Expr.ViewInterface view_interface = 38; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder> getViewInterfaceFieldBuilder() { if (viewInterfaceBuilder_ == null) { if (!(sumCase_ == 38)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.getDefaultInstance(); } viewInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ViewInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 38; onChanged(); return viewInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder> unsafeFromInterfaceBuilder_; /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; * @return Whether the unsafeFromInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromInterface() { return sumCase_ == 39; } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; * @return The unsafeFromInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface getUnsafeFromInterface() { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } else { if (sumCase_ == 39) { return unsafeFromInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ public Builder setUnsafeFromInterface(com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface value) { if (unsafeFromInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { unsafeFromInterfaceBuilder_.setMessage(value); } sumCase_ = 39; return this; } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ public Builder setUnsafeFromInterface( com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder builderForValue) { if (unsafeFromInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { unsafeFromInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 39; return this; } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ public Builder mergeUnsafeFromInterface(com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface value) { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 39 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 39) { unsafeFromInterfaceBuilder_.mergeFrom(value); } else { unsafeFromInterfaceBuilder_.setMessage(value); } } sumCase_ = 39; return this; } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ public Builder clearUnsafeFromInterface() { if (unsafeFromInterfaceBuilder_ == null) { if (sumCase_ == 39) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 39) { sumCase_ = 0; sum_ = null; } unsafeFromInterfaceBuilder_.clear(); } return this; } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder getUnsafeFromInterfaceBuilder() { return getUnsafeFromInterfaceFieldBuilder().getBuilder(); } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder getUnsafeFromInterfaceOrBuilder() { if ((sumCase_ == 39) && (unsafeFromInterfaceBuilder_ != null)) { return unsafeFromInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 39) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } } /** *
       * Unsafe conversion from interface payloads.
       * 
* * .daml_lf_2.Expr.UnsafeFromInterface unsafe_from_interface = 39; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder> getUnsafeFromInterfaceFieldBuilder() { if (unsafeFromInterfaceBuilder_ == null) { if (!(sumCase_ == 39)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.getDefaultInstance(); } unsafeFromInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 39; onChanged(); return unsafeFromInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder> interfaceTemplateTypeRepBuilder_; /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; * @return Whether the interfaceTemplateTypeRep field is set. */ @java.lang.Override public boolean hasInterfaceTemplateTypeRep() { return sumCase_ == 40; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; * @return The interfaceTemplateTypeRep. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep getInterfaceTemplateTypeRep() { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } else { if (sumCase_ == 40) { return interfaceTemplateTypeRepBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ public Builder setInterfaceTemplateTypeRep(com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep value) { if (interfaceTemplateTypeRepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { interfaceTemplateTypeRepBuilder_.setMessage(value); } sumCase_ = 40; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ public Builder setInterfaceTemplateTypeRep( com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder builderForValue) { if (interfaceTemplateTypeRepBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { interfaceTemplateTypeRepBuilder_.setMessage(builderForValue.build()); } sumCase_ = 40; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ public Builder mergeInterfaceTemplateTypeRep(com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep value) { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 40 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 40) { interfaceTemplateTypeRepBuilder_.mergeFrom(value); } else { interfaceTemplateTypeRepBuilder_.setMessage(value); } } sumCase_ = 40; return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ public Builder clearInterfaceTemplateTypeRep() { if (interfaceTemplateTypeRepBuilder_ == null) { if (sumCase_ == 40) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 40) { sumCase_ = 0; sum_ = null; } interfaceTemplateTypeRepBuilder_.clear(); } return this; } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder getInterfaceTemplateTypeRepBuilder() { return getInterfaceTemplateTypeRepFieldBuilder().getBuilder(); } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder getInterfaceTemplateTypeRepOrBuilder() { if ((sumCase_ == 40) && (interfaceTemplateTypeRepBuilder_ != null)) { return interfaceTemplateTypeRepBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 40) { return (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } } /** *
       * Obtain the type representation of a contract's template through an interface.
       * 
* * .daml_lf_2.Expr.InterfaceTemplateTypeRep interface_template_type_rep = 40; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder> getInterfaceTemplateTypeRepFieldBuilder() { if (interfaceTemplateTypeRepBuilder_ == null) { if (!(sumCase_ == 40)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.getDefaultInstance(); } interfaceTemplateTypeRepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRepOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.InterfaceTemplateTypeRep) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 40; onChanged(); return interfaceTemplateTypeRepBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder> toRequiredInterfaceBuilder_; /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; * @return Whether the toRequiredInterface field is set. */ @java.lang.Override public boolean hasToRequiredInterface() { return sumCase_ == 41; } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; * @return The toRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface getToRequiredInterface() { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 41) { return toRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ public Builder setToRequiredInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface value) { if (toRequiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { toRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 41; return this; } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ public Builder setToRequiredInterface( com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder builderForValue) { if (toRequiredInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { toRequiredInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 41; return this; } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ public Builder mergeToRequiredInterface(com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface value) { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 41 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 41) { toRequiredInterfaceBuilder_.mergeFrom(value); } else { toRequiredInterfaceBuilder_.setMessage(value); } } sumCase_ = 41; return this; } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ public Builder clearToRequiredInterface() { if (toRequiredInterfaceBuilder_ == null) { if (sumCase_ == 41) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 41) { sumCase_ = 0; sum_ = null; } toRequiredInterfaceBuilder_.clear(); } return this; } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder getToRequiredInterfaceBuilder() { return getToRequiredInterfaceFieldBuilder().getBuilder(); } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder getToRequiredInterfaceOrBuilder() { if ((sumCase_ == 41) && (toRequiredInterfaceBuilder_ != null)) { return toRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 41) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } } /** *
       * Upcast/downcast interface payloads.
       * 
* * .daml_lf_2.Expr.ToRequiredInterface to_required_interface = 41; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder> getToRequiredInterfaceFieldBuilder() { if (toRequiredInterfaceBuilder_ == null) { if (!(sumCase_ == 41)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.getDefaultInstance(); } toRequiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ToRequiredInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 41; onChanged(); return toRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder> fromRequiredInterfaceBuilder_; /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; * @return Whether the fromRequiredInterface field is set. */ @java.lang.Override public boolean hasFromRequiredInterface() { return sumCase_ == 42; } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; * @return The fromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface getFromRequiredInterface() { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 42) { return fromRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ public Builder setFromRequiredInterface(com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface value) { if (fromRequiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fromRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 42; return this; } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ public Builder setFromRequiredInterface( com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder builderForValue) { if (fromRequiredInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fromRequiredInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 42; return this; } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ public Builder mergeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface value) { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 42 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 42) { fromRequiredInterfaceBuilder_.mergeFrom(value); } else { fromRequiredInterfaceBuilder_.setMessage(value); } } sumCase_ = 42; return this; } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ public Builder clearFromRequiredInterface() { if (fromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 42) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 42) { sumCase_ = 0; sum_ = null; } fromRequiredInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder getFromRequiredInterfaceBuilder() { return getFromRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder getFromRequiredInterfaceOrBuilder() { if ((sumCase_ == 42) && (fromRequiredInterfaceBuilder_ != null)) { return fromRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 42) { return (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.FromRequiredInterface from_required_interface = 42; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder> getFromRequiredInterfaceFieldBuilder() { if (fromRequiredInterfaceBuilder_ == null) { if (!(sumCase_ == 42)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.getDefaultInstance(); } fromRequiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.FromRequiredInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 42; onChanged(); return fromRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder> unsafeFromRequiredInterfaceBuilder_; /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; * @return Whether the unsafeFromRequiredInterface field is set. */ @java.lang.Override public boolean hasUnsafeFromRequiredInterface() { return sumCase_ == 43; } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; * @return The unsafeFromRequiredInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface getUnsafeFromRequiredInterface() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } else { if (sumCase_ == 43) { return unsafeFromRequiredInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ public Builder setUnsafeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface value) { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { unsafeFromRequiredInterfaceBuilder_.setMessage(value); } sumCase_ = 43; return this; } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ public Builder setUnsafeFromRequiredInterface( com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder builderForValue) { if (unsafeFromRequiredInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { unsafeFromRequiredInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 43; return this; } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ public Builder mergeUnsafeFromRequiredInterface(com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface value) { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 43 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 43) { unsafeFromRequiredInterfaceBuilder_.mergeFrom(value); } else { unsafeFromRequiredInterfaceBuilder_.setMessage(value); } } sumCase_ = 43; return this; } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ public Builder clearUnsafeFromRequiredInterface() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (sumCase_ == 43) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 43) { sumCase_ = 0; sum_ = null; } unsafeFromRequiredInterfaceBuilder_.clear(); } return this; } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder getUnsafeFromRequiredInterfaceBuilder() { return getUnsafeFromRequiredInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder getUnsafeFromRequiredInterfaceOrBuilder() { if ((sumCase_ == 43) && (unsafeFromRequiredInterfaceBuilder_ != null)) { return unsafeFromRequiredInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 43) { return (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } } /** * .daml_lf_2.Expr.UnsafeFromRequiredInterface unsafe_from_required_interface = 43; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder> getUnsafeFromRequiredInterfaceFieldBuilder() { if (unsafeFromRequiredInterfaceBuilder_ == null) { if (!(sumCase_ == 43)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.getDefaultInstance(); } unsafeFromRequiredInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.UnsafeFromRequiredInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 43; onChanged(); return unsafeFromRequiredInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder> choiceControllerBuilder_; /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; * @return Whether the choiceController field is set. */ @java.lang.Override public boolean hasChoiceController() { return sumCase_ == 1001; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; * @return The choiceController. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController getChoiceController() { if (choiceControllerBuilder_ == null) { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } else { if (sumCase_ == 1001) { return choiceControllerBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ public Builder setChoiceController(com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController value) { if (choiceControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { choiceControllerBuilder_.setMessage(value); } sumCase_ = 1001; return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ public Builder setChoiceController( com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder builderForValue) { if (choiceControllerBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { choiceControllerBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1001; return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ public Builder mergeChoiceController(com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController value) { if (choiceControllerBuilder_ == null) { if (sumCase_ == 1001 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1001) { choiceControllerBuilder_.mergeFrom(value); } else { choiceControllerBuilder_.setMessage(value); } } sumCase_ = 1001; return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ public Builder clearChoiceController() { if (choiceControllerBuilder_ == null) { if (sumCase_ == 1001) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1001) { sumCase_ = 0; sum_ = null; } choiceControllerBuilder_.clear(); } return this; } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder getChoiceControllerBuilder() { return getChoiceControllerFieldBuilder().getBuilder(); } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder getChoiceControllerOrBuilder() { if ((sumCase_ == 1001) && (choiceControllerBuilder_ != null)) { return choiceControllerBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } } /** *
       * Obtain the controllers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceController choice_controller = 1001; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder> getChoiceControllerFieldBuilder() { if (choiceControllerBuilder_ == null) { if (!(sumCase_ == 1001)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.getDefaultInstance(); } choiceControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceControllerOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceController) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1001; onChanged(); return choiceControllerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder> choiceObserverBuilder_; /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; * @return Whether the choiceObserver field is set. */ @java.lang.Override public boolean hasChoiceObserver() { return sumCase_ == 1002; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; * @return The choiceObserver. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver getChoiceObserver() { if (choiceObserverBuilder_ == null) { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } else { if (sumCase_ == 1002) { return choiceObserverBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ public Builder setChoiceObserver(com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver value) { if (choiceObserverBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { choiceObserverBuilder_.setMessage(value); } sumCase_ = 1002; return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ public Builder setChoiceObserver( com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder builderForValue) { if (choiceObserverBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { choiceObserverBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1002; return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ public Builder mergeChoiceObserver(com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver value) { if (choiceObserverBuilder_ == null) { if (sumCase_ == 1002 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.newBuilder((com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1002) { choiceObserverBuilder_.mergeFrom(value); } else { choiceObserverBuilder_.setMessage(value); } } sumCase_ = 1002; return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ public Builder clearChoiceObserver() { if (choiceObserverBuilder_ == null) { if (sumCase_ == 1002) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1002) { sumCase_ = 0; sum_ = null; } choiceObserverBuilder_.clear(); } return this; } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder getChoiceObserverBuilder() { return getChoiceObserverFieldBuilder().getBuilder(); } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder getChoiceObserverOrBuilder() { if ((sumCase_ == 1002) && (choiceObserverBuilder_ != null)) { return choiceObserverBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } } /** *
       * Obtain the observers for a choice.
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Expr.ChoiceObserver choice_observer = 1002; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder> getChoiceObserverFieldBuilder() { if (choiceObserverBuilder_ == null) { if (!(sumCase_ == 1002)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.getDefaultInstance(); } choiceObserverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserverOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr.ChoiceObserver) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1002; onChanged(); return choiceObserverBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario, com.daml.daml_lf_dev.DamlLf2.Scenario.Builder, com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder> scenarioBuilder_; /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; * @return Whether the scenario field is set. */ @java.lang.Override public boolean hasScenario() { return sumCase_ == 1003; } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; * @return The scenario. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario getScenario() { if (scenarioBuilder_ == null) { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } else { if (sumCase_ == 1003) { return scenarioBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ public Builder setScenario(com.daml.daml_lf_dev.DamlLf2.Scenario value) { if (scenarioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { scenarioBuilder_.setMessage(value); } sumCase_ = 1003; return this; } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ public Builder setScenario( com.daml.daml_lf_dev.DamlLf2.Scenario.Builder builderForValue) { if (scenarioBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { scenarioBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1003; return this; } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ public Builder mergeScenario(com.daml.daml_lf_dev.DamlLf2.Scenario value) { if (scenarioBuilder_ == null) { if (sumCase_ == 1003 && sum_ != com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.newBuilder((com.daml.daml_lf_dev.DamlLf2.Scenario) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1003) { scenarioBuilder_.mergeFrom(value); } else { scenarioBuilder_.setMessage(value); } } sumCase_ = 1003; return this; } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ public Builder clearScenario() { if (scenarioBuilder_ == null) { if (sumCase_ == 1003) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1003) { sumCase_ = 0; sum_ = null; } scenarioBuilder_.clear(); } return this; } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ public com.daml.daml_lf_dev.DamlLf2.Scenario.Builder getScenarioBuilder() { return getScenarioFieldBuilder().getBuilder(); } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder getScenarioOrBuilder() { if ((sumCase_ == 1003) && (scenarioBuilder_ != null)) { return scenarioBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } } /** *
       * Scenario Expression ('ExpScenario')
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Scenario scenario = 1003; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario, com.daml.daml_lf_dev.DamlLf2.Scenario.Builder, com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder> getScenarioFieldBuilder() { if (scenarioBuilder_ == null) { if (!(sumCase_ == 1003)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } scenarioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario, com.daml.daml_lf_dev.DamlLf2.Scenario.Builder, com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Scenario) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1003; onChanged(); return scenarioBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Experimental, com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder> experimentalBuilder_; /** *
       * *Available only in 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; * @return Whether the experimental field is set. */ @java.lang.Override public boolean hasExperimental() { return sumCase_ == 9999; } /** *
       * *Available only in 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; * @return The experimental. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.Experimental getExperimental() { if (experimentalBuilder_ == null) { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance(); } else { if (sumCase_ == 9999) { return experimentalBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance(); } } /** *
       * *Available only in 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ public Builder setExperimental(com.daml.daml_lf_dev.DamlLf2.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 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ public Builder setExperimental( com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.Builder builderForValue) { if (experimentalBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { experimentalBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9999; return this; } /** *
       * *Available only in 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ public Builder mergeExperimental(com.daml.daml_lf_dev.DamlLf2.Expr.Experimental value) { if (experimentalBuilder_ == null) { if (sumCase_ == 9999 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.newBuilder((com.daml.daml_lf_dev.DamlLf2.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 2.dev*
       * 
* * .daml_lf_2.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 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.Builder getExperimentalBuilder() { return getExperimentalFieldBuilder().getBuilder(); } /** *
       * *Available only in 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder getExperimentalOrBuilder() { if ((sumCase_ == 9999) && (experimentalBuilder_ != null)) { return experimentalBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9999) { return (com.daml.daml_lf_dev.DamlLf2.Expr.Experimental) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance(); } } /** *
       * *Available only in 2.dev*
       * 
* * .daml_lf_2.Expr.Experimental experimental = 9999; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Experimental, com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder> getExperimentalFieldBuilder() { if (experimentalBuilder_ == null) { if (!(sumCase_ == 9999)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.getDefaultInstance(); } experimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr.Experimental, com.daml.daml_lf_dev.DamlLf2.Expr.Experimental.Builder, com.daml.daml_lf_dev.DamlLf2.Expr.ExperimentalOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.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_2.Expr) } // @@protoc_insertion_point(class_scope:daml_lf_2.Expr) private static final com.daml.daml_lf_dev.DamlLf2.Expr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Expr(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CaseAltOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.CaseAlt) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Unit default = 2; * @return Whether the default field is set. */ boolean hasDefault(); /** * .daml_lf_2.Unit default = 2; * @return The default. */ com.daml.daml_lf_dev.DamlLf2.Unit getDefault(); /** * .daml_lf_2.Unit default = 2; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getDefaultOrBuilder(); /** * .daml_lf_2.CaseAlt.Variant variant = 3; * @return Whether the variant field is set. */ boolean hasVariant(); /** * .daml_lf_2.CaseAlt.Variant variant = 3; * @return The variant. */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant getVariant(); /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder getVariantOrBuilder(); /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return Whether the builtinCon field is set. */ boolean hasBuiltinCon(); /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return The enum numeric value on the wire for builtinCon. */ int getBuiltinConValue(); /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return The builtinCon. */ com.daml.daml_lf_dev.DamlLf2.BuiltinCon getBuiltinCon(); /** * .daml_lf_2.Unit nil = 5; * @return Whether the nil field is set. */ boolean hasNil(); /** * .daml_lf_2.Unit nil = 5; * @return The nil. */ com.daml.daml_lf_dev.DamlLf2.Unit getNil(); /** * .daml_lf_2.Unit nil = 5; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getNilOrBuilder(); /** * .daml_lf_2.CaseAlt.Cons cons = 6; * @return Whether the cons field is set. */ boolean hasCons(); /** * .daml_lf_2.CaseAlt.Cons cons = 6; * @return The cons. */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons getCons(); /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder getConsOrBuilder(); /** * .daml_lf_2.Unit optional_none = 7; * @return Whether the optionalNone field is set. */ boolean hasOptionalNone(); /** * .daml_lf_2.Unit optional_none = 7; * @return The optionalNone. */ com.daml.daml_lf_dev.DamlLf2.Unit getOptionalNone(); /** * .daml_lf_2.Unit optional_none = 7; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getOptionalNoneOrBuilder(); /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; * @return Whether the optionalSome field is set. */ boolean hasOptionalSome(); /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; * @return The optionalSome. */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome getOptionalSome(); /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder(); /** * .daml_lf_2.CaseAlt.Enum enum = 9; * @return Whether the enum field is set. */ boolean hasEnum(); /** * .daml_lf_2.CaseAlt.Enum enum = 9; * @return The enum. */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum getEnum(); /** * .daml_lf_2.CaseAlt.Enum enum = 9; */ com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder getEnumOrBuilder(); /** * .daml_lf_2.Expr body = 1; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_2.Expr body = 1; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Expr getBody(); /** * .daml_lf_2.Expr body = 1; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder(); com.daml.daml_lf_dev.DamlLf2.CaseAlt.SumCase getSumCase(); } /** *
   * Case alternative
   * 
* * Protobuf type {@code daml_lf_2.CaseAlt} */ public static final class CaseAlt extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_CaseAlt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder.class); } public interface VariantOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.CaseAlt.Variant) com.google.protobuf.MessageOrBuilder { /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; * @return Whether the con field is set. */ boolean hasCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; * @return The con. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getConOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 2; * @return The variantInternedStr. */ int getVariantInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 3; * @return The binderInternedStr. */ int getBinderInternedStr(); } /** *
     * Variant pattern
     * 
* * Protobuf type {@code daml_lf_2.CaseAlt.Variant} */ public static final class Variant extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_CaseAlt_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder.class); } private int bitField0_; public static final int CON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName con_; /** *
       * name of the type constructor
       * 
* * .daml_lf_2.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_2.TypeConName con = 1; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getCon() { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getConOrBuilder() { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } public static final int VARIANT_INTERNED_STR_FIELD_NUMBER = 2; private int variantInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 variant_interned_str = 2; * @return The variantInternedStr. */ @java.lang.Override public int getVariantInternedStr() { return variantInternedStr_; } public static final int BINDER_INTERNED_STR_FIELD_NUMBER = 3; private int binderInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 binder_interned_str = 3; * @return The binderInternedStr. */ @java.lang.Override public int getBinderInternedStr() { return binderInternedStr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (variantInternedStr_ != 0) { output.writeInt32(2, variantInternedStr_); } if (binderInternedStr_ != 0) { output.writeInt32(3, binderInternedStr_); } 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 (variantInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, variantInternedStr_); } if (binderInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, binderInternedStr_); } 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.DamlLf2.CaseAlt.Variant)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant other = (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) obj; if (hasCon() != other.hasCon()) return false; if (hasCon()) { if (!getCon() .equals(other.getCon())) return false; } if (getVariantInternedStr() != other.getVariantInternedStr()) return false; if (getBinderInternedStr() != other.getBinderInternedStr()) 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 (hasCon()) { hash = (37 * hash) + CON_FIELD_NUMBER; hash = (53 * hash) + getCon().hashCode(); } hash = (37 * hash) + VARIANT_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVariantInternedStr(); hash = (37 * hash) + BINDER_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getBinderInternedStr(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Variant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Variant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.CaseAlt.Variant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.CaseAlt.Variant) com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Variant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Variant_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } variantInternedStr_ = 0; binderInternedStr_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Variant_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant build() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant buildPartial() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant result = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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; } if (((from_bitField0_ & 0x00000002) != 0)) { result.variantInternedStr_ = variantInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.binderInternedStr_ = binderInternedStr_; } 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.DamlLf2.CaseAlt.Variant) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant other) { if (other == com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance()) return this; if (other.hasCon()) { mergeCon(other.getCon()); } if (other.getVariantInternedStr() != 0) { setVariantInternedStr(other.getVariantInternedStr()); } if (other.getBinderInternedStr() != 0) { setBinderInternedStr(other.getBinderInternedStr()); } 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 16: { variantInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { binderInternedStr_ = 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.DamlLf2.TypeConName con_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> conBuilder_; /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; * @return Whether the con field is set. */ public boolean hasCon() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; * @return The con. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getCon() { if (conBuilder_ == null) { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } else { return conBuilder_.getMessage(); } } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; */ public Builder setCon(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName con = 1; */ public Builder setCon( com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName con = 1; */ public Builder mergeCon(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (conBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && con_ != null && con_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getConBuilder() { bitField0_ |= 0x00000001; onChanged(); return getConFieldBuilder().getBuilder(); } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getConOrBuilder() { if (conBuilder_ != null) { return conBuilder_.getMessageOrBuilder(); } else { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getCon(), getParentForChildren(), isClean()); con_ = null; } return conBuilder_; } private int variantInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 2; * @return The variantInternedStr. */ @java.lang.Override public int getVariantInternedStr() { return variantInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 2; * @param value The variantInternedStr to set. * @return This builder for chaining. */ public Builder setVariantInternedStr(int value) { variantInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 variant_interned_str = 2; * @return This builder for chaining. */ public Builder clearVariantInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); variantInternedStr_ = 0; onChanged(); return this; } private int binderInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 3; * @return The binderInternedStr. */ @java.lang.Override public int getBinderInternedStr() { return binderInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 3; * @param value The binderInternedStr to set. * @return This builder for chaining. */ public Builder setBinderInternedStr(int value) { binderInternedStr_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 binder_interned_str = 3; * @return This builder for chaining. */ public Builder clearBinderInternedStr() { bitField0_ = (bitField0_ & ~0x00000004); binderInternedStr_ = 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_2.CaseAlt.Variant) } // @@protoc_insertion_point(class_scope:daml_lf_2.CaseAlt.Variant) private static final com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Variant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.CaseAlt.Enum) com.google.protobuf.MessageOrBuilder { /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; * @return Whether the con field is set. */ boolean hasCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; * @return The con. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getCon(); /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getConOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 2; * @return The constructorInternedStr. */ int getConstructorInternedStr(); } /** *
     * Enum pattern
     * 
* * Protobuf type {@code daml_lf_2.CaseAlt.Enum} */ public static final class Enum extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_CaseAlt_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder.class); } private int bitField0_; public static final int CON_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName con_; /** *
       * name of the type constructor
       * 
* * .daml_lf_2.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_2.TypeConName con = 1; * @return The con. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getCon() { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } /** *
       * name of the type constructor
       * 
* * .daml_lf_2.TypeConName con = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getConOrBuilder() { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } public static final int CONSTRUCTOR_INTERNED_STR_FIELD_NUMBER = 2; private int constructorInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 constructor_interned_str = 2; * @return The constructorInternedStr. */ @java.lang.Override public int getConstructorInternedStr() { return constructorInternedStr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (constructorInternedStr_ != 0) { output.writeInt32(2, constructorInternedStr_); } 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 (constructorInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, constructorInternedStr_); } 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.DamlLf2.CaseAlt.Enum)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum other = (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) obj; if (hasCon() != other.hasCon()) return false; if (hasCon()) { if (!getCon() .equals(other.getCon())) return false; } if (getConstructorInternedStr() != other.getConstructorInternedStr()) 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 (hasCon()) { hash = (37 * hash) + CON_FIELD_NUMBER; hash = (53 * hash) + getCon().hashCode(); } hash = (37 * hash) + CONSTRUCTOR_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getConstructorInternedStr(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Enum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Enum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.CaseAlt.Enum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.CaseAlt.Enum) com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Enum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Enum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } constructorInternedStr_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Enum_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum build() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum buildPartial() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum result = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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; } if (((from_bitField0_ & 0x00000002) != 0)) { result.constructorInternedStr_ = constructorInternedStr_; } 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.DamlLf2.CaseAlt.Enum) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum other) { if (other == com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance()) return this; if (other.hasCon()) { mergeCon(other.getCon()); } if (other.getConstructorInternedStr() != 0) { setConstructorInternedStr(other.getConstructorInternedStr()); } 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 16: { constructorInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.TypeConName con_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> conBuilder_; /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; * @return Whether the con field is set. */ public boolean hasCon() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; * @return The con. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getCon() { if (conBuilder_ == null) { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } else { return conBuilder_.getMessage(); } } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; */ public Builder setCon(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName con = 1; */ public Builder setCon( com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName con = 1; */ public Builder mergeCon(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (conBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && con_ != null && con_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getConBuilder() { bitField0_ |= 0x00000001; onChanged(); return getConFieldBuilder().getBuilder(); } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getConOrBuilder() { if (conBuilder_ != null) { return conBuilder_.getMessageOrBuilder(); } else { return con_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : con_; } } /** *
         * name of the type constructor
         * 
* * .daml_lf_2.TypeConName con = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getConFieldBuilder() { if (conBuilder_ == null) { conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getCon(), getParentForChildren(), isClean()); con_ = null; } return conBuilder_; } private int constructorInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 2; * @return The constructorInternedStr. */ @java.lang.Override public int getConstructorInternedStr() { return constructorInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 2; * @param value The constructorInternedStr to set. * @return This builder for chaining. */ public Builder setConstructorInternedStr(int value) { constructorInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 constructor_interned_str = 2; * @return This builder for chaining. */ public Builder clearConstructorInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); constructorInternedStr_ = 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_2.CaseAlt.Enum) } // @@protoc_insertion_point(class_scope:daml_lf_2.CaseAlt.Enum) private static final com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Enum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.CaseAlt.Cons) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 1; * @return The varHeadInternedStr. */ int getVarHeadInternedStr(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 2; * @return The varTailInternedStr. */ int getVarTailInternedStr(); } /** *
     * Non empty list pattern
     * 
* * Protobuf type {@code daml_lf_2.CaseAlt.Cons} */ public static final class Cons extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_CaseAlt_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder.class); } public static final int VAR_HEAD_INTERNED_STR_FIELD_NUMBER = 1; private int varHeadInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_head_interned_str = 1; * @return The varHeadInternedStr. */ @java.lang.Override public int getVarHeadInternedStr() { return varHeadInternedStr_; } public static final int VAR_TAIL_INTERNED_STR_FIELD_NUMBER = 2; private int varTailInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_tail_interned_str = 2; * @return The varTailInternedStr. */ @java.lang.Override public int getVarTailInternedStr() { return varTailInternedStr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (varHeadInternedStr_ != 0) { output.writeInt32(1, varHeadInternedStr_); } if (varTailInternedStr_ != 0) { output.writeInt32(2, varTailInternedStr_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varHeadInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, varHeadInternedStr_); } if (varTailInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, varTailInternedStr_); } 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.DamlLf2.CaseAlt.Cons)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons other = (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) obj; if (getVarHeadInternedStr() != other.getVarHeadInternedStr()) return false; if (getVarTailInternedStr() != other.getVarTailInternedStr()) 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) + VAR_HEAD_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarHeadInternedStr(); hash = (37 * hash) + VAR_TAIL_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarTailInternedStr(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Cons parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Cons parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.CaseAlt.Cons} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.CaseAlt.Cons) com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Cons_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Cons_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; varHeadInternedStr_ = 0; varTailInternedStr_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_Cons_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons build() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons buildPartial() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons result = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.varHeadInternedStr_ = varHeadInternedStr_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.varTailInternedStr_ = varTailInternedStr_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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.DamlLf2.CaseAlt.Cons) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons other) { if (other == com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance()) return this; if (other.getVarHeadInternedStr() != 0) { setVarHeadInternedStr(other.getVarHeadInternedStr()); } if (other.getVarTailInternedStr() != 0) { setVarTailInternedStr(other.getVarTailInternedStr()); } 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: { varHeadInternedStr_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { varTailInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private int varHeadInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 1; * @return The varHeadInternedStr. */ @java.lang.Override public int getVarHeadInternedStr() { return varHeadInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 1; * @param value The varHeadInternedStr to set. * @return This builder for chaining. */ public Builder setVarHeadInternedStr(int value) { varHeadInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_head_interned_str = 1; * @return This builder for chaining. */ public Builder clearVarHeadInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); varHeadInternedStr_ = 0; onChanged(); return this; } private int varTailInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 2; * @return The varTailInternedStr. */ @java.lang.Override public int getVarTailInternedStr() { return varTailInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 2; * @param value The varTailInternedStr to set. * @return This builder for chaining. */ public Builder setVarTailInternedStr(int value) { varTailInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_tail_interned_str = 2; * @return This builder for chaining. */ public Builder clearVarTailInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); varTailInternedStr_ = 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_2.CaseAlt.Cons) } // @@protoc_insertion_point(class_scope:daml_lf_2.CaseAlt.Cons) private static final com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.Cons getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalSomeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.CaseAlt.OptionalSome) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 1; * @return The varBodyInternedStr. */ int getVarBodyInternedStr(); } /** *
     * Non empty option patterm
     * 
* * Protobuf type {@code daml_lf_2.CaseAlt.OptionalSome} */ public static final class OptionalSome extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_CaseAlt_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder.class); } public static final int VAR_BODY_INTERNED_STR_FIELD_NUMBER = 1; private int varBodyInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 var_body_interned_str = 1; * @return The varBodyInternedStr. */ @java.lang.Override public int getVarBodyInternedStr() { return varBodyInternedStr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (varBodyInternedStr_ != 0) { output.writeInt32(1, varBodyInternedStr_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (varBodyInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, varBodyInternedStr_); } 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.DamlLf2.CaseAlt.OptionalSome)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome other = (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) obj; if (getVarBodyInternedStr() != other.getVarBodyInternedStr()) 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) + VAR_BODY_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getVarBodyInternedStr(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.OptionalSome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt.OptionalSome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.CaseAlt.OptionalSome} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.CaseAlt.OptionalSome) com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_OptionalSome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_OptionalSome_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; varBodyInternedStr_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_OptionalSome_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome build() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome buildPartial() { com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome result = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.varBodyInternedStr_ = varBodyInternedStr_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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.DamlLf2.CaseAlt.OptionalSome) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome other) { if (other == com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance()) return this; if (other.getVarBodyInternedStr() != 0) { setVarBodyInternedStr(other.getVarBodyInternedStr()); } 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: { varBodyInternedStr_ = 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 varBodyInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 1; * @return The varBodyInternedStr. */ @java.lang.Override public int getVarBodyInternedStr() { return varBodyInternedStr_; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 1; * @param value The varBodyInternedStr to set. * @return This builder for chaining. */ public Builder setVarBodyInternedStr(int value) { varBodyInternedStr_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 var_body_interned_str = 1; * @return This builder for chaining. */ public Builder clearVarBodyInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); varBodyInternedStr_ = 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_2.CaseAlt.OptionalSome) } // @@protoc_insertion_point(class_scope:daml_lf_2.CaseAlt.OptionalSome) private static final com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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(2), VARIANT(3), BUILTIN_CON(4), NIL(5), CONS(6), 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 2: return DEFAULT; case 3: return VARIANT; case 4: return BUILTIN_CON; case 5: return NIL; case 6: 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 = 2; /** * .daml_lf_2.Unit default = 2; * @return Whether the default field is set. */ @java.lang.Override public boolean hasDefault() { return sumCase_ == 2; } /** * .daml_lf_2.Unit default = 2; * @return The default. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getDefault() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** * .daml_lf_2.Unit default = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getDefaultOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 3; /** * .daml_lf_2.CaseAlt.Variant variant = 3; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 3; } /** * .daml_lf_2.CaseAlt.Variant variant = 3; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant getVariant() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder getVariantOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } public static final int BUILTIN_CON_FIELD_NUMBER = 4; /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return Whether the builtinCon field is set. */ public boolean hasBuiltinCon() { return sumCase_ == 4; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return The enum numeric value on the wire for builtinCon. */ public int getBuiltinConValue() { if (sumCase_ == 4) { return (java.lang.Integer) sum_; } return 0; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return The builtinCon. */ public com.daml.daml_lf_dev.DamlLf2.BuiltinCon getBuiltinCon() { if (sumCase_ == 4) { com.daml.daml_lf_dev.DamlLf2.BuiltinCon result = com.daml.daml_lf_dev.DamlLf2.BuiltinCon.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinCon.CON_UNIT; } public static final int NIL_FIELD_NUMBER = 5; /** * .daml_lf_2.Unit nil = 5; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 5; } /** * .daml_lf_2.Unit nil = 5; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getNil() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** * .daml_lf_2.Unit nil = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getNilOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } public static final int CONS_FIELD_NUMBER = 6; /** * .daml_lf_2.CaseAlt.Cons cons = 6; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 6; } /** * .daml_lf_2.CaseAlt.Cons cons = 6; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons getCons() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder getConsOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } public static final int OPTIONAL_NONE_FIELD_NUMBER = 7; /** * .daml_lf_2.Unit optional_none = 7; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 7; } /** * .daml_lf_2.Unit optional_none = 7; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getOptionalNone() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** * .daml_lf_2.Unit optional_none = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getOptionalNoneOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } public static final int OPTIONAL_SOME_FIELD_NUMBER = 8; /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 8; } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome getOptionalSome() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 9; /** * .daml_lf_2.CaseAlt.Enum enum = 9; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 9; } /** * .daml_lf_2.CaseAlt.Enum enum = 9; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum getEnum() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } /** * .daml_lf_2.CaseAlt.Enum enum = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder getEnumOrBuilder() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } public static final int BODY_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Expr body_; /** * .daml_lf_2.Expr body = 1; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Expr body = 1; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } /** * .daml_lf_2.Expr body = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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, getBody()); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_); } if (sumCase_ == 4) { output.writeEnum(4, ((java.lang.Integer) sum_)); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) sum_); } 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, getBody()); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) 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.DamlLf2.Unit) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.CaseAlt other = (com.daml.daml_lf_dev.DamlLf2.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 2: if (!getDefault() .equals(other.getDefault())) return false; break; case 3: if (!getVariant() .equals(other.getVariant())) return false; break; case 4: if (getBuiltinConValue() != other.getBuiltinConValue()) return false; break; case 5: if (!getNil() .equals(other.getNil())) return false; break; case 6: 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 2: hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); break; case 3: hash = (37 * hash) + VARIANT_FIELD_NUMBER; hash = (53 * hash) + getVariant().hashCode(); break; case 4: hash = (37 * hash) + BUILTIN_CON_FIELD_NUMBER; hash = (53 * hash) + getBuiltinConValue(); break; case 5: hash = (37 * hash) + NIL_FIELD_NUMBER; hash = (53 * hash) + getNil().hashCode(); break; case 6: 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.DamlLf2.CaseAlt parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.CaseAlt} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.CaseAlt) com.daml.daml_lf_dev.DamlLf2.CaseAltOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_CaseAlt_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.CaseAlt.class, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_CaseAlt_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.CaseAlt.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt build() { com.daml.daml_lf_dev.DamlLf2.CaseAlt result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt buildPartial() { com.daml.daml_lf_dev.DamlLf2.CaseAlt result = new com.daml.daml_lf_dev.DamlLf2.CaseAlt(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt result) { result.sumCase_ = sumCase_; result.sum_ = this.sum_; if (sumCase_ == 2 && defaultBuilder_ != null) { result.sum_ = defaultBuilder_.build(); } if (sumCase_ == 3 && variantBuilder_ != null) { result.sum_ = variantBuilder_.build(); } if (sumCase_ == 5 && nilBuilder_ != null) { result.sum_ = nilBuilder_.build(); } if (sumCase_ == 6 && 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.DamlLf2.CaseAlt) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.CaseAlt)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.CaseAlt other) { if (other == com.daml.daml_lf_dev.DamlLf2.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 BUILTIN_CON: { setBuiltinConValue(other.getBuiltinConValue()); 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( getBodyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 10 case 18: { input.readMessage( getDefaultFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 2; break; } // case 18 case 26: { input.readMessage( getVariantFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 3; break; } // case 26 case 32: { int rawValue = input.readEnum(); sumCase_ = 4; sum_ = rawValue; break; } // case 32 case 42: { input.readMessage( getNilFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 5; break; } // case 42 case 50: { input.readMessage( getConsFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 6; 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.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> defaultBuilder_; /** * .daml_lf_2.Unit default = 2; * @return Whether the default field is set. */ @java.lang.Override public boolean hasDefault() { return sumCase_ == 2; } /** * .daml_lf_2.Unit default = 2; * @return The default. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getDefault() { if (defaultBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 2) { return defaultBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit default = 2; */ public Builder setDefault(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (defaultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { defaultBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_2.Unit default = 2; */ public Builder setDefault( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (defaultBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { defaultBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_2.Unit default = 2; */ public Builder mergeDefault(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (defaultBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 2) { defaultBuilder_.mergeFrom(value); } else { defaultBuilder_.setMessage(value); } } sumCase_ = 2; return this; } /** * .daml_lf_2.Unit default = 2; */ public Builder clearDefault() { if (defaultBuilder_ == null) { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 2) { sumCase_ = 0; sum_ = null; } defaultBuilder_.clear(); } return this; } /** * .daml_lf_2.Unit default = 2; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getDefaultBuilder() { return getDefaultFieldBuilder().getBuilder(); } /** * .daml_lf_2.Unit default = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getDefaultOrBuilder() { if ((sumCase_ == 2) && (defaultBuilder_ != null)) { return defaultBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit default = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getDefaultFieldBuilder() { if (defaultBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged(); return defaultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder> variantBuilder_; /** * .daml_lf_2.CaseAlt.Variant variant = 3; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return sumCase_ == 3; } /** * .daml_lf_2.CaseAlt.Variant variant = 3; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant getVariant() { if (variantBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } else { if (sumCase_ == 3) { return variantBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ public Builder setVariant(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant value) { if (variantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { variantBuilder_.setMessage(value); } sumCase_ = 3; return this; } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ public Builder setVariant( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder builderForValue) { if (variantBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { variantBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ public Builder mergeVariant(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant value) { if (variantBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.newBuilder((com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 3) { variantBuilder_.mergeFrom(value); } else { variantBuilder_.setMessage(value); } } sumCase_ = 3; return this; } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ public Builder clearVariant() { if (variantBuilder_ == null) { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 3) { sumCase_ = 0; sum_ = null; } variantBuilder_.clear(); } return this; } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder getVariantOrBuilder() { if ((sumCase_ == 3) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.Variant variant = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.VariantOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Variant) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged(); return variantBuilder_; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return Whether the builtinCon field is set. */ @java.lang.Override public boolean hasBuiltinCon() { return sumCase_ == 4; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return The enum numeric value on the wire for builtinCon. */ @java.lang.Override public int getBuiltinConValue() { if (sumCase_ == 4) { return ((java.lang.Integer) sum_).intValue(); } return 0; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @param value The enum numeric value on the wire for builtinCon to set. * @return This builder for chaining. */ public Builder setBuiltinConValue(int value) { sumCase_ = 4; sum_ = value; onChanged(); return this; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return The builtinCon. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BuiltinCon getBuiltinCon() { if (sumCase_ == 4) { com.daml.daml_lf_dev.DamlLf2.BuiltinCon result = com.daml.daml_lf_dev.DamlLf2.BuiltinCon.forNumber( (java.lang.Integer) sum_); return result == null ? com.daml.daml_lf_dev.DamlLf2.BuiltinCon.UNRECOGNIZED : result; } return com.daml.daml_lf_dev.DamlLf2.BuiltinCon.CON_UNIT; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @param value The builtinCon to set. * @return This builder for chaining. */ public Builder setBuiltinCon(com.daml.daml_lf_dev.DamlLf2.BuiltinCon value) { if (value == null) { throw new NullPointerException(); } sumCase_ = 4; sum_ = value.getNumber(); onChanged(); return this; } /** * .daml_lf_2.BuiltinCon builtin_con = 4; * @return This builder for chaining. */ public Builder clearBuiltinCon() { if (sumCase_ == 4) { sumCase_ = 0; sum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> nilBuilder_; /** * .daml_lf_2.Unit nil = 5; * @return Whether the nil field is set. */ @java.lang.Override public boolean hasNil() { return sumCase_ == 5; } /** * .daml_lf_2.Unit nil = 5; * @return The nil. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getNil() { if (nilBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 5) { return nilBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit nil = 5; */ public Builder setNil(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (nilBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { nilBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_2.Unit nil = 5; */ public Builder setNil( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (nilBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { nilBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_2.Unit nil = 5; */ public Builder mergeNil(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (nilBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.Unit) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 5) { nilBuilder_.mergeFrom(value); } else { nilBuilder_.setMessage(value); } } sumCase_ = 5; return this; } /** * .daml_lf_2.Unit nil = 5; */ public Builder clearNil() { if (nilBuilder_ == null) { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 5) { sumCase_ = 0; sum_ = null; } nilBuilder_.clear(); } return this; } /** * .daml_lf_2.Unit nil = 5; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getNilBuilder() { return getNilFieldBuilder().getBuilder(); } /** * .daml_lf_2.Unit nil = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getNilOrBuilder() { if ((sumCase_ == 5) && (nilBuilder_ != null)) { return nilBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit nil = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getNilFieldBuilder() { if (nilBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } nilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged(); return nilBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder> consBuilder_; /** * .daml_lf_2.CaseAlt.Cons cons = 6; * @return Whether the cons field is set. */ @java.lang.Override public boolean hasCons() { return sumCase_ == 6; } /** * .daml_lf_2.CaseAlt.Cons cons = 6; * @return The cons. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons getCons() { if (consBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } else { if (sumCase_ == 6) { return consBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ public Builder setCons(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons value) { if (consBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { consBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ public Builder setCons( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder builderForValue) { if (consBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { consBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ public Builder mergeCons(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons value) { if (consBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.newBuilder((com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 6) { consBuilder_.mergeFrom(value); } else { consBuilder_.setMessage(value); } } sumCase_ = 6; return this; } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ public Builder clearCons() { if (consBuilder_ == null) { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 6) { sumCase_ = 0; sum_ = null; } consBuilder_.clear(); } return this; } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder getConsBuilder() { return getConsFieldBuilder().getBuilder(); } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder getConsOrBuilder() { if ((sumCase_ == 6) && (consBuilder_ != null)) { return consBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.Cons cons = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder> getConsFieldBuilder() { if (consBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.getDefaultInstance(); } consBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.ConsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Cons) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged(); return consBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> optionalNoneBuilder_; /** * .daml_lf_2.Unit optional_none = 7; * @return Whether the optionalNone field is set. */ @java.lang.Override public boolean hasOptionalNone() { return sumCase_ == 7; } /** * .daml_lf_2.Unit optional_none = 7; * @return The optionalNone. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getOptionalNone() { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 7) { return optionalNoneBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit optional_none = 7; */ public Builder setOptionalNone(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (optionalNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { optionalNoneBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_2.Unit optional_none = 7; */ public Builder setOptionalNone( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (optionalNoneBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalNoneBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_2.Unit optional_none = 7; */ public Builder mergeOptionalNone(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (optionalNoneBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Unit optional_none = 7; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getOptionalNoneBuilder() { return getOptionalNoneFieldBuilder().getBuilder(); } /** * .daml_lf_2.Unit optional_none = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getOptionalNoneOrBuilder() { if ((sumCase_ == 7) && (optionalNoneBuilder_ != null)) { return optionalNoneBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit optional_none = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getOptionalNoneFieldBuilder() { if (optionalNoneBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } optionalNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged(); return optionalNoneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder> optionalSomeBuilder_; /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; * @return Whether the optionalSome field is set. */ @java.lang.Override public boolean hasOptionalSome() { return sumCase_ == 8; } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; * @return The optionalSome. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome getOptionalSome() { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } else { if (sumCase_ == 8) { return optionalSomeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; */ public Builder setOptionalSome(com.daml.daml_lf_dev.DamlLf2.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_2.CaseAlt.OptionalSome optional_some = 8; */ public Builder setOptionalSome( com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder builderForValue) { if (optionalSomeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { optionalSomeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; */ public Builder mergeOptionalSome(com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome value) { if (optionalSomeBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.CaseAlt.OptionalSome optional_some = 8; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder getOptionalSomeBuilder() { return getOptionalSomeFieldBuilder().getBuilder(); } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder getOptionalSomeOrBuilder() { if ((sumCase_ == 8) && (optionalSomeBuilder_ != null)) { return optionalSomeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.OptionalSome optional_some = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder> getOptionalSomeFieldBuilder() { if (optionalSomeBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.getDefaultInstance(); } optionalSomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSomeOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.CaseAlt.OptionalSome) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged(); return optionalSomeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder> enumBuilder_; /** * .daml_lf_2.CaseAlt.Enum enum = 9; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return sumCase_ == 9; } /** * .daml_lf_2.CaseAlt.Enum enum = 9; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum getEnum() { if (enumBuilder_ == null) { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } else { if (sumCase_ == 9) { return enumBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.Enum enum = 9; */ public Builder setEnum(com.daml.daml_lf_dev.DamlLf2.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_2.CaseAlt.Enum enum = 9; */ public Builder setEnum( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder builderForValue) { if (enumBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** * .daml_lf_2.CaseAlt.Enum enum = 9; */ public Builder mergeEnum(com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum value) { if (enumBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.CaseAlt.Enum enum = 9; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** * .daml_lf_2.CaseAlt.Enum enum = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder getEnumOrBuilder() { if ((sumCase_ == 9) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) sum_; } return com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } } /** * .daml_lf_2.CaseAlt.Enum enum = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAlt.EnumOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.CaseAlt.Enum) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged(); return enumBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_2.Expr body = 1; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000100) != 0); } /** * .daml_lf_2.Expr body = 1; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_2.Expr body = 1; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .daml_lf_2.Expr body = 1; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .daml_lf_2.Expr body = 1; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * .daml_lf_2.Expr body = 1; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000100); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr body = 1; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr body = 1; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_2.Expr body = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.CaseAlt) } // @@protoc_insertion_point(class_scope:daml_lf_2.CaseAlt) private static final com.daml.daml_lf_dev.DamlLf2.CaseAlt DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.CaseAlt(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CaseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Case) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Expr scrut = 1; * @return Whether the scrut field is set. */ boolean hasScrut(); /** * .daml_lf_2.Expr scrut = 1; * @return The scrut. */ com.daml.daml_lf_dev.DamlLf2.Expr getScrut(); /** * .daml_lf_2.Expr scrut = 1; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getScrutOrBuilder(); /** * repeated .daml_lf_2.CaseAlt alts = 2; */ java.util.List getAltsList(); /** * repeated .daml_lf_2.CaseAlt alts = 2; */ com.daml.daml_lf_dev.DamlLf2.CaseAlt getAlts(int index); /** * repeated .daml_lf_2.CaseAlt alts = 2; */ int getAltsCount(); /** * repeated .daml_lf_2.CaseAlt alts = 2; */ java.util.List getAltsOrBuilderList(); /** * repeated .daml_lf_2.CaseAlt alts = 2; */ com.daml.daml_lf_dev.DamlLf2.CaseAltOrBuilder getAltsOrBuilder( int index); } /** * Protobuf type {@code daml_lf_2.Case} */ public static final class Case extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Case_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Case_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Case.class, com.daml.daml_lf_dev.DamlLf2.Case.Builder.class); } private int bitField0_; public static final int SCRUT_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Expr scrut_; /** * .daml_lf_2.Expr scrut = 1; * @return Whether the scrut field is set. */ @java.lang.Override public boolean hasScrut() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Expr scrut = 1; * @return The scrut. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getScrut() { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : scrut_; } /** * .daml_lf_2.Expr scrut = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getScrutOrBuilder() { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : scrut_; } public static final int ALTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List alts_; /** * repeated .daml_lf_2.CaseAlt alts = 2; */ @java.lang.Override public java.util.List getAltsList() { return alts_; } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ @java.lang.Override public java.util.List getAltsOrBuilderList() { return alts_; } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ @java.lang.Override public int getAltsCount() { return alts_.size(); } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.CaseAlt getAlts(int index) { return alts_.get(index); } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Case)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Case other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Case parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Case parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Case parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Case} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Case) com.daml.daml_lf_dev.DamlLf2.CaseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Case_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Case_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Case.class, com.daml.daml_lf_dev.DamlLf2.Case.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Case_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Case getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Case.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Case build() { com.daml.daml_lf_dev.DamlLf2.Case result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Case buildPartial() { com.daml.daml_lf_dev.DamlLf2.Case result = new com.daml.daml_lf_dev.DamlLf2.Case(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Case) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Case)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Case other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr scrut_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> scrutBuilder_; /** * .daml_lf_2.Expr scrut = 1; * @return Whether the scrut field is set. */ public boolean hasScrut() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Expr scrut = 1; * @return The scrut. */ public com.daml.daml_lf_dev.DamlLf2.Expr getScrut() { if (scrutBuilder_ == null) { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : scrut_; } else { return scrutBuilder_.getMessage(); } } /** * .daml_lf_2.Expr scrut = 1; */ public Builder setScrut(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (scrutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scrut_ = value; } else { scrutBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Expr scrut = 1; */ public Builder setScrut( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (scrutBuilder_ == null) { scrut_ = builderForValue.build(); } else { scrutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Expr scrut = 1; */ public Builder mergeScrut(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (scrutBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && scrut_ != null && scrut_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getScrutBuilder().mergeFrom(value); } else { scrut_ = value; } } else { scrutBuilder_.mergeFrom(value); } if (scrut_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Expr scrut = 1; */ public Builder clearScrut() { bitField0_ = (bitField0_ & ~0x00000001); scrut_ = null; if (scrutBuilder_ != null) { scrutBuilder_.dispose(); scrutBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr scrut = 1; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getScrutBuilder() { bitField0_ |= 0x00000001; onChanged(); return getScrutFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr scrut = 1; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getScrutOrBuilder() { if (scrutBuilder_ != null) { return scrutBuilder_.getMessageOrBuilder(); } else { return scrut_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : scrut_; } } /** * .daml_lf_2.Expr scrut = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getScrutFieldBuilder() { if (scrutBuilder_ == null) { scrutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.CaseAlt, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAltOrBuilder> altsBuilder_; /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public java.util.List getAltsList() { if (altsBuilder_ == null) { return java.util.Collections.unmodifiableList(alts_); } else { return altsBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public int getAltsCount() { if (altsBuilder_ == null) { return alts_.size(); } else { return altsBuilder_.getCount(); } } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt getAlts(int index) { if (altsBuilder_ == null) { return alts_.get(index); } else { return altsBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public Builder setAlts( int index, com.daml.daml_lf_dev.DamlLf2.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_2.CaseAlt alts = 2; */ public Builder setAlts( int index, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder builderForValue) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.set(index, builderForValue.build()); onChanged(); } else { altsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public Builder addAlts(com.daml.daml_lf_dev.DamlLf2.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_2.CaseAlt alts = 2; */ public Builder addAlts( int index, com.daml.daml_lf_dev.DamlLf2.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_2.CaseAlt alts = 2; */ public Builder addAlts( com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder builderForValue) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.add(builderForValue.build()); onChanged(); } else { altsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public Builder addAlts( int index, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder builderForValue) { if (altsBuilder_ == null) { ensureAltsIsMutable(); alts_.add(index, builderForValue.build()); onChanged(); } else { altsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.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_2.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_2.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_2.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder getAltsBuilder( int index) { return getAltsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf2.CaseAltOrBuilder getAltsOrBuilder( int index) { if (altsBuilder_ == null) { return alts_.get(index); } else { return altsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public java.util.List getAltsOrBuilderList() { if (altsBuilder_ != null) { return altsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alts_); } } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder addAltsBuilder() { return getAltsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.CaseAlt.getDefaultInstance()); } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder addAltsBuilder( int index) { return getAltsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.CaseAlt.getDefaultInstance()); } /** * repeated .daml_lf_2.CaseAlt alts = 2; */ public java.util.List getAltsBuilderList() { return getAltsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder, com.daml.daml_lf_dev.DamlLf2.CaseAltOrBuilder> getAltsFieldBuilder() { if (altsBuilder_ == null) { altsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.CaseAlt, com.daml.daml_lf_dev.DamlLf2.CaseAlt.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Case) } // @@protoc_insertion_point(class_scope:daml_lf_2.Case) private static final com.daml.daml_lf_dev.DamlLf2.Case DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Case(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Case getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Block) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ java.util.List getBindingsList(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ com.daml.daml_lf_dev.DamlLf2.Binding getBindings(int index); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ int getBindingsCount(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ java.util.List getBindingsOrBuilderList(); /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder getBindingsOrBuilder( int index); /** * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_2.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Expr getBody(); /** * .daml_lf_2.Expr body = 2; */ com.daml.daml_lf_dev.DamlLf2.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_2.Block} */ public static final class Block extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Block.class, com.daml.daml_lf_dev.DamlLf2.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_2.Binding bindings = 1; */ @java.lang.Override public java.util.List getBindingsList() { return bindings_; } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ @java.lang.Override public java.util.List getBindingsOrBuilderList() { return bindings_; } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ @java.lang.Override public int getBindingsCount() { return bindings_.size(); } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Binding getBindings(int index) { return bindings_.get(index); } /** *
     * *Must be non-empty*
     * Bindings
     * 
* * repeated .daml_lf_2.Binding bindings = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder getBindingsOrBuilder( int index) { return bindings_.get(index); } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr body_; /** * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } /** * .daml_lf_2.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Block)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Block other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Block parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Block} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Block) com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Block.class, com.daml.daml_lf_dev.DamlLf2.Block.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Block_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block build() { com.daml.daml_lf_dev.DamlLf2.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block buildPartial() { com.daml.daml_lf_dev.DamlLf2.Block result = new com.daml.daml_lf_dev.DamlLf2.Block(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Block) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Block other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Binding, com.daml.daml_lf_dev.DamlLf2.Binding.Builder, com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder> bindingsBuilder_; /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.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_2.Binding bindings = 1; */ public int getBindingsCount() { if (bindingsBuilder_ == null) { return bindings_.size(); } else { return bindingsBuilder_.getCount(); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.Binding bindings = 1; */ public com.daml.daml_lf_dev.DamlLf2.Binding getBindings(int index) { if (bindingsBuilder_ == null) { return bindings_.get(index); } else { return bindingsBuilder_.getMessage(index); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.Binding bindings = 1; */ public Builder setBindings( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Binding bindings = 1; */ public Builder setBindings( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Binding bindings = 1; */ public Builder addBindings(com.daml.daml_lf_dev.DamlLf2.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_2.Binding bindings = 1; */ public Builder addBindings( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Binding bindings = 1; */ public Builder addBindings( com.daml.daml_lf_dev.DamlLf2.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_2.Binding bindings = 1; */ public Builder addBindings( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Binding bindings = 1; */ public com.daml.daml_lf_dev.DamlLf2.Binding.Builder getBindingsBuilder( int index) { return getBindingsFieldBuilder().getBuilder(index); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.Binding bindings = 1; */ public com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder getBindingsOrBuilder( int index) { if (bindingsBuilder_ == null) { return bindings_.get(index); } else { return bindingsBuilder_.getMessageOrBuilder(index); } } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.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_2.Binding bindings = 1; */ public com.daml.daml_lf_dev.DamlLf2.Binding.Builder addBindingsBuilder() { return getBindingsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Binding.getDefaultInstance()); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.Binding bindings = 1; */ public com.daml.daml_lf_dev.DamlLf2.Binding.Builder addBindingsBuilder( int index) { return getBindingsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Binding.getDefaultInstance()); } /** *
       * *Must be non-empty*
       * Bindings
       * 
* * repeated .daml_lf_2.Binding bindings = 1; */ public java.util.List getBindingsBuilderList() { return getBindingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Binding, com.daml.daml_lf_dev.DamlLf2.Binding.Builder, com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder> getBindingsFieldBuilder() { if (bindingsBuilder_ == null) { bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Binding, com.daml.daml_lf_dev.DamlLf2.Binding.Builder, com.daml.daml_lf_dev.DamlLf2.BindingOrBuilder>( bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); bindings_ = null; } return bindingsBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_2.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_2.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Block) } // @@protoc_insertion_point(class_scope:daml_lf_2.Block) private static final com.daml.daml_lf_dev.DamlLf2.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Block(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PureOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Pure) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
   * A Pure statement either scenario or update
   * 
* * Protobuf type {@code daml_lf_2.Pure} */ public static final class Pure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Pure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Pure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Pure.class, com.daml.daml_lf_dev.DamlLf2.Pure.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Pure other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Pure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Pure) com.daml.daml_lf_dev.DamlLf2.PureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Pure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Pure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Pure.class, com.daml.daml_lf_dev.DamlLf2.Pure.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Pure_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure build() { com.daml.daml_lf_dev.DamlLf2.Pure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure buildPartial() { com.daml.daml_lf_dev.DamlLf2.Pure result = new com.daml.daml_lf_dev.DamlLf2.Pure(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Pure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Pure other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Pure) } // @@protoc_insertion_point(class_scope:daml_lf_2.Pure) private static final com.daml.daml_lf_dev.DamlLf2.Pure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Pure(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Pure pure = 1; * @return Whether the pure field is set. */ boolean hasPure(); /** * .daml_lf_2.Pure pure = 1; * @return The pure. */ com.daml.daml_lf_dev.DamlLf2.Pure getPure(); /** * .daml_lf_2.Pure pure = 1; */ com.daml.daml_lf_dev.DamlLf2.PureOrBuilder getPureOrBuilder(); /** * .daml_lf_2.Block block = 2; * @return Whether the block field is set. */ boolean hasBlock(); /** * .daml_lf_2.Block block = 2; * @return The block. */ com.daml.daml_lf_dev.DamlLf2.Block getBlock(); /** * .daml_lf_2.Block block = 2; */ com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getBlockOrBuilder(); /** * .daml_lf_2.Update.Create create = 3; * @return Whether the create field is set. */ boolean hasCreate(); /** * .daml_lf_2.Update.Create create = 3; * @return The create. */ com.daml.daml_lf_dev.DamlLf2.Update.Create getCreate(); /** * .daml_lf_2.Update.Create create = 3; */ com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder getCreateOrBuilder(); /** * .daml_lf_2.Update.Exercise exercise = 4; * @return Whether the exercise field is set. */ boolean hasExercise(); /** * .daml_lf_2.Update.Exercise exercise = 4; * @return The exercise. */ com.daml.daml_lf_dev.DamlLf2.Update.Exercise getExercise(); /** * .daml_lf_2.Update.Exercise exercise = 4; */ com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder getExerciseOrBuilder(); /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; * @return Whether the exerciseByKey field is set. */ boolean hasExerciseByKey(); /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; * @return The exerciseByKey. */ com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey getExerciseByKey(); /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder getExerciseByKeyOrBuilder(); /** * .daml_lf_2.Update.Fetch fetch = 5; * @return Whether the fetch field is set. */ boolean hasFetch(); /** * .daml_lf_2.Update.Fetch fetch = 5; * @return The fetch. */ com.daml.daml_lf_dev.DamlLf2.Update.Fetch getFetch(); /** * .daml_lf_2.Update.Fetch fetch = 5; */ com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder getFetchOrBuilder(); /** * .daml_lf_2.Unit get_time = 6; * @return Whether the getTime field is set. */ boolean hasGetTime(); /** * .daml_lf_2.Unit get_time = 6; * @return The getTime. */ com.daml.daml_lf_dev.DamlLf2.Unit getGetTime(); /** * .daml_lf_2.Unit get_time = 6; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getGetTimeOrBuilder(); /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; * @return Whether the lookupByKey field is set. */ boolean hasLookupByKey(); /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; * @return The lookupByKey. */ com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getLookupByKey(); /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; */ com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder(); /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; * @return Whether the fetchByKey field is set. */ boolean hasFetchByKey(); /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; * @return The fetchByKey. */ com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getFetchByKey(); /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; */ com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder(); /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; * @return Whether the embedExpr field is set. */ boolean hasEmbedExpr(); /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; * @return The embedExpr. */ com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr getEmbedExpr(); /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder getEmbedExprOrBuilder(); /** * .daml_lf_2.Update.TryCatch try_catch = 11; * @return Whether the tryCatch field is set. */ boolean hasTryCatch(); /** * .daml_lf_2.Update.TryCatch try_catch = 11; * @return The tryCatch. */ com.daml.daml_lf_dev.DamlLf2.Update.TryCatch getTryCatch(); /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder getTryCatchOrBuilder(); /** * .daml_lf_2.Update.CreateInterface create_interface = 12; * @return Whether the createInterface field is set. */ boolean hasCreateInterface(); /** * .daml_lf_2.Update.CreateInterface create_interface = 12; * @return The createInterface. */ com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface getCreateInterface(); /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder(); /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; * @return Whether the exerciseInterface field is set. */ boolean hasExerciseInterface(); /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; * @return The exerciseInterface. */ com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface getExerciseInterface(); /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder(); /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; * @return Whether the fetchInterface field is set. */ boolean hasFetchInterface(); /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; * @return The fetchInterface. */ com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface getFetchInterface(); /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; * @return Whether the dynamicExercise field is set. */ boolean hasDynamicExercise(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; * @return The dynamicExercise. */ com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise getDynamicExercise(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder getDynamicExerciseOrBuilder(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; * @return Whether the softFetch field is set. */ boolean hasSoftFetch(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; * @return The softFetch. */ com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch getSoftFetch(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder getSoftFetchOrBuilder(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; * @return Whether the softExercise field is set. */ boolean hasSoftExercise(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; * @return The softExercise. */ com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise getSoftExercise(); /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder getSoftExerciseOrBuilder(); com.daml.daml_lf_dev.DamlLf2.Update.SumCase getSumCase(); } /** * Protobuf type {@code daml_lf_2.Update} */ public static final class Update extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.class, com.daml.daml_lf_dev.DamlLf2.Update.Builder.class); } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.Create) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * Template argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Template argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Template argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Create Update
     * 
* * Protobuf type {@code daml_lf_2.Update.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_Create_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.Create.class, com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Template argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Template argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Template argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Create)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.Create other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Create parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.Create) com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Create_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.Create.class, com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_Create_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Create getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Create build() { com.daml.daml_lf_dev.DamlLf2.Update.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Create buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.Create result = new com.daml.daml_lf_dev.DamlLf2.Update.Create(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Create) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.Create other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Template argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Template argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Template argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Template argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Template argument
         * 
* * .daml_lf_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Template argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Template argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.Create) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.Create) private static final com.daml.daml_lf_dev.DamlLf2.Update.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.Create(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.CreateInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); } /** *
     * Interface Create Update
     * 
* * Protobuf type {@code daml_lf_2.Update.CreateInterface} */ public static final class CreateInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_CreateInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_CreateInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.class, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * Interface argument
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.CreateInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.CreateInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.CreateInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.CreateInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.Update.CreateInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Interface Create Update
       * 
* * Protobuf type {@code daml_lf_2.Update.CreateInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.CreateInterface) com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_CreateInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_CreateInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.class, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_CreateInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface build() { com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface result = new com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.CreateInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.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_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Interface argument
         * 
* * .daml_lf_2.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_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * Interface argument
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.CreateInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.CreateInterface) private static final com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.CreateInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.Exercise) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 5; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 5; * @return The arg. */ com.daml.daml_lf_dev.DamlLf2.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 5; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder(); } /** *
     * Exercise Update
     * 
* * Protobuf type {@code daml_lf_2.Update.Exercise} */ public static final class Exercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_Exercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Exercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.Exercise.class, com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } public static final int CHOICE_INTERNED_STR_FIELD_NUMBER = 6; private int choiceInternedStr_ = 0; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 6; * @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.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } public static final int ARG_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf2.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 5; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 5; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getArg()); } if (choiceInternedStr_ != 0) { output.writeInt32(6, choiceInternedStr_); } 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(3, getCid()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getArg()); } if (choiceInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, choiceInternedStr_); } 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.DamlLf2.Update.Exercise)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.Exercise other = (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) 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.DamlLf2.Update.Exercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Exercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Exercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.Exercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.Exercise) com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Exercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Exercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.Exercise.class, com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } 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.DamlLf2.internal_static_daml_lf_2_Update_Exercise_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Exercise getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Exercise build() { com.daml.daml_lf_dev.DamlLf2.Update.Exercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Exercise buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.Exercise result = new com.daml.daml_lf_dev.DamlLf2.Update.Exercise(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 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.DamlLf2.Update.Exercise) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.Exercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.Exercise other) { if (other == com.daml.daml_lf_dev.DamlLf2.Update.Exercise.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 26: { input.readMessage( getCidFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage( getArgFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 case 48: { choiceInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; 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 bitField0_; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private int choiceInternedStr_ ; /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6; * @return The choiceInternedStr. */ @java.lang.Override public int getChoiceInternedStr() { return choiceInternedStr_; } /** *
         * *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) { choiceInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * *Must be a valid interned identifier*
         * 
* * int32 choice_interned_str = 6; * @return This builder for chaining. */ public Builder clearChoiceInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); choiceInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 3; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; * @return Whether the arg field is set. */ public boolean hasArg() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; */ public Builder setArg(com.daml.daml_lf_dev.DamlLf2.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_2.Expr arg = 5; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.Exercise) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.Exercise) private static final com.daml.daml_lf_dev.DamlLf2.Update.Exercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.Exercise(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Exercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SoftExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.SoftExercise) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ com.daml.daml_lf_dev.DamlLf2.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder(); } /** *
     * Soft Exercise Update
     * Exercises a contract of the given template type OR a predecessor.
     * *Available in versions >= 2.dev*
     * 
* * Protobuf type {@code daml_lf_2.Update.SoftExercise} */ public static final class SoftExercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_SoftExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_SoftExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.class, com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.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 CID_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } public static final int ARG_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftExercise)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise other = (com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) 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.DamlLf2.Update.SoftExercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftExercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftExercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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 >= 2.dev*
       * 
* * Protobuf type {@code daml_lf_2.Update.SoftExercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.SoftExercise) com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_SoftExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_SoftExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.class, com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; } 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.DamlLf2.internal_static_daml_lf_2_Update_SoftExercise_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise build() { com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise result = new com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 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.DamlLf2.Update.SoftExercise) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise other) { if (other == com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 3; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ public boolean hasArg() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder setArg(com.daml.daml_lf_dev.DamlLf2.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_2.Expr arg = 4; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.SoftExercise) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.SoftExercise) private static final com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftExercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DynamicExerciseOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.DynamicExercise) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 3; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ com.daml.daml_lf_dev.DamlLf2.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder(); } /** *
     * Dynamic Exercise Update
     * 
* * Protobuf type {@code daml_lf_2.Update.DynamicExercise} */ public static final class DynamicExercise extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_DynamicExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_DynamicExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.class, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } public static final int ARG_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.DynamicExercise)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.DynamicExercise parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.DynamicExercise parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.DynamicExercise parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
       * 
* * Protobuf type {@code daml_lf_2.Update.DynamicExercise} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.DynamicExercise) com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_DynamicExercise_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_DynamicExercise_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.class, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_DynamicExercise_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise build() { com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise result = new com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.DynamicExercise) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 3; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ public boolean hasArg() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder setArg(com.daml.daml_lf_dev.DamlLf2.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_2.Expr arg = 4; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.DynamicExercise) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.DynamicExercise) private static final com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.DynamicExercise getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.ExerciseInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 3; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ com.daml.daml_lf_dev.DamlLf2.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder(); /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_2.Expr guard = 5; * @return Whether the guard field is set. */ boolean hasGuard(); /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_2.Expr guard = 5; * @return The guard. */ com.daml.daml_lf_dev.DamlLf2.Expr getGuard(); /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_2.Expr guard = 5; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getGuardOrBuilder(); } /** *
     * Interface Exercise Update
     * 
* * Protobuf type {@code daml_lf_2.Update.ExerciseInterface} */ public static final class ExerciseInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_ExerciseInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_ExerciseInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.class, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } public static final int ARG_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } public static final int GUARD_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf2.Expr guard_; /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_2.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_2.Expr guard = 5; * @return The guard. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getGuard() { return guard_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : guard_; } /** *
       * exercise guard (Interface -> Bool)
       * 
* * .daml_lf_2.Expr guard = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getGuardOrBuilder() { return guard_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.Update.ExerciseInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Interface Exercise Update
       * 
* * Protobuf type {@code daml_lf_2.Update.ExerciseInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.ExerciseInterface) com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_ExerciseInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_ExerciseInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.class, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_ExerciseInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface build() { com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface result = new com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.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_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 3; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getCid(), getParentForChildren(), isClean()); cid_ = null; } return cidBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ public boolean hasArg() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder setArg(com.daml.daml_lf_dev.DamlLf2.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_2.Expr arg = 4; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getArg(), getParentForChildren(), isClean()); arg_ = null; } return argBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr guard_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> guardBuilder_; /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_2.Expr guard = 5; * @return Whether the guard field is set. */ public boolean hasGuard() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_2.Expr guard = 5; * @return The guard. */ public com.daml.daml_lf_dev.DamlLf2.Expr getGuard() { if (guardBuilder_ == null) { return guard_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : guard_; } else { return guardBuilder_.getMessage(); } } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_2.Expr guard = 5; */ public Builder setGuard(com.daml.daml_lf_dev.DamlLf2.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_2.Expr guard = 5; */ public Builder setGuard( com.daml.daml_lf_dev.DamlLf2.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_2.Expr guard = 5; */ public Builder mergeGuard(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (guardBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && guard_ != null && guard_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr guard = 5; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getGuardBuilder() { bitField0_ |= 0x00000010; onChanged(); return getGuardFieldBuilder().getBuilder(); } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_2.Expr guard = 5; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getGuardOrBuilder() { if (guardBuilder_ != null) { return guardBuilder_.getMessageOrBuilder(); } else { return guard_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : guard_; } } /** *
         * exercise guard (Interface -> Bool)
         * 
* * .daml_lf_2.Expr guard = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getGuardFieldBuilder() { if (guardBuilder_ == null) { guardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.ExerciseInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.ExerciseInterface) private static final com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExerciseByKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.ExerciseByKey) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * *Must be a valid interned identifier*
       * 
* * int32 choice_interned_str = 2; * @return The choiceInternedStr. */ int getChoiceInternedStr(); /** *
       * key
       * 
* * .daml_lf_2.Expr key = 3; * @return Whether the key field is set. */ boolean hasKey(); /** *
       * key
       * 
* * .daml_lf_2.Expr key = 3; * @return The key. */ com.daml.daml_lf_dev.DamlLf2.Expr getKey(); /** *
       * key
       * 
* * .daml_lf_2.Expr key = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyOrBuilder(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ boolean hasArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ com.daml.daml_lf_dev.DamlLf2.Expr getArg(); /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder(); } /** *
     * ExerciseByKey Update
     * 
* * Protobuf type {@code daml_lf_2.Update.ExerciseByKey} */ public static final class ExerciseByKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_ExerciseByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_ExerciseByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.class, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr key_; /** *
       * key
       * 
* * .daml_lf_2.Expr key = 3; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * key
       * 
* * .daml_lf_2.Expr key = 3; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getKey() { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } /** *
       * key
       * 
* * .daml_lf_2.Expr key = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyOrBuilder() { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } public static final int ARG_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr arg_; /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ @java.lang.Override public boolean hasArg() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } /** *
       * argument
       * 
* * .daml_lf_2.Expr arg = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseByKey)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseByKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseByKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseByKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.ExerciseByKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.ExerciseByKey) com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_ExerciseByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_ExerciseByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.class, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_ExerciseByKey_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey build() { com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey result = new com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseByKey) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> keyBuilder_; /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; * @return The key. */ public com.daml.daml_lf_dev.DamlLf2.Expr getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; */ public Builder setKey(com.daml.daml_lf_dev.DamlLf2.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_2.Expr key = 3; */ public Builder setKey( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && key_ != null && key_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000004); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getKeyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } } /** *
         * key
         * 
* * .daml_lf_2.Expr key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr arg_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> argBuilder_; /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return Whether the arg field is set. */ public boolean hasArg() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; * @return The arg. */ public com.daml.daml_lf_dev.DamlLf2.Expr getArg() { if (argBuilder_ == null) { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } else { return argBuilder_.getMessage(); } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder setArg(com.daml.daml_lf_dev.DamlLf2.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_2.Expr arg = 4; */ public Builder setArg( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (argBuilder_ == null) { arg_ = builderForValue.build(); } else { argBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder mergeArg(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (argBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && arg_ != null && arg_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getArgBuilder().mergeFrom(value); } else { arg_ = value; } } else { argBuilder_.mergeFrom(value); } if (arg_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public Builder clearArg() { bitField0_ = (bitField0_ & ~0x00000008); arg_ = null; if (argBuilder_ != null) { argBuilder_.dispose(); argBuilder_ = null; } onChanged(); return this; } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getArgBuilder() { bitField0_ |= 0x00000008; onChanged(); return getArgFieldBuilder().getBuilder(); } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getArgOrBuilder() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilder(); } else { return arg_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : arg_; } } /** *
         * argument
         * 
* * .daml_lf_2.Expr arg = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.ExerciseByKey) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.ExerciseByKey) private static final com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.ExerciseByKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FetchOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.Fetch) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); } /** *
     * Fetch Update
     * 
* * Protobuf type {@code daml_lf_2.Update.Fetch} */ public static final class Fetch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_Fetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Fetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.Fetch.class, com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } public static final int CID_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Fetch)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.Fetch other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Fetch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Fetch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Fetch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.Fetch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.Fetch) com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Fetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_Fetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.Fetch.class, com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_Fetch_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Fetch getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Fetch build() { com.daml.daml_lf_dev.DamlLf2.Update.Fetch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Fetch buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.Fetch result = new com.daml.daml_lf_dev.DamlLf2.Update.Fetch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Fetch) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.Fetch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.Fetch other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 2; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.Fetch) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.Fetch) private static final com.daml.daml_lf_dev.DamlLf2.Update.Fetch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.Fetch(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.Fetch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SoftFetchOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.SoftFetch) com.google.protobuf.MessageOrBuilder { /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); } /** *
     * Soft Fetch Update
     * Fetches a contract of the given template type OR a predecessor.
     * *Available in versions >= 2.dev*
     * 
* * Protobuf type {@code daml_lf_2.Update.SoftFetch} */ public static final class SoftFetch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_SoftFetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_SoftFetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.class, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** *
       * Template type
       * 
* * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } public static final int CID_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftFetch)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftFetch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftFetch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftFetch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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 >= 2.dev*
       * 
* * Protobuf type {@code daml_lf_2.Update.SoftFetch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.SoftFetch) com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_SoftFetch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_SoftFetch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.class, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_SoftFetch_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch build() { com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch result = new com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftFetch) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Template type
         * 
* * .daml_lf_2.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_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** *
         * Template type
         * 
* * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 2; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.SoftFetch) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.SoftFetch) private static final com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.SoftFetch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FetchInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.FetchInterface) com.google.protobuf.MessageOrBuilder { /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ boolean hasCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ com.daml.daml_lf_dev.DamlLf2.Expr getCid(); /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder(); } /** *
     * Interface Fetch Update
     * 
* * Protobuf type {@code daml_lf_2.Update.FetchInterface} */ public static final class FetchInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_FetchInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_FetchInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.class, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** *
       * Interface type
       * 
* * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int CID_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr cid_; /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ @java.lang.Override public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } /** *
       * contract id
       * 
* * .daml_lf_2.Expr cid = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.FetchInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.FetchInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.FetchInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.FetchInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.Update.FetchInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Interface Fetch Update
       * 
* * Protobuf type {@code daml_lf_2.Update.FetchInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.FetchInterface) com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_FetchInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_FetchInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.class, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_FetchInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface build() { com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface result = new com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.FetchInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.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_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Interface type
         * 
* * .daml_lf_2.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_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** *
         * Interface type
         * 
* * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr cid_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> cidBuilder_; /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; * @return Whether the cid field is set. */ public boolean hasCid() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; * @return The cid. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCid() { if (cidBuilder_ == null) { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } else { return cidBuilder_.getMessage(); } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public Builder setCid(com.daml.daml_lf_dev.DamlLf2.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_2.Expr cid = 2; */ public Builder setCid( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (cidBuilder_ == null) { cid_ = builderForValue.build(); } else { cidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public Builder mergeCid(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (cidBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && cid_ != null && cid_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCidBuilder().mergeFrom(value); } else { cid_ = value; } } else { cidBuilder_.mergeFrom(value); } if (cid_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * contract id
         * 
* * .daml_lf_2.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_2.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCidBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCidFieldBuilder().getBuilder(); } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCidOrBuilder() { if (cidBuilder_ != null) { return cidBuilder_.getMessageOrBuilder(); } else { return cid_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : cid_; } } /** *
         * contract id
         * 
* * .daml_lf_2.Expr cid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCidFieldBuilder() { if (cidBuilder_ == null) { cidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.FetchInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.FetchInterface) private static final com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.FetchInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbedExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.EmbedExpr) com.google.protobuf.MessageOrBuilder { /** *
       * Expression type
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
       * Expression type
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * Expression type
       * 
* * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** *
       * Expression body
       * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** *
       * Expression body
       * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Expr getBody(); /** *
       * Expression body
       * 
* * .daml_lf_2.Expr body = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder(); } /** *
     * Embedded Expression Update
     * 
* * Protobuf type {@code daml_lf_2.Update.EmbedExpr} */ public static final class EmbedExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** *
       * Expression type
       * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Expression type
       * 
* * .daml_lf_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * Expression type
       * 
* * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr body_; /** *
       * Expression body
       * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Expression body
       * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } /** *
       * Expression body
       * 
* * .daml_lf_2.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.EmbedExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.EmbedExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.EmbedExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.EmbedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.EmbedExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.EmbedExpr) com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_EmbedExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr build() { com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr result = new com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.EmbedExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * Expression type
         * 
* * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Expression type
         * 
* * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * Expression type
         * 
* * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.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_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Expression type
         * 
* * .daml_lf_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Expression type
         * 
* * .daml_lf_2.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_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * Expression type
         * 
* * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * Expression type
         * 
* * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> bodyBuilder_; /** *
         * Expression body
         * 
* * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Expression body
         * 
* * .daml_lf_2.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** *
         * Expression body
         * 
* * .daml_lf_2.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.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_2.Expr body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Expression body
         * 
* * .daml_lf_2.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Expression body
         * 
* * .daml_lf_2.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_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** *
         * Expression body
         * 
* * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } } /** *
         * Expression body
         * 
* * .daml_lf_2.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.EmbedExpr) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.EmbedExpr) private static final com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.EmbedExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RetrieveByKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.RetrieveByKey) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ boolean hasTemplate(); /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate(); /** * .daml_lf_2.TypeConName template = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder(); /** * .daml_lf_2.Expr key = 2; * @return Whether the key field is set. */ boolean hasKey(); /** * .daml_lf_2.Expr key = 2; * @return The key. */ com.daml.daml_lf_dev.DamlLf2.Expr getKey(); /** * .daml_lf_2.Expr key = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyOrBuilder(); } /** *
     * Retrieve by key Update
     * 
* * Protobuf type {@code daml_lf_2.Update.RetrieveByKey} */ public static final class RetrieveByKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_RetrieveByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_RetrieveByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.class, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder.class); } private int bitField0_; public static final int TEMPLATE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName template_; /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } /** * .daml_lf_2.TypeConName template = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } public static final int KEY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr key_; /** * .daml_lf_2.Expr key = 2; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr key = 2; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getKey() { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } /** * .daml_lf_2.Expr key = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyOrBuilder() { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.RetrieveByKey)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.RetrieveByKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.RetrieveByKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.RetrieveByKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.RetrieveByKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.RetrieveByKey) com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_RetrieveByKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_RetrieveByKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.class, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_RetrieveByKey_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey build() { com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey result = new com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.RetrieveByKey) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName template_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> templateBuilder_; /** * .daml_lf_2.TypeConName template = 1; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName template = 1; * @return The template. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getTemplate() { if (templateBuilder_ == null) { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder setTemplate( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder mergeTemplate(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && template_ != null && template_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getTemplateBuilder().mergeFrom(value); } else { template_ = value; } } else { templateBuilder_.mergeFrom(value); } if (template_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName template = 1; */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000001); template_ = null; if (templateBuilder_ != null) { templateBuilder_.dispose(); templateBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName template = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : template_; } } /** * .daml_lf_2.TypeConName template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> keyBuilder_; /** * .daml_lf_2.Expr key = 2; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr key = 2; * @return The key. */ public com.daml.daml_lf_dev.DamlLf2.Expr getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * .daml_lf_2.Expr key = 2; */ public Builder setKey(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr key = 2; */ public Builder setKey( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr key = 2; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && key_ != null && key_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr key = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getKeyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr key = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : key_; } } /** * .daml_lf_2.Expr key = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.RetrieveByKey) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.RetrieveByKey) private static final com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.RetrieveByKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TryCatchOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Update.TryCatch) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Type return_type = 1; * @return Whether the returnType field is set. */ boolean hasReturnType(); /** * .daml_lf_2.Type return_type = 1; * @return The returnType. */ com.daml.daml_lf_dev.DamlLf2.Type getReturnType(); /** * .daml_lf_2.Type return_type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getReturnTypeOrBuilder(); /** * .daml_lf_2.Expr try_expr = 2; * @return Whether the tryExpr field is set. */ boolean hasTryExpr(); /** * .daml_lf_2.Expr try_expr = 2; * @return The tryExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getTryExpr(); /** * .daml_lf_2.Expr try_expr = 2; */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr catch_expr = 4; * @return Whether the catchExpr field is set. */ boolean hasCatchExpr(); /** * .daml_lf_2.Expr catch_expr = 4; * @return The catchExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getCatchExpr(); /** * .daml_lf_2.Expr catch_expr = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCatchExprOrBuilder(); } /** *
     * Try-catch block.
     * 
* * Protobuf type {@code daml_lf_2.Update.TryCatch} */ public static final class TryCatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Update_TryCatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_TryCatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.class, com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder.class); } private int bitField0_; public static final int RETURN_TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type returnType_; /** * .daml_lf_2.Type return_type = 1; * @return Whether the returnType field is set. */ @java.lang.Override public boolean hasReturnType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type return_type = 1; * @return The returnType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getReturnType() { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } /** * .daml_lf_2.Type return_type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getReturnTypeOrBuilder() { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } public static final int TRY_EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr tryExpr_; /** * .daml_lf_2.Expr try_expr = 2; * @return Whether the tryExpr field is set. */ @java.lang.Override public boolean hasTryExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr try_expr = 2; * @return The tryExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getTryExpr() { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : tryExpr_; } /** * .daml_lf_2.Expr try_expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTryExprOrBuilder() { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr catchExpr_; /** * .daml_lf_2.Expr catch_expr = 4; * @return Whether the catchExpr field is set. */ @java.lang.Override public boolean hasCatchExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr catch_expr = 4; * @return The catchExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getCatchExpr() { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : catchExpr_; } /** * .daml_lf_2.Expr catch_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCatchExprOrBuilder() { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.TryCatch)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update.TryCatch other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.TryCatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.TryCatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.TryCatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update.TryCatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update.TryCatch) com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_TryCatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_TryCatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.class, com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_TryCatch_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatch getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatch build() { com.daml.daml_lf_dev.DamlLf2.Update.TryCatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatch buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update.TryCatch result = new com.daml.daml_lf_dev.DamlLf2.Update.TryCatch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update.TryCatch) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update.TryCatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update.TryCatch other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type returnType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> returnTypeBuilder_; /** * .daml_lf_2.Type return_type = 1; * @return Whether the returnType field is set. */ public boolean hasReturnType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type return_type = 1; * @return The returnType. */ public com.daml.daml_lf_dev.DamlLf2.Type getReturnType() { if (returnTypeBuilder_ == null) { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } else { return returnTypeBuilder_.getMessage(); } } /** * .daml_lf_2.Type return_type = 1; */ public Builder setReturnType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (returnTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } returnType_ = value; } else { returnTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type return_type = 1; */ public Builder setReturnType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (returnTypeBuilder_ == null) { returnType_ = builderForValue.build(); } else { returnTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type return_type = 1; */ public Builder mergeReturnType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (returnTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && returnType_ != null && returnType_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getReturnTypeBuilder().mergeFrom(value); } else { returnType_ = value; } } else { returnTypeBuilder_.mergeFrom(value); } if (returnType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Type return_type = 1; */ public Builder clearReturnType() { bitField0_ = (bitField0_ & ~0x00000001); returnType_ = null; if (returnTypeBuilder_ != null) { returnTypeBuilder_.dispose(); returnTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getReturnTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getReturnTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type return_type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getReturnTypeOrBuilder() { if (returnTypeBuilder_ != null) { return returnTypeBuilder_.getMessageOrBuilder(); } else { return returnType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : returnType_; } } /** * .daml_lf_2.Type return_type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getReturnTypeFieldBuilder() { if (returnTypeBuilder_ == null) { returnTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getReturnType(), getParentForChildren(), isClean()); returnType_ = null; } return returnTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr tryExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> tryExprBuilder_; /** * .daml_lf_2.Expr try_expr = 2; * @return Whether the tryExpr field is set. */ public boolean hasTryExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr try_expr = 2; * @return The tryExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getTryExpr() { if (tryExprBuilder_ == null) { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : tryExpr_; } else { return tryExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr try_expr = 2; */ public Builder setTryExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (tryExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tryExpr_ = value; } else { tryExprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr try_expr = 2; */ public Builder setTryExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (tryExprBuilder_ == null) { tryExpr_ = builderForValue.build(); } else { tryExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr try_expr = 2; */ public Builder mergeTryExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (tryExprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && tryExpr_ != null && tryExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getTryExprBuilder().mergeFrom(value); } else { tryExpr_ = value; } } else { tryExprBuilder_.mergeFrom(value); } if (tryExpr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr try_expr = 2; */ public Builder clearTryExpr() { bitField0_ = (bitField0_ & ~0x00000002); tryExpr_ = null; if (tryExprBuilder_ != null) { tryExprBuilder_.dispose(); tryExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr try_expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getTryExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTryExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr try_expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getTryExprOrBuilder() { if (tryExprBuilder_ != null) { return tryExprBuilder_.getMessageOrBuilder(); } else { return tryExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : tryExpr_; } } /** * .daml_lf_2.Expr try_expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getTryExprFieldBuilder() { if (tryExprBuilder_ == null) { tryExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr catchExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> catchExprBuilder_; /** * .daml_lf_2.Expr catch_expr = 4; * @return Whether the catchExpr field is set. */ public boolean hasCatchExpr() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Expr catch_expr = 4; * @return The catchExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getCatchExpr() { if (catchExprBuilder_ == null) { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : catchExpr_; } else { return catchExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr catch_expr = 4; */ public Builder setCatchExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (catchExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } catchExpr_ = value; } else { catchExprBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr catch_expr = 4; */ public Builder setCatchExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (catchExprBuilder_ == null) { catchExpr_ = builderForValue.build(); } else { catchExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Expr catch_expr = 4; */ public Builder mergeCatchExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (catchExprBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && catchExpr_ != null && catchExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getCatchExprBuilder().mergeFrom(value); } else { catchExpr_ = value; } } else { catchExprBuilder_.mergeFrom(value); } if (catchExpr_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.Expr catch_expr = 4; */ public Builder clearCatchExpr() { bitField0_ = (bitField0_ & ~0x00000008); catchExpr_ = null; if (catchExprBuilder_ != null) { catchExprBuilder_.dispose(); catchExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr catch_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getCatchExprBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCatchExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr catch_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getCatchExprOrBuilder() { if (catchExprBuilder_ != null) { return catchExprBuilder_.getMessageOrBuilder(); } else { return catchExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : catchExpr_; } } /** * .daml_lf_2.Expr catch_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getCatchExprFieldBuilder() { if (catchExprBuilder_ == null) { catchExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Update.TryCatch) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update.TryCatch) private static final com.daml.daml_lf_dev.DamlLf2.Update.TryCatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update.TryCatch(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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(1001), SOFT_FETCH(1002), SOFT_EXERCISE(1003), 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 1001: return DYNAMIC_EXERCISE; case 1002: return SOFT_FETCH; case 1003: 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_2.Pure pure = 1; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_2.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure getPure() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } /** * .daml_lf_2.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PureOrBuilder getPureOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** * .daml_lf_2.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_2.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getBlock() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } /** * .daml_lf_2.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getBlockOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } public static final int CREATE_FIELD_NUMBER = 3; /** * .daml_lf_2.Update.Create create = 3; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return sumCase_ == 3; } /** * .daml_lf_2.Update.Create create = 3; * @return The create. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Create getCreate() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } /** * .daml_lf_2.Update.Create create = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder getCreateOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } public static final int EXERCISE_FIELD_NUMBER = 4; /** * .daml_lf_2.Update.Exercise exercise = 4; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return sumCase_ == 4; } /** * .daml_lf_2.Update.Exercise exercise = 4; * @return The exercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Exercise getExercise() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } /** * .daml_lf_2.Update.Exercise exercise = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder getExerciseOrBuilder() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } public static final int EXERCISE_BY_KEY_FIELD_NUMBER = 10; /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; * @return Whether the exerciseByKey field is set. */ @java.lang.Override public boolean hasExerciseByKey() { return sumCase_ == 10; } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; * @return The exerciseByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey getExerciseByKey() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder getExerciseByKeyOrBuilder() { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } public static final int FETCH_FIELD_NUMBER = 5; /** * .daml_lf_2.Update.Fetch fetch = 5; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return sumCase_ == 5; } /** * .daml_lf_2.Update.Fetch fetch = 5; * @return The fetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Fetch getFetch() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } /** * .daml_lf_2.Update.Fetch fetch = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder getFetchOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } public static final int GET_TIME_FIELD_NUMBER = 6; /** * .daml_lf_2.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_2.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getGetTime() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** * .daml_lf_2.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getGetTimeOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } public static final int LOOKUP_BY_KEY_FIELD_NUMBER = 8; /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; * @return Whether the lookupByKey field is set. */ @java.lang.Override public boolean hasLookupByKey() { return sumCase_ == 8; } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; * @return The lookupByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getLookupByKey() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } public static final int FETCH_BY_KEY_FIELD_NUMBER = 9; /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; * @return Whether the fetchByKey field is set. */ @java.lang.Override public boolean hasFetchByKey() { return sumCase_ == 9; } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; * @return The fetchByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getFetchByKey() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder() { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } public static final int EMBED_EXPR_FIELD_NUMBER = 7; /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; * @return Whether the embedExpr field is set. */ @java.lang.Override public boolean hasEmbedExpr() { return sumCase_ == 7; } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr getEmbedExpr() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder getEmbedExprOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } public static final int TRY_CATCH_FIELD_NUMBER = 11; /** * .daml_lf_2.Update.TryCatch try_catch = 11; * @return Whether the tryCatch field is set. */ @java.lang.Override public boolean hasTryCatch() { return sumCase_ == 11; } /** * .daml_lf_2.Update.TryCatch try_catch = 11; * @return The tryCatch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatch getTryCatch() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder getTryCatchOrBuilder() { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } public static final int CREATE_INTERFACE_FIELD_NUMBER = 12; /** * .daml_lf_2.Update.CreateInterface create_interface = 12; * @return Whether the createInterface field is set. */ @java.lang.Override public boolean hasCreateInterface() { return sumCase_ == 12; } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; * @return The createInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface getCreateInterface() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder() { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } public static final int EXERCISE_INTERFACE_FIELD_NUMBER = 13; /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; * @return Whether the exerciseInterface field is set. */ @java.lang.Override public boolean hasExerciseInterface() { return sumCase_ == 13; } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; * @return The exerciseInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface getExerciseInterface() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder() { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } public static final int FETCH_INTERFACE_FIELD_NUMBER = 14; /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; * @return Whether the fetchInterface field is set. */ @java.lang.Override public boolean hasFetchInterface() { return sumCase_ == 14; } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; * @return The fetchInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface getFetchInterface() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder() { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } public static final int DYNAMIC_EXERCISE_FIELD_NUMBER = 1001; /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; * @return Whether the dynamicExercise field is set. */ @java.lang.Override public boolean hasDynamicExercise() { return sumCase_ == 1001; } /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; * @return The dynamicExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise getDynamicExercise() { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder getDynamicExerciseOrBuilder() { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } public static final int SOFT_FETCH_FIELD_NUMBER = 1002; /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; * @return Whether the softFetch field is set. */ @java.lang.Override public boolean hasSoftFetch() { return sumCase_ == 1002; } /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; * @return The softFetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch getSoftFetch() { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder getSoftFetchOrBuilder() { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } public static final int SOFT_EXERCISE_FIELD_NUMBER = 1003; /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; * @return Whether the softExercise field is set. */ @java.lang.Override public boolean hasSoftExercise() { return sumCase_ == 1003; } /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; * @return The softExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise getSoftExercise() { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance(); } /** *
     * *Available in versions >= 2.dev*
     * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder getSoftExerciseOrBuilder() { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf2.Block) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_); } if (sumCase_ == 9) { output.writeMessage(9, (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_); } if (sumCase_ == 10) { output.writeMessage(10, (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_); } if (sumCase_ == 11) { output.writeMessage(11, (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_); } if (sumCase_ == 12) { output.writeMessage(12, (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_); } if (sumCase_ == 13) { output.writeMessage(13, (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_); } if (sumCase_ == 14) { output.writeMessage(14, (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_); } if (sumCase_ == 1001) { output.writeMessage(1001, (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_); } if (sumCase_ == 1002) { output.writeMessage(1002, (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_); } if (sumCase_ == 1003) { output.writeMessage(1003, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf2.Block) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_); } if (sumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_); } if (sumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_); } if (sumCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_); } if (sumCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_); } if (sumCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_); } if (sumCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_); } if (sumCase_ == 1001) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_); } if (sumCase_ == 1002) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1002, (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_); } if (sumCase_ == 1003) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1003, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Update other = (com.daml.daml_lf_dev.DamlLf2.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 1001: if (!getDynamicExercise() .equals(other.getDynamicExercise())) return false; break; case 1002: if (!getSoftFetch() .equals(other.getSoftFetch())) return false; break; case 1003: 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 1001: hash = (37 * hash) + DYNAMIC_EXERCISE_FIELD_NUMBER; hash = (53 * hash) + getDynamicExercise().hashCode(); break; case 1002: hash = (37 * hash) + SOFT_FETCH_FIELD_NUMBER; hash = (53 * hash) + getSoftFetch().hashCode(); break; case 1003: 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.DamlLf2.Update parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Update} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Update) com.daml.daml_lf_dev.DamlLf2.UpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Update.class, com.daml.daml_lf_dev.DamlLf2.Update.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Update_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Update.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update build() { com.daml.daml_lf_dev.DamlLf2.Update result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update buildPartial() { com.daml.daml_lf_dev.DamlLf2.Update result = new com.daml.daml_lf_dev.DamlLf2.Update(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Update result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.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_ == 1001 && dynamicExerciseBuilder_ != null) { result.sum_ = dynamicExerciseBuilder_.build(); } if (sumCase_ == 1002 && softFetchBuilder_ != null) { result.sum_ = softFetchBuilder_.build(); } if (sumCase_ == 1003 && 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.DamlLf2.Update) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Update)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Update other) { if (other == com.daml.daml_lf_dev.DamlLf2.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 8010: { input.readMessage( getDynamicExerciseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1001; break; } // case 8010 case 8018: { input.readMessage( getSoftFetchFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1002; break; } // case 8018 case 8026: { input.readMessage( getSoftExerciseFieldBuilder().getBuilder(), extensionRegistry); sumCase_ = 1003; break; } // case 8026 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.DamlLf2.Pure, com.daml.daml_lf_dev.DamlLf2.Pure.Builder, com.daml.daml_lf_dev.DamlLf2.PureOrBuilder> pureBuilder_; /** * .daml_lf_2.Pure pure = 1; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_2.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure getPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } else { if (sumCase_ == 1) { return pureBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } } /** * .daml_lf_2.Pure pure = 1; */ public Builder setPure(com.daml.daml_lf_dev.DamlLf2.Pure value) { if (pureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { pureBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_2.Pure pure = 1; */ public Builder setPure( com.daml.daml_lf_dev.DamlLf2.Pure.Builder builderForValue) { if (pureBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { pureBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_2.Pure pure = 1; */ public Builder mergePure(com.daml.daml_lf_dev.DamlLf2.Pure value) { if (pureBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Pure.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Pure pure = 1; */ public com.daml.daml_lf_dev.DamlLf2.Pure.Builder getPureBuilder() { return getPureFieldBuilder().getBuilder(); } /** * .daml_lf_2.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PureOrBuilder getPureOrBuilder() { if ((sumCase_ == 1) && (pureBuilder_ != null)) { return pureBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } } /** * .daml_lf_2.Pure pure = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Pure, com.daml.daml_lf_dev.DamlLf2.Pure.Builder, com.daml.daml_lf_dev.DamlLf2.PureOrBuilder> getPureFieldBuilder() { if (pureBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } pureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Pure, com.daml.daml_lf_dev.DamlLf2.Pure.Builder, com.daml.daml_lf_dev.DamlLf2.PureOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Pure) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged(); return pureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder> blockBuilder_; /** * .daml_lf_2.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_2.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } else { if (sumCase_ == 2) { return blockBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } } /** * .daml_lf_2.Block block = 2; */ public Builder setBlock(com.daml.daml_lf_dev.DamlLf2.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_2.Block block = 2; */ public Builder setBlock( com.daml.daml_lf_dev.DamlLf2.Block.Builder builderForValue) { if (blockBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_2.Block block = 2; */ public Builder mergeBlock(com.daml.daml_lf_dev.DamlLf2.Block value) { if (blockBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Block.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Block block = 2; */ public com.daml.daml_lf_dev.DamlLf2.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * .daml_lf_2.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getBlockOrBuilder() { if ((sumCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } } /** * .daml_lf_2.Block block = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged(); return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Create, com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder, com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder> createBuilder_; /** * .daml_lf_2.Update.Create create = 3; * @return Whether the create field is set. */ @java.lang.Override public boolean hasCreate() { return sumCase_ == 3; } /** * .daml_lf_2.Update.Create create = 3; * @return The create. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Create getCreate() { if (createBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } else { if (sumCase_ == 3) { return createBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } } /** * .daml_lf_2.Update.Create create = 3; */ public Builder setCreate(com.daml.daml_lf_dev.DamlLf2.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_2.Update.Create create = 3; */ public Builder setCreate( com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder builderForValue) { if (createBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { createBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** * .daml_lf_2.Update.Create create = 3; */ public Builder mergeCreate(com.daml.daml_lf_dev.DamlLf2.Update.Create value) { if (createBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.Create.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Update.Create create = 3; */ public com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.Create create = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder getCreateOrBuilder() { if ((sumCase_ == 3) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } } /** * .daml_lf_2.Update.Create create = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Create, com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder, com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.Create.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Create, com.daml.daml_lf_dev.DamlLf2.Update.Create.Builder, com.daml.daml_lf_dev.DamlLf2.Update.CreateOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.Create) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged(); return createBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Exercise, com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder> exerciseBuilder_; /** * .daml_lf_2.Update.Exercise exercise = 4; * @return Whether the exercise field is set. */ @java.lang.Override public boolean hasExercise() { return sumCase_ == 4; } /** * .daml_lf_2.Update.Exercise exercise = 4; * @return The exercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Exercise getExercise() { if (exerciseBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } else { if (sumCase_ == 4) { return exerciseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } } /** * .daml_lf_2.Update.Exercise exercise = 4; */ public Builder setExercise(com.daml.daml_lf_dev.DamlLf2.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_2.Update.Exercise exercise = 4; */ public Builder setExercise( com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder builderForValue) { if (exerciseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { exerciseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_2.Update.Exercise exercise = 4; */ public Builder mergeExercise(com.daml.daml_lf_dev.DamlLf2.Update.Exercise value) { if (exerciseBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.Exercise.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Update.Exercise exercise = 4; */ public com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder getExerciseBuilder() { return getExerciseFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.Exercise exercise = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder getExerciseOrBuilder() { if ((sumCase_ == 4) && (exerciseBuilder_ != null)) { return exerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } } /** * .daml_lf_2.Update.Exercise exercise = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Exercise, com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder> getExerciseFieldBuilder() { if (exerciseBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.Exercise.getDefaultInstance(); } exerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Exercise, com.daml.daml_lf_dev.DamlLf2.Update.Exercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.Exercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged(); return exerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder> exerciseByKeyBuilder_; /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; * @return Whether the exerciseByKey field is set. */ @java.lang.Override public boolean hasExerciseByKey() { return sumCase_ == 10; } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; * @return The exerciseByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey getExerciseByKey() { if (exerciseByKeyBuilder_ == null) { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } else { if (sumCase_ == 10) { return exerciseByKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ public Builder setExerciseByKey(com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey value) { if (exerciseByKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { exerciseByKeyBuilder_.setMessage(value); } sumCase_ = 10; return this; } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ public Builder setExerciseByKey( com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder builderForValue) { if (exerciseByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { exerciseByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 10; return this; } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ public Builder mergeExerciseByKey(com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey value) { if (exerciseByKeyBuilder_ == null) { if (sumCase_ == 10 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.newBuilder((com.daml.daml_lf_dev.DamlLf2.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; } /** * .daml_lf_2.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; } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder getExerciseByKeyBuilder() { return getExerciseByKeyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder getExerciseByKeyOrBuilder() { if ((sumCase_ == 10) && (exerciseByKeyBuilder_ != null)) { return exerciseByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 10) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } } /** * .daml_lf_2.Update.ExerciseByKey exercise_by_key = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder> getExerciseByKeyFieldBuilder() { if (exerciseByKeyBuilder_ == null) { if (!(sumCase_ == 10)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.getDefaultInstance(); } exerciseByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKeyOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 10; onChanged(); return exerciseByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Fetch, com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder> fetchBuilder_; /** * .daml_lf_2.Update.Fetch fetch = 5; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return sumCase_ == 5; } /** * .daml_lf_2.Update.Fetch fetch = 5; * @return The fetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.Fetch getFetch() { if (fetchBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } else { if (sumCase_ == 5) { return fetchBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } } /** * .daml_lf_2.Update.Fetch fetch = 5; */ public Builder setFetch(com.daml.daml_lf_dev.DamlLf2.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_2.Update.Fetch fetch = 5; */ public Builder setFetch( com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder builderForValue) { if (fetchBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_2.Update.Fetch fetch = 5; */ public Builder mergeFetch(com.daml.daml_lf_dev.DamlLf2.Update.Fetch value) { if (fetchBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.Fetch.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Update.Fetch fetch = 5; */ public com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder getFetchBuilder() { return getFetchFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.Fetch fetch = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder getFetchOrBuilder() { if ((sumCase_ == 5) && (fetchBuilder_ != null)) { return fetchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } } /** * .daml_lf_2.Update.Fetch fetch = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Fetch, com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder> getFetchFieldBuilder() { if (fetchBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.Fetch.getDefaultInstance(); } fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.Fetch, com.daml.daml_lf_dev.DamlLf2.Update.Fetch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.FetchOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.Fetch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged(); return fetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getTimeBuilder_; /** * .daml_lf_2.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_2.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 6) { return getTimeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit get_time = 6; */ public Builder setGetTime(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (getTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { getTimeBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_2.Unit get_time = 6; */ public Builder setGetTime( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (getTimeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { getTimeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** * .daml_lf_2.Unit get_time = 6; */ public Builder mergeGetTime(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (getTimeBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Unit get_time = 6; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getGetTimeBuilder() { return getGetTimeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getGetTimeOrBuilder() { if ((sumCase_ == 6) && (getTimeBuilder_ != null)) { return getTimeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit get_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getGetTimeFieldBuilder() { if (getTimeBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } getTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged(); return getTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder> lookupByKeyBuilder_; /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; * @return Whether the lookupByKey field is set. */ @java.lang.Override public boolean hasLookupByKey() { return sumCase_ == 8; } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; * @return The lookupByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getLookupByKey() { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } else { if (sumCase_ == 8) { return lookupByKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; */ public Builder setLookupByKey(com.daml.daml_lf_dev.DamlLf2.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_2.Update.RetrieveByKey lookup_by_key = 8; */ public Builder setLookupByKey( com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder builderForValue) { if (lookupByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { lookupByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 8; return this; } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; */ public Builder mergeLookupByKey(com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey value) { if (lookupByKeyBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Update.RetrieveByKey lookup_by_key = 8; */ public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder getLookupByKeyBuilder() { return getLookupByKeyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder getLookupByKeyOrBuilder() { if ((sumCase_ == 8) && (lookupByKeyBuilder_ != null)) { return lookupByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_2.Update.RetrieveByKey lookup_by_key = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder> getLookupByKeyFieldBuilder() { if (lookupByKeyBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } lookupByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 8; onChanged(); return lookupByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder> fetchByKeyBuilder_; /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; * @return Whether the fetchByKey field is set. */ @java.lang.Override public boolean hasFetchByKey() { return sumCase_ == 9; } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; * @return The fetchByKey. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey getFetchByKey() { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } else { if (sumCase_ == 9) { return fetchByKeyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; */ public Builder setFetchByKey(com.daml.daml_lf_dev.DamlLf2.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_2.Update.RetrieveByKey fetch_by_key = 9; */ public Builder setFetchByKey( com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder builderForValue) { if (fetchByKeyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchByKeyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 9; return this; } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; */ public Builder mergeFetchByKey(com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey value) { if (fetchByKeyBuilder_ == null) { if (sumCase_ == 9 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Update.RetrieveByKey fetch_by_key = 9; */ public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder getFetchByKeyBuilder() { return getFetchByKeyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder getFetchByKeyOrBuilder() { if ((sumCase_ == 9) && (fetchByKeyBuilder_ != null)) { return fetchByKeyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 9) { return (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } } /** * .daml_lf_2.Update.RetrieveByKey fetch_by_key = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder> getFetchByKeyFieldBuilder() { if (fetchByKeyBuilder_ == null) { if (!(sumCase_ == 9)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.getDefaultInstance(); } fetchByKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey.Builder, com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKeyOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.RetrieveByKey) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 9; onChanged(); return fetchByKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder> embedExprBuilder_; /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; * @return Whether the embedExpr field is set. */ @java.lang.Override public boolean hasEmbedExpr() { return sumCase_ == 7; } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr getEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } else { if (sumCase_ == 7) { return embedExprBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ public Builder setEmbedExpr(com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr value) { if (embedExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { embedExprBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ public Builder setEmbedExpr( com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder builderForValue) { if (embedExprBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { embedExprBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ public Builder mergeEmbedExpr(com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr value) { if (embedExprBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.newBuilder((com.daml.daml_lf_dev.DamlLf2.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; } /** * .daml_lf_2.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; } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder getEmbedExprBuilder() { return getEmbedExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder getEmbedExprOrBuilder() { if ((sumCase_ == 7) && (embedExprBuilder_ != null)) { return embedExprBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } } /** * .daml_lf_2.Update.EmbedExpr embed_expr = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder> getEmbedExprFieldBuilder() { if (embedExprBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.getDefaultInstance(); } embedExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf2.Update.EmbedExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.EmbedExpr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged(); return embedExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.TryCatch, com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder> tryCatchBuilder_; /** * .daml_lf_2.Update.TryCatch try_catch = 11; * @return Whether the tryCatch field is set. */ @java.lang.Override public boolean hasTryCatch() { return sumCase_ == 11; } /** * .daml_lf_2.Update.TryCatch try_catch = 11; * @return The tryCatch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatch getTryCatch() { if (tryCatchBuilder_ == null) { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } else { if (sumCase_ == 11) { return tryCatchBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ public Builder setTryCatch(com.daml.daml_lf_dev.DamlLf2.Update.TryCatch value) { if (tryCatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { tryCatchBuilder_.setMessage(value); } sumCase_ = 11; return this; } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ public Builder setTryCatch( com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder builderForValue) { if (tryCatchBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { tryCatchBuilder_.setMessage(builderForValue.build()); } sumCase_ = 11; return this; } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ public Builder mergeTryCatch(com.daml.daml_lf_dev.DamlLf2.Update.TryCatch value) { if (tryCatchBuilder_ == null) { if (sumCase_ == 11 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.newBuilder((com.daml.daml_lf_dev.DamlLf2.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; } /** * .daml_lf_2.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; } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ public com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder getTryCatchBuilder() { return getTryCatchFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder getTryCatchOrBuilder() { if ((sumCase_ == 11) && (tryCatchBuilder_ != null)) { return tryCatchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 11) { return (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } } /** * .daml_lf_2.Update.TryCatch try_catch = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.TryCatch, com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder> getTryCatchFieldBuilder() { if (tryCatchBuilder_ == null) { if (!(sumCase_ == 11)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.getDefaultInstance(); } tryCatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.TryCatch, com.daml.daml_lf_dev.DamlLf2.Update.TryCatch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.TryCatchOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.TryCatch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 11; onChanged(); return tryCatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder> createInterfaceBuilder_; /** * .daml_lf_2.Update.CreateInterface create_interface = 12; * @return Whether the createInterface field is set. */ @java.lang.Override public boolean hasCreateInterface() { return sumCase_ == 12; } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; * @return The createInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface getCreateInterface() { if (createInterfaceBuilder_ == null) { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } else { if (sumCase_ == 12) { return createInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ public Builder setCreateInterface(com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface value) { if (createInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { createInterfaceBuilder_.setMessage(value); } sumCase_ = 12; return this; } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ public Builder setCreateInterface( com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder builderForValue) { if (createInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { createInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 12; return this; } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ public Builder mergeCreateInterface(com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface value) { if (createInterfaceBuilder_ == null) { if (sumCase_ == 12 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.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; } /** * .daml_lf_2.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; } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder getCreateInterfaceBuilder() { return getCreateInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder getCreateInterfaceOrBuilder() { if ((sumCase_ == 12) && (createInterfaceBuilder_ != null)) { return createInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 12) { return (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } } /** * .daml_lf_2.Update.CreateInterface create_interface = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder> getCreateInterfaceFieldBuilder() { if (createInterfaceBuilder_ == null) { if (!(sumCase_ == 12)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.getDefaultInstance(); } createInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.CreateInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.CreateInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 12; onChanged(); return createInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder> exerciseInterfaceBuilder_; /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; * @return Whether the exerciseInterface field is set. */ @java.lang.Override public boolean hasExerciseInterface() { return sumCase_ == 13; } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; * @return The exerciseInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface getExerciseInterface() { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } else { if (sumCase_ == 13) { return exerciseInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ public Builder setExerciseInterface(com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface value) { if (exerciseInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { exerciseInterfaceBuilder_.setMessage(value); } sumCase_ = 13; return this; } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ public Builder setExerciseInterface( com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder builderForValue) { if (exerciseInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { exerciseInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 13; return this; } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ public Builder mergeExerciseInterface(com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface value) { if (exerciseInterfaceBuilder_ == null) { if (sumCase_ == 13 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.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; } /** * .daml_lf_2.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; } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder getExerciseInterfaceBuilder() { return getExerciseInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder getExerciseInterfaceOrBuilder() { if ((sumCase_ == 13) && (exerciseInterfaceBuilder_ != null)) { return exerciseInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 13) { return (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } } /** * .daml_lf_2.Update.ExerciseInterface exercise_interface = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder> getExerciseInterfaceFieldBuilder() { if (exerciseInterfaceBuilder_ == null) { if (!(sumCase_ == 13)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.getDefaultInstance(); } exerciseInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.ExerciseInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 13; onChanged(); return exerciseInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder> fetchInterfaceBuilder_; /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; * @return Whether the fetchInterface field is set. */ @java.lang.Override public boolean hasFetchInterface() { return sumCase_ == 14; } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; * @return The fetchInterface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface getFetchInterface() { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } else { if (sumCase_ == 14) { return fetchInterfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ public Builder setFetchInterface(com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface value) { if (fetchInterfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { fetchInterfaceBuilder_.setMessage(value); } sumCase_ = 14; return this; } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ public Builder setFetchInterface( com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder builderForValue) { if (fetchInterfaceBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { fetchInterfaceBuilder_.setMessage(builderForValue.build()); } sumCase_ = 14; return this; } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ public Builder mergeFetchInterface(com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface value) { if (fetchInterfaceBuilder_ == null) { if (sumCase_ == 14 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.newBuilder((com.daml.daml_lf_dev.DamlLf2.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; } /** * .daml_lf_2.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; } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder getFetchInterfaceBuilder() { return getFetchInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder getFetchInterfaceOrBuilder() { if ((sumCase_ == 14) && (fetchInterfaceBuilder_ != null)) { return fetchInterfaceBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 14) { return (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } } /** * .daml_lf_2.Update.FetchInterface fetch_interface = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder> getFetchInterfaceFieldBuilder() { if (fetchInterfaceBuilder_ == null) { if (!(sumCase_ == 14)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.getDefaultInstance(); } fetchInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface.Builder, com.daml.daml_lf_dev.DamlLf2.Update.FetchInterfaceOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.FetchInterface) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 14; onChanged(); return fetchInterfaceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder> dynamicExerciseBuilder_; /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; * @return Whether the dynamicExercise field is set. */ @java.lang.Override public boolean hasDynamicExercise() { return sumCase_ == 1001; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; * @return The dynamicExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise getDynamicExercise() { if (dynamicExerciseBuilder_ == null) { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } else { if (sumCase_ == 1001) { return dynamicExerciseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ public Builder setDynamicExercise(com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise value) { if (dynamicExerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { dynamicExerciseBuilder_.setMessage(value); } sumCase_ = 1001; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ public Builder setDynamicExercise( com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder builderForValue) { if (dynamicExerciseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { dynamicExerciseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1001; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ public Builder mergeDynamicExercise(com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise value) { if (dynamicExerciseBuilder_ == null) { if (sumCase_ == 1001 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.newBuilder((com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1001) { dynamicExerciseBuilder_.mergeFrom(value); } else { dynamicExerciseBuilder_.setMessage(value); } } sumCase_ = 1001; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ public Builder clearDynamicExercise() { if (dynamicExerciseBuilder_ == null) { if (sumCase_ == 1001) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1001) { sumCase_ = 0; sum_ = null; } dynamicExerciseBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder getDynamicExerciseBuilder() { return getDynamicExerciseFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder getDynamicExerciseOrBuilder() { if ((sumCase_ == 1001) && (dynamicExerciseBuilder_ != null)) { return dynamicExerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1001) { return (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.DynamicExercise dynamic_exercise = 1001; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder> getDynamicExerciseFieldBuilder() { if (dynamicExerciseBuilder_ == null) { if (!(sumCase_ == 1001)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.getDefaultInstance(); } dynamicExerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.DynamicExerciseOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.DynamicExercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1001; onChanged(); return dynamicExerciseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder> softFetchBuilder_; /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; * @return Whether the softFetch field is set. */ @java.lang.Override public boolean hasSoftFetch() { return sumCase_ == 1002; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; * @return The softFetch. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch getSoftFetch() { if (softFetchBuilder_ == null) { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } else { if (sumCase_ == 1002) { return softFetchBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ public Builder setSoftFetch(com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch value) { if (softFetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { softFetchBuilder_.setMessage(value); } sumCase_ = 1002; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ public Builder setSoftFetch( com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder builderForValue) { if (softFetchBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { softFetchBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1002; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ public Builder mergeSoftFetch(com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch value) { if (softFetchBuilder_ == null) { if (sumCase_ == 1002 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.newBuilder((com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1002) { softFetchBuilder_.mergeFrom(value); } else { softFetchBuilder_.setMessage(value); } } sumCase_ = 1002; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ public Builder clearSoftFetch() { if (softFetchBuilder_ == null) { if (sumCase_ == 1002) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1002) { sumCase_ = 0; sum_ = null; } softFetchBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder getSoftFetchBuilder() { return getSoftFetchFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder getSoftFetchOrBuilder() { if ((sumCase_ == 1002) && (softFetchBuilder_ != null)) { return softFetchBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1002) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftFetch soft_fetch = 1002; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder> getSoftFetchFieldBuilder() { if (softFetchBuilder_ == null) { if (!(sumCase_ == 1002)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.getDefaultInstance(); } softFetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch.Builder, com.daml.daml_lf_dev.DamlLf2.Update.SoftFetchOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.SoftFetch) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1002; onChanged(); return softFetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise, com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder> softExerciseBuilder_; /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; * @return Whether the softExercise field is set. */ @java.lang.Override public boolean hasSoftExercise() { return sumCase_ == 1003; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; * @return The softExercise. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise getSoftExercise() { if (softExerciseBuilder_ == null) { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance(); } else { if (sumCase_ == 1003) { return softExerciseBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ public Builder setSoftExercise(com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise value) { if (softExerciseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { softExerciseBuilder_.setMessage(value); } sumCase_ = 1003; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ public Builder setSoftExercise( com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder builderForValue) { if (softExerciseBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { softExerciseBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1003; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ public Builder mergeSoftExercise(com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise value) { if (softExerciseBuilder_ == null) { if (sumCase_ == 1003 && sum_ != com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.newBuilder((com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) sum_) .mergeFrom(value).buildPartial(); } else { sum_ = value; } onChanged(); } else { if (sumCase_ == 1003) { softExerciseBuilder_.mergeFrom(value); } else { softExerciseBuilder_.setMessage(value); } } sumCase_ = 1003; return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ public Builder clearSoftExercise() { if (softExerciseBuilder_ == null) { if (sumCase_ == 1003) { sumCase_ = 0; sum_ = null; onChanged(); } } else { if (sumCase_ == 1003) { sumCase_ = 0; sum_ = null; } softExerciseBuilder_.clear(); } return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ public com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder getSoftExerciseBuilder() { return getSoftExerciseFieldBuilder().getBuilder(); } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder getSoftExerciseOrBuilder() { if ((sumCase_ == 1003) && (softExerciseBuilder_ != null)) { return softExerciseBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1003) { return (com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) sum_; } return com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance(); } } /** *
       * *Available in versions >= 2.dev*
       * 
* * .daml_lf_2.Update.SoftExercise soft_exercise = 1003; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise, com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder> getSoftExerciseFieldBuilder() { if (softExerciseBuilder_ == null) { if (!(sumCase_ == 1003)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.getDefaultInstance(); } softExerciseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise, com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise.Builder, com.daml.daml_lf_dev.DamlLf2.Update.SoftExerciseOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Update.SoftExercise) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1003; 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_2.Update) } // @@protoc_insertion_point(class_scope:daml_lf_2.Update) private static final com.daml.daml_lf_dev.DamlLf2.Update DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Update(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Update getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScenarioOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Scenario) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Pure pure = 1; * @return Whether the pure field is set. */ boolean hasPure(); /** * .daml_lf_2.Pure pure = 1; * @return The pure. */ com.daml.daml_lf_dev.DamlLf2.Pure getPure(); /** * .daml_lf_2.Pure pure = 1; */ com.daml.daml_lf_dev.DamlLf2.PureOrBuilder getPureOrBuilder(); /** * .daml_lf_2.Block block = 2; * @return Whether the block field is set. */ boolean hasBlock(); /** * .daml_lf_2.Block block = 2; * @return The block. */ com.daml.daml_lf_dev.DamlLf2.Block getBlock(); /** * .daml_lf_2.Block block = 2; */ com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getBlockOrBuilder(); /** * .daml_lf_2.Scenario.Commit commit = 3; * @return Whether the commit field is set. */ boolean hasCommit(); /** * .daml_lf_2.Scenario.Commit commit = 3; * @return The commit. */ com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getCommit(); /** * .daml_lf_2.Scenario.Commit commit = 3; */ com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder getCommitOrBuilder(); /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; * @return Whether the mustFailAt field is set. */ boolean hasMustFailAt(); /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; * @return The mustFailAt. */ com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getMustFailAt(); /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; */ com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder getMustFailAtOrBuilder(); /** * .daml_lf_2.Expr pass = 5; * @return Whether the pass field is set. */ boolean hasPass(); /** * .daml_lf_2.Expr pass = 5; * @return The pass. */ com.daml.daml_lf_dev.DamlLf2.Expr getPass(); /** * .daml_lf_2.Expr pass = 5; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPassOrBuilder(); /** * .daml_lf_2.Unit get_time = 6; * @return Whether the getTime field is set. */ boolean hasGetTime(); /** * .daml_lf_2.Unit get_time = 6; * @return The getTime. */ com.daml.daml_lf_dev.DamlLf2.Unit getGetTime(); /** * .daml_lf_2.Unit get_time = 6; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getGetTimeOrBuilder(); /** * .daml_lf_2.Expr get_party = 7; * @return Whether the getParty field is set. */ boolean hasGetParty(); /** * .daml_lf_2.Expr get_party = 7; * @return The getParty. */ com.daml.daml_lf_dev.DamlLf2.Expr getGetParty(); /** * .daml_lf_2.Expr get_party = 7; */ com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Scenario.EmbedExpr embed_expr = 8; * @return The embedExpr. */ com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder(); com.daml.daml_lf_dev.DamlLf2.Scenario.SumCase getSumCase(); } /** *
   * Scenario actions
   * 
* * Protobuf type {@code daml_lf_2.Scenario} */ public static final class Scenario extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Scenario_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Scenario.class, com.daml.daml_lf_dev.DamlLf2.Scenario.Builder.class); } public interface CommitOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Scenario.Commit) com.google.protobuf.MessageOrBuilder { /** *
       * committing party
       * 
* * .daml_lf_2.Expr party = 1; * @return Whether the party field is set. */ boolean hasParty(); /** *
       * committing party
       * 
* * .daml_lf_2.Expr party = 1; * @return The party. */ com.daml.daml_lf_dev.DamlLf2.Expr getParty(); /** *
       * committing party
       * 
* * .daml_lf_2.Expr party = 1; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPartyOrBuilder(); /** *
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ boolean hasExpr(); /** *
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** *
       * 
* * .daml_lf_2.Expr expr = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); /** *
       * type of result
       * 
* * .daml_lf_2.Type ret_type = 3; * @return Whether the retType field is set. */ boolean hasRetType(); /** *
       * type of result
       * 
* * .daml_lf_2.Type ret_type = 3; * @return The retType. */ com.daml.daml_lf_dev.DamlLf2.Type getRetType(); /** *
       * type of result
       * 
* * .daml_lf_2.Type ret_type = 3; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getRetTypeOrBuilder(); } /** * Protobuf type {@code daml_lf_2.Scenario.Commit} */ public static final class Commit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Scenario_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.class, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder.class); } private int bitField0_; public static final int PARTY_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Expr party_; /** *
       * committing party
       * 
* * .daml_lf_2.Expr party = 1; * @return Whether the party field is set. */ @java.lang.Override public boolean hasParty() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * committing party
       * 
* * .daml_lf_2.Expr party = 1; * @return The party. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getParty() { return party_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : party_; } /** *
       * committing party
       * 
* * .daml_lf_2.Expr party = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPartyOrBuilder() { return party_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : party_; } public static final int EXPR_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** *
       * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** *
       * 
* * .daml_lf_2.Expr expr = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } public static final int RET_TYPE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Type retType_; /** *
       * type of result
       * 
* * .daml_lf_2.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_2.Type ret_type = 3; * @return The retType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getRetType() { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } /** *
       * type of result
       * 
* * .daml_lf_2.Type ret_type = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getRetTypeOrBuilder() { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.Commit)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Scenario.Commit other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.Commit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.Commit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.Commit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Scenario.Commit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Scenario.Commit) com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.class, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Scenario_Commit_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit build() { com.daml.daml_lf_dev.DamlLf2.Scenario.Commit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit buildPartial() { com.daml.daml_lf_dev.DamlLf2.Scenario.Commit result = new com.daml.daml_lf_dev.DamlLf2.Scenario.Commit(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.Commit) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Scenario.Commit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Scenario.Commit other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr party_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> partyBuilder_; /** *
         * committing party
         * 
* * .daml_lf_2.Expr party = 1; * @return Whether the party field is set. */ public boolean hasParty() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * committing party
         * 
* * .daml_lf_2.Expr party = 1; * @return The party. */ public com.daml.daml_lf_dev.DamlLf2.Expr getParty() { if (partyBuilder_ == null) { return party_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : party_; } else { return partyBuilder_.getMessage(); } } /** *
         * committing party
         * 
* * .daml_lf_2.Expr party = 1; */ public Builder setParty(com.daml.daml_lf_dev.DamlLf2.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_2.Expr party = 1; */ public Builder setParty( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (partyBuilder_ == null) { party_ = builderForValue.build(); } else { partyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * committing party
         * 
* * .daml_lf_2.Expr party = 1; */ public Builder mergeParty(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (partyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && party_ != null && party_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getPartyBuilder().mergeFrom(value); } else { party_ = value; } } else { partyBuilder_.mergeFrom(value); } if (party_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * committing party
         * 
* * .daml_lf_2.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_2.Expr party = 1; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getPartyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPartyFieldBuilder().getBuilder(); } /** *
         * committing party
         * 
* * .daml_lf_2.Expr party = 1; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPartyOrBuilder() { if (partyBuilder_ != null) { return partyBuilder_.getMessageOrBuilder(); } else { return party_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : party_; } } /** *
         * committing party
         * 
* * .daml_lf_2.Expr party = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getPartyFieldBuilder() { if (partyBuilder_ == null) { partyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getParty(), getParentForChildren(), isClean()); party_ = null; } return partyBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** *
         * 
* * .daml_lf_2.Expr expr = 2; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * 
* * .daml_lf_2.Expr expr = 2; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000002); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExprFieldBuilder().getBuilder(); } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** *
         * 
* * .daml_lf_2.Expr expr = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Type retType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> retTypeBuilder_; /** *
         * type of result
         * 
* * .daml_lf_2.Type ret_type = 3; * @return Whether the retType field is set. */ public boolean hasRetType() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * type of result
         * 
* * .daml_lf_2.Type ret_type = 3; * @return The retType. */ public com.daml.daml_lf_dev.DamlLf2.Type getRetType() { if (retTypeBuilder_ == null) { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } else { return retTypeBuilder_.getMessage(); } } /** *
         * type of result
         * 
* * .daml_lf_2.Type ret_type = 3; */ public Builder setRetType(com.daml.daml_lf_dev.DamlLf2.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_2.Type ret_type = 3; */ public Builder setRetType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (retTypeBuilder_ == null) { retType_ = builderForValue.build(); } else { retTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * type of result
         * 
* * .daml_lf_2.Type ret_type = 3; */ public Builder mergeRetType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (retTypeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && retType_ != null && retType_ != com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type ret_type = 3; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getRetTypeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRetTypeFieldBuilder().getBuilder(); } /** *
         * type of result
         * 
* * .daml_lf_2.Type ret_type = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getRetTypeOrBuilder() { if (retTypeBuilder_ != null) { return retTypeBuilder_.getMessageOrBuilder(); } else { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } } /** *
         * type of result
         * 
* * .daml_lf_2.Type ret_type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getRetTypeFieldBuilder() { if (retTypeBuilder_ == null) { retTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.Commit) } // @@protoc_insertion_point(class_scope:daml_lf_2.Scenario.Commit) private static final com.daml.daml_lf_dev.DamlLf2.Scenario.Commit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Scenario.Commit(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.Commit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbedExprOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Scenario.EmbedExpr) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_2.Expr body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.Expr getBody(); /** * .daml_lf_2.Expr body = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder(); } /** * Protobuf type {@code daml_lf_2.Scenario.EmbedExpr} */ public static final class EmbedExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Scenario_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr body_; /** * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } /** * .daml_lf_2.Expr body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.EmbedExpr)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.EmbedExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.EmbedExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.EmbedExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Scenario.EmbedExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Scenario.EmbedExpr) com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_EmbedExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_EmbedExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.class, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Scenario_EmbedExpr_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr build() { com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr buildPartial() { com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr result = new com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario.EmbedExpr) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> bodyBuilder_; /** * .daml_lf_2.Expr body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.Expr getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_2.Expr body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr body = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : body_; } } /** * .daml_lf_2.Expr body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr) } // @@protoc_insertion_point(class_scope:daml_lf_2.Scenario.EmbedExpr) private static final com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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_2.Pure pure = 1; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_2.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure getPure() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } /** * .daml_lf_2.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PureOrBuilder getPureOrBuilder() { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } public static final int BLOCK_FIELD_NUMBER = 2; /** * .daml_lf_2.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_2.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getBlock() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } /** * .daml_lf_2.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getBlockOrBuilder() { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 3; /** * .daml_lf_2.Scenario.Commit commit = 3; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return sumCase_ == 3; } /** * .daml_lf_2.Scenario.Commit commit = 3; * @return The commit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getCommit() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } /** * .daml_lf_2.Scenario.Commit commit = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder getCommitOrBuilder() { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } public static final int MUSTFAILAT_FIELD_NUMBER = 4; /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; * @return Whether the mustFailAt field is set. */ @java.lang.Override public boolean hasMustFailAt() { return sumCase_ == 4; } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; * @return The mustFailAt. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getMustFailAt() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder getMustFailAtOrBuilder() { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } public static final int PASS_FIELD_NUMBER = 5; /** * .daml_lf_2.Expr pass = 5; * @return Whether the pass field is set. */ @java.lang.Override public boolean hasPass() { return sumCase_ == 5; } /** * .daml_lf_2.Expr pass = 5; * @return The pass. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getPass() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } /** * .daml_lf_2.Expr pass = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPassOrBuilder() { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } public static final int GET_TIME_FIELD_NUMBER = 6; /** * .daml_lf_2.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_2.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getGetTime() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** * .daml_lf_2.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getGetTimeOrBuilder() { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } public static final int GET_PARTY_FIELD_NUMBER = 7; /** * .daml_lf_2.Expr get_party = 7; * @return Whether the getParty field is set. */ @java.lang.Override public boolean hasGetParty() { return sumCase_ == 7; } /** * .daml_lf_2.Expr get_party = 7; * @return The getParty. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getGetParty() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } /** * .daml_lf_2.Expr get_party = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getGetPartyOrBuilder() { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Scenario.EmbedExpr embed_expr = 8; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr getEmbedExpr() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder() { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure) sum_); } if (sumCase_ == 2) { output.writeMessage(2, (com.daml.daml_lf_dev.DamlLf2.Block) sum_); } if (sumCase_ == 3) { output.writeMessage(3, (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_); } if (sumCase_ == 4) { output.writeMessage(4, (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_); } if (sumCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf2.Expr) sum_); } if (sumCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf2.Expr) sum_); } if (sumCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure) sum_); } if (sumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.daml.daml_lf_dev.DamlLf2.Block) sum_); } if (sumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_); } if (sumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_); } if (sumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf2.Expr) sum_); } if (sumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf2.Unit) sum_); } if (sumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf2.Expr) sum_); } if (sumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Scenario other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Scenario} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Scenario) com.daml.daml_lf_dev.DamlLf2.ScenarioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Scenario_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Scenario.class, com.daml.daml_lf_dev.DamlLf2.Scenario.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Scenario_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Scenario.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario build() { com.daml.daml_lf_dev.DamlLf2.Scenario result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario buildPartial() { com.daml.daml_lf_dev.DamlLf2.Scenario result = new com.daml.daml_lf_dev.DamlLf2.Scenario(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Scenario result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Scenario)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Scenario other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Pure, com.daml.daml_lf_dev.DamlLf2.Pure.Builder, com.daml.daml_lf_dev.DamlLf2.PureOrBuilder> pureBuilder_; /** * .daml_lf_2.Pure pure = 1; * @return Whether the pure field is set. */ @java.lang.Override public boolean hasPure() { return sumCase_ == 1; } /** * .daml_lf_2.Pure pure = 1; * @return The pure. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Pure getPure() { if (pureBuilder_ == null) { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } else { if (sumCase_ == 1) { return pureBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } } /** * .daml_lf_2.Pure pure = 1; */ public Builder setPure(com.daml.daml_lf_dev.DamlLf2.Pure value) { if (pureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { pureBuilder_.setMessage(value); } sumCase_ = 1; return this; } /** * .daml_lf_2.Pure pure = 1; */ public Builder setPure( com.daml.daml_lf_dev.DamlLf2.Pure.Builder builderForValue) { if (pureBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { pureBuilder_.setMessage(builderForValue.build()); } sumCase_ = 1; return this; } /** * .daml_lf_2.Pure pure = 1; */ public Builder mergePure(com.daml.daml_lf_dev.DamlLf2.Pure value) { if (pureBuilder_ == null) { if (sumCase_ == 1 && sum_ != com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Pure.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Pure pure = 1; */ public com.daml.daml_lf_dev.DamlLf2.Pure.Builder getPureBuilder() { return getPureFieldBuilder().getBuilder(); } /** * .daml_lf_2.Pure pure = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PureOrBuilder getPureOrBuilder() { if ((sumCase_ == 1) && (pureBuilder_ != null)) { return pureBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 1) { return (com.daml.daml_lf_dev.DamlLf2.Pure) sum_; } return com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } } /** * .daml_lf_2.Pure pure = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Pure, com.daml.daml_lf_dev.DamlLf2.Pure.Builder, com.daml.daml_lf_dev.DamlLf2.PureOrBuilder> getPureFieldBuilder() { if (pureBuilder_ == null) { if (!(sumCase_ == 1)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Pure.getDefaultInstance(); } pureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Pure, com.daml.daml_lf_dev.DamlLf2.Pure.Builder, com.daml.daml_lf_dev.DamlLf2.PureOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Pure) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 1; onChanged(); return pureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder> blockBuilder_; /** * .daml_lf_2.Block block = 2; * @return Whether the block field is set. */ @java.lang.Override public boolean hasBlock() { return sumCase_ == 2; } /** * .daml_lf_2.Block block = 2; * @return The block. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Block getBlock() { if (blockBuilder_ == null) { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } else { if (sumCase_ == 2) { return blockBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } } /** * .daml_lf_2.Block block = 2; */ public Builder setBlock(com.daml.daml_lf_dev.DamlLf2.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } sumCase_ = 2; return this; } /** * .daml_lf_2.Block block = 2; */ public Builder setBlock( com.daml.daml_lf_dev.DamlLf2.Block.Builder builderForValue) { if (blockBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } sumCase_ = 2; return this; } /** * .daml_lf_2.Block block = 2; */ public Builder mergeBlock(com.daml.daml_lf_dev.DamlLf2.Block value) { if (blockBuilder_ == null) { if (sumCase_ == 2 && sum_ != com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Block.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Block block = 2; */ public com.daml.daml_lf_dev.DamlLf2.Block.Builder getBlockBuilder() { return getBlockFieldBuilder().getBuilder(); } /** * .daml_lf_2.Block block = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder getBlockOrBuilder() { if ((sumCase_ == 2) && (blockBuilder_ != null)) { return blockBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 2) { return (com.daml.daml_lf_dev.DamlLf2.Block) sum_; } return com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } } /** * .daml_lf_2.Block block = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { if (!(sumCase_ == 2)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Block.getDefaultInstance(); } blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Block, com.daml.daml_lf_dev.DamlLf2.Block.Builder, com.daml.daml_lf_dev.DamlLf2.BlockOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Block) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 2; onChanged(); return blockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.Commit, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder> commitBuilder_; /** * .daml_lf_2.Scenario.Commit commit = 3; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return sumCase_ == 3; } /** * .daml_lf_2.Scenario.Commit commit = 3; * @return The commit. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getCommit() { if (commitBuilder_ == null) { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } else { if (sumCase_ == 3) { return commitBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_2.Scenario.Commit commit = 3; */ public Builder setCommit(com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.Commit commit = 3; */ public Builder setCommit( com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder builderForValue) { if (commitBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { commitBuilder_.setMessage(builderForValue.build()); } sumCase_ = 3; return this; } /** * .daml_lf_2.Scenario.Commit commit = 3; */ public Builder mergeCommit(com.daml.daml_lf_dev.DamlLf2.Scenario.Commit value) { if (commitBuilder_ == null) { if (sumCase_ == 3 && sum_ != com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Scenario.Commit commit = 3; */ public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** * .daml_lf_2.Scenario.Commit commit = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder getCommitOrBuilder() { if ((sumCase_ == 3) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 3) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_2.Scenario.Commit commit = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.Commit, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(sumCase_ == 3)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.Commit, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 3; onChanged(); return commitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.Commit, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder> mustFailAtBuilder_; /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; * @return Whether the mustFailAt field is set. */ @java.lang.Override public boolean hasMustFailAt() { return sumCase_ == 4; } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; * @return The mustFailAt. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit getMustFailAt() { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } else { if (sumCase_ == 4) { return mustFailAtBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; */ public Builder setMustFailAt(com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.Commit mustFailAt = 4; */ public Builder setMustFailAt( com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder builderForValue) { if (mustFailAtBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { mustFailAtBuilder_.setMessage(builderForValue.build()); } sumCase_ = 4; return this; } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; */ public Builder mergeMustFailAt(com.daml.daml_lf_dev.DamlLf2.Scenario.Commit value) { if (mustFailAtBuilder_ == null) { if (sumCase_ == 4 && sum_ != com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Scenario.Commit mustFailAt = 4; */ public com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder getMustFailAtBuilder() { return getMustFailAtFieldBuilder().getBuilder(); } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder getMustFailAtOrBuilder() { if ((sumCase_ == 4) && (mustFailAtBuilder_ != null)) { return mustFailAtBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 4) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } } /** * .daml_lf_2.Scenario.Commit mustFailAt = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.Commit, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder> getMustFailAtFieldBuilder() { if (mustFailAtBuilder_ == null) { if (!(sumCase_ == 4)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.getDefaultInstance(); } mustFailAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.Commit, com.daml.daml_lf_dev.DamlLf2.Scenario.Commit.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.CommitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Scenario.Commit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 4; onChanged(); return mustFailAtBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> passBuilder_; /** * .daml_lf_2.Expr pass = 5; * @return Whether the pass field is set. */ @java.lang.Override public boolean hasPass() { return sumCase_ == 5; } /** * .daml_lf_2.Expr pass = 5; * @return The pass. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getPass() { if (passBuilder_ == null) { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } else { if (sumCase_ == 5) { return passBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } } /** * .daml_lf_2.Expr pass = 5; */ public Builder setPass(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (passBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { passBuilder_.setMessage(value); } sumCase_ = 5; return this; } /** * .daml_lf_2.Expr pass = 5; */ public Builder setPass( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (passBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { passBuilder_.setMessage(builderForValue.build()); } sumCase_ = 5; return this; } /** * .daml_lf_2.Expr pass = 5; */ public Builder mergePass(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (passBuilder_ == null) { if (sumCase_ == 5 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr pass = 5; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getPassBuilder() { return getPassFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr pass = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPassOrBuilder() { if ((sumCase_ == 5) && (passBuilder_ != null)) { return passBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } } /** * .daml_lf_2.Expr pass = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getPassFieldBuilder() { if (passBuilder_ == null) { if (!(sumCase_ == 5)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } passBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 5; onChanged(); return passBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getTimeBuilder_; /** * .daml_lf_2.Unit get_time = 6; * @return Whether the getTime field is set. */ @java.lang.Override public boolean hasGetTime() { return sumCase_ == 6; } /** * .daml_lf_2.Unit get_time = 6; * @return The getTime. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getGetTime() { if (getTimeBuilder_ == null) { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (sumCase_ == 6) { return getTimeBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit get_time = 6; */ public Builder setGetTime(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (getTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { getTimeBuilder_.setMessage(value); } sumCase_ = 6; return this; } /** * .daml_lf_2.Unit get_time = 6; */ public Builder setGetTime( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (getTimeBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { getTimeBuilder_.setMessage(builderForValue.build()); } sumCase_ = 6; return this; } /** * .daml_lf_2.Unit get_time = 6; */ public Builder mergeGetTime(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (getTimeBuilder_ == null) { if (sumCase_ == 6 && sum_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Unit get_time = 6; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getGetTimeBuilder() { return getGetTimeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Unit get_time = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getGetTimeOrBuilder() { if ((sumCase_ == 6) && (getTimeBuilder_ != null)) { return getTimeBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.Unit) sum_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** * .daml_lf_2.Unit get_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getGetTimeFieldBuilder() { if (getTimeBuilder_ == null) { if (!(sumCase_ == 6)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } getTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 6; onChanged(); return getTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getPartyBuilder_; /** * .daml_lf_2.Expr get_party = 7; * @return Whether the getParty field is set. */ @java.lang.Override public boolean hasGetParty() { return sumCase_ == 7; } /** * .daml_lf_2.Expr get_party = 7; * @return The getParty. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getGetParty() { if (getPartyBuilder_ == null) { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } else { if (sumCase_ == 7) { return getPartyBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } } /** * .daml_lf_2.Expr get_party = 7; */ public Builder setGetParty(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (getPartyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sum_ = value; onChanged(); } else { getPartyBuilder_.setMessage(value); } sumCase_ = 7; return this; } /** * .daml_lf_2.Expr get_party = 7; */ public Builder setGetParty( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (getPartyBuilder_ == null) { sum_ = builderForValue.build(); onChanged(); } else { getPartyBuilder_.setMessage(builderForValue.build()); } sumCase_ = 7; return this; } /** * .daml_lf_2.Expr get_party = 7; */ public Builder mergeGetParty(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (getPartyBuilder_ == null) { if (sumCase_ == 7 && sum_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Expr get_party = 7; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getGetPartyBuilder() { return getGetPartyFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr get_party = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getGetPartyOrBuilder() { if ((sumCase_ == 7) && (getPartyBuilder_ != null)) { return getPartyBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.Expr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } } /** * .daml_lf_2.Expr get_party = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getGetPartyFieldBuilder() { if (getPartyBuilder_ == null) { if (!(sumCase_ == 7)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance(); } getPartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Expr) sum_, getParentForChildren(), isClean()); sum_ = null; } sumCase_ = 7; onChanged(); return getPartyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Scenario.EmbedExpr embed_expr = 8; * @return The embedExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr getEmbedExpr() { if (embedExprBuilder_ == null) { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.getDefaultInstance(); } else { if (sumCase_ == 8) { return embedExprBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ public Builder setEmbedExpr(com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ public Builder setEmbedExpr( com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ public Builder mergeEmbedExpr(com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr value) { if (embedExprBuilder_ == null) { if (sumCase_ == 8 && sum_ != com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.getDefaultInstance()) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Scenario.EmbedExpr embed_expr = 8; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExprOrBuilder getEmbedExprOrBuilder() { if ((sumCase_ == 8) && (embedExprBuilder_ != null)) { return embedExprBuilder_.getMessageOrBuilder(); } else { if (sumCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr) sum_; } return com.daml.daml_lf_dev.DamlLf2.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_2.Scenario.EmbedExpr embed_expr = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExprOrBuilder> getEmbedExprFieldBuilder() { if (embedExprBuilder_ == null) { if (!(sumCase_ == 8)) { sum_ = com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.getDefaultInstance(); } embedExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExpr.Builder, com.daml.daml_lf_dev.DamlLf2.Scenario.EmbedExprOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.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_2.Scenario) } // @@protoc_insertion_point(class_scope:daml_lf_2.Scenario) private static final com.daml.daml_lf_dev.DamlLf2.Scenario DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Scenario(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Scenario getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TemplateChoiceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.TemplateChoice) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 2; * @return The nameInternedStr. */ int getNameInternedStr(); /** *
     * Choice type
     * 
* * bool consuming = 3; * @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_2.Expr controllers = 4; * @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_2.Expr controllers = 4; * @return The controllers. */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getControllersOrBuilder(); /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_2.Expr observers = 5; * @return Whether the observers field is set. */ boolean hasObservers(); /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_2.Expr observers = 5; * @return The observers. */ com.daml.daml_lf_dev.DamlLf2.Expr getObservers(); /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_2.Expr observers = 5; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getObserversOrBuilder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_2.VarWithType arg_binder = 6; * @return Whether the argBinder field is set. */ boolean hasArgBinder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_2.VarWithType arg_binder = 6; * @return The argBinder. */ com.daml.daml_lf_dev.DamlLf2.VarWithType getArgBinder(); /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getArgBinderOrBuilder(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_2.Type ret_type = 8; * @return Whether the retType field is set. */ boolean hasRetType(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_2.Type ret_type = 8; * @return The retType. */ com.daml.daml_lf_dev.DamlLf2.Type getRetType(); /** *
     * Return type of the choice.
     * 
* * .daml_lf_2.Type ret_type = 8; */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; * @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_2.Expr update = 9; * @return The update. */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10; * @return The selfBinderInternedStr. */ int getSelfBinderInternedStr(); /** *
     * 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_2.Expr authorizers = 1001; * @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_2.Expr authorizers = 1001; * @return The authorizers. */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr authorizers = 1001; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getAuthorizersOrBuilder(); } /** *
   * Template choice definition.
   * 
* * Protobuf type {@code daml_lf_2.TemplateChoice} */ public static final class TemplateChoice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_TemplateChoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TemplateChoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.class, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder.class); } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int NAME_INTERNED_STR_FIELD_NUMBER = 2; private int nameInternedStr_ = 0; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 name_interned_str = 2; * @return The nameInternedStr. */ @java.lang.Override public int getNameInternedStr() { return nameInternedStr_; } public static final int CONSUMING_FIELD_NUMBER = 3; private boolean consuming_ = false; /** *
     * Choice type
     * 
* * bool consuming = 3; * @return The consuming. */ @java.lang.Override public boolean getConsuming() { return consuming_; } public static final int CONTROLLERS_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; * @return Whether the controllers field is set. */ @java.lang.Override public boolean hasControllers() { return ((bitField0_ & 0x00000002) != 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_2.Expr controllers = 4; * @return The controllers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getControllers() { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getControllersOrBuilder() { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : controllers_; } public static final int OBSERVERS_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf2.Expr observers_; /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_2.Expr observers = 5; * @return Whether the observers field is set. */ @java.lang.Override public boolean hasObservers() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_2.Expr observers = 5; * @return The observers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getObservers() { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } /** *
     * The additional informees of the choice. They have type `List Party`.
     * 
* * .daml_lf_2.Expr observers = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getObserversOrBuilder() { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } public static final int ARG_BINDER_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.DamlLf2.VarWithType argBinder_; /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_2.VarWithType arg_binder = 6; * @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_2.VarWithType arg_binder = 6; * @return The argBinder. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithType getArgBinder() { return argBinder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : argBinder_; } /** *
     * Name to which the choice argument is bound and its type.
     * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getArgBinderOrBuilder() { return argBinder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : argBinder_; } public static final int RET_TYPE_FIELD_NUMBER = 8; private com.daml.daml_lf_dev.DamlLf2.Type retType_; /** *
     * Return type of the choice.
     * 
* * .daml_lf_2.Type ret_type = 8; * @return Whether the retType field is set. */ @java.lang.Override public boolean hasRetType() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Return type of the choice.
     * 
* * .daml_lf_2.Type ret_type = 8; * @return The retType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getRetType() { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } /** *
     * Return type of the choice.
     * 
* * .daml_lf_2.Type ret_type = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getRetTypeOrBuilder() { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } public static final int UPDATE_FIELD_NUMBER = 9; private com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; * @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_2.Expr update = 9; * @return The update. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getUpdate() { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder() { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : update_; } public static final int SELF_BINDER_INTERNED_STR_FIELD_NUMBER = 10; private int selfBinderInternedStr_ = 0; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 self_binder_interned_str = 10; * @return The selfBinderInternedStr. */ @java.lang.Override public int getSelfBinderInternedStr() { return selfBinderInternedStr_; } public static final int AUTHORIZERS_FIELD_NUMBER = 1001; private com.daml.daml_lf_dev.DamlLf2.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_2.Expr authorizers = 1001; * @return Whether the authorizers field is set. */ @java.lang.Override public boolean hasAuthorizers() { return ((bitField0_ & 0x00000040) != 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_2.Expr authorizers = 1001; * @return The authorizers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getAuthorizers() { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr authorizers = 1001; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getAuthorizersOrBuilder() { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : authorizers_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (nameInternedStr_ != 0) { output.writeInt32(2, nameInternedStr_); } if (consuming_ != false) { output.writeBool(3, consuming_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getControllers()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getObservers()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getArgBinder()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getRetType()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(9, getUpdate()); } if (selfBinderInternedStr_ != 0) { output.writeInt32(10, selfBinderInternedStr_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(1001, getAuthorizers()); } 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 (nameInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, nameInternedStr_); } if (consuming_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, consuming_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getControllers()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getObservers()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getArgBinder()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRetType()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getUpdate()); } if (selfBinderInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, selfBinderInternedStr_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, 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.DamlLf2.TemplateChoice)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.TemplateChoice other = (com.daml.daml_lf_dev.DamlLf2.TemplateChoice) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (getNameInternedStr() != other.getNameInternedStr()) return false; if (getConsuming() != other.getConsuming()) return false; if (hasControllers() != other.hasControllers()) return false; if (hasControllers()) { if (!getControllers() .equals(other.getControllers())) return false; } if (hasObservers() != other.hasObservers()) return false; if (hasObservers()) { if (!getObservers() .equals(other.getObservers())) return false; } if (hasArgBinder() != other.hasArgBinder()) return false; if (hasArgBinder()) { if (!getArgBinder() .equals(other.getArgBinder())) return false; } if (hasRetType() != other.hasRetType()) return false; if (hasRetType()) { if (!getRetType() .equals(other.getRetType())) return false; } if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { if (!getUpdate() .equals(other.getUpdate())) return false; } if (getSelfBinderInternedStr() != other.getSelfBinderInternedStr()) return false; if (hasAuthorizers() != other.hasAuthorizers()) return false; if (hasAuthorizers()) { if (!getAuthorizers() .equals(other.getAuthorizers())) 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) + NAME_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getNameInternedStr(); hash = (37 * hash) + CONSUMING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getConsuming()); if (hasControllers()) { hash = (37 * hash) + CONTROLLERS_FIELD_NUMBER; hash = (53 * hash) + getControllers().hashCode(); } if (hasObservers()) { hash = (37 * hash) + OBSERVERS_FIELD_NUMBER; hash = (53 * hash) + getObservers().hashCode(); } if (hasArgBinder()) { hash = (37 * hash) + ARG_BINDER_FIELD_NUMBER; hash = (53 * hash) + getArgBinder().hashCode(); } if (hasRetType()) { hash = (37 * hash) + RET_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRetType().hashCode(); } if (hasUpdate()) { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } hash = (37 * hash) + SELF_BINDER_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getSelfBinderInternedStr(); if (hasAuthorizers()) { hash = (37 * hash) + AUTHORIZERS_FIELD_NUMBER; hash = (53 * hash) + getAuthorizers().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.TemplateChoice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TemplateChoice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TemplateChoice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.TemplateChoice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.TemplateChoice) com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TemplateChoice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TemplateChoice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.class, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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) { getLocationFieldBuilder(); getControllersFieldBuilder(); getObserversFieldBuilder(); getArgBinderFieldBuilder(); getRetTypeFieldBuilder(); getUpdateFieldBuilder(); getAuthorizersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } nameInternedStr_ = 0; consuming_ = false; controllers_ = null; if (controllersBuilder_ != null) { controllersBuilder_.dispose(); controllersBuilder_ = null; } observers_ = null; if (observersBuilder_ != null) { observersBuilder_.dispose(); observersBuilder_ = 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; } selfBinderInternedStr_ = 0; authorizers_ = null; if (authorizersBuilder_ != null) { authorizersBuilder_.dispose(); authorizersBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_TemplateChoice_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoice getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.TemplateChoice.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoice build() { com.daml.daml_lf_dev.DamlLf2.TemplateChoice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoice buildPartial() { com.daml.daml_lf_dev.DamlLf2.TemplateChoice result = new com.daml.daml_lf_dev.DamlLf2.TemplateChoice(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.TemplateChoice 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.nameInternedStr_ = nameInternedStr_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.consuming_ = consuming_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.controllers_ = controllersBuilder_ == null ? controllers_ : controllersBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.observers_ = observersBuilder_ == null ? observers_ : observersBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.argBinder_ = argBinderBuilder_ == null ? argBinder_ : argBinderBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.retType_ = retTypeBuilder_ == null ? retType_ : retTypeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.selfBinderInternedStr_ = selfBinderInternedStr_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.authorizers_ = authorizersBuilder_ == null ? authorizers_ : authorizersBuilder_.build(); to_bitField0_ |= 0x00000040; } 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.DamlLf2.TemplateChoice) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.TemplateChoice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.TemplateChoice other) { if (other == com.daml.daml_lf_dev.DamlLf2.TemplateChoice.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.getNameInternedStr() != 0) { setNameInternedStr(other.getNameInternedStr()); } if (other.getConsuming() != false) { setConsuming(other.getConsuming()); } if (other.hasControllers()) { mergeControllers(other.getControllers()); } if (other.hasObservers()) { mergeObservers(other.getObservers()); } if (other.hasArgBinder()) { mergeArgBinder(other.getArgBinder()); } if (other.hasRetType()) { mergeRetType(other.getRetType()); } if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } if (other.getSelfBinderInternedStr() != 0) { setSelfBinderInternedStr(other.getSelfBinderInternedStr()); } if (other.hasAuthorizers()) { mergeAuthorizers(other.getAuthorizers()); } 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: { nameInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { consuming_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getControllersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getObserversFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getArgBinderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 66: { input.readMessage( getRetTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 66 case 74: { input.readMessage( getUpdateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 74 case 80: { selfBinderInternedStr_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 80 case 8010: { input.readMessage( getAuthorizersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 8010 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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private int nameInternedStr_ ; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 2; * @return The nameInternedStr. */ @java.lang.Override public int getNameInternedStr() { return nameInternedStr_; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 2; * @param value The nameInternedStr to set. * @return This builder for chaining. */ public Builder setNameInternedStr(int value) { nameInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 name_interned_str = 2; * @return This builder for chaining. */ public Builder clearNameInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); nameInternedStr_ = 0; onChanged(); return this; } private boolean consuming_ ; /** *
       * Choice type
       * 
* * bool consuming = 3; * @return The consuming. */ @java.lang.Override public boolean getConsuming() { return consuming_; } /** *
       * Choice type
       * 
* * bool consuming = 3; * @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 = 3; * @return This builder for chaining. */ public Builder clearConsuming() { bitField0_ = (bitField0_ & ~0x00000004); consuming_ = false; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr controllers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; * @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_2.Expr controllers = 4; * @return The controllers. */ public com.daml.daml_lf_dev.DamlLf2.Expr getControllers() { if (controllersBuilder_ == null) { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ public Builder setControllers(com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ public Builder setControllers( com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ public Builder mergeControllers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (controllersBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && controllers_ != null && controllers_ != com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ 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_2.Expr controllers = 4; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getControllersOrBuilder() { if (controllersBuilder_ != null) { return controllersBuilder_.getMessageOrBuilder(); } else { return controllers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr controllers = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getControllersFieldBuilder() { if (controllersBuilder_ == null) { controllersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getControllers(), getParentForChildren(), isClean()); controllers_ = null; } return controllersBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr observers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> observersBuilder_; /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_2.Expr observers = 5; * @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_2.Expr observers = 5; * @return The observers. */ public com.daml.daml_lf_dev.DamlLf2.Expr getObservers() { if (observersBuilder_ == null) { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } else { return observersBuilder_.getMessage(); } } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_2.Expr observers = 5; */ public Builder setObservers(com.daml.daml_lf_dev.DamlLf2.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_2.Expr observers = 5; */ public Builder setObservers( com.daml.daml_lf_dev.DamlLf2.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_2.Expr observers = 5; */ public Builder mergeObservers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (observersBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && observers_ != null && observers_ != com.daml.daml_lf_dev.DamlLf2.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_2.Expr observers = 5; */ 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_2.Expr observers = 5; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getObserversBuilder() { bitField0_ |= 0x00000010; onChanged(); return getObserversFieldBuilder().getBuilder(); } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_2.Expr observers = 5; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getObserversOrBuilder() { if (observersBuilder_ != null) { return observersBuilder_.getMessageOrBuilder(); } else { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } } /** *
       * The additional informees of the choice. They have type `List Party`.
       * 
* * .daml_lf_2.Expr observers = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getObserversFieldBuilder() { if (observersBuilder_ == null) { observersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getObservers(), getParentForChildren(), isClean()); observers_ = null; } return observersBuilder_; } private com.daml.daml_lf_dev.DamlLf2.VarWithType argBinder_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder> argBinderBuilder_; /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; * @return Whether the argBinder field is set. */ public boolean hasArgBinder() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; * @return The argBinder. */ public com.daml.daml_lf_dev.DamlLf2.VarWithType getArgBinder() { if (argBinderBuilder_ == null) { return argBinder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : argBinder_; } else { return argBinderBuilder_.getMessage(); } } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ public Builder setArgBinder(com.daml.daml_lf_dev.DamlLf2.VarWithType value) { if (argBinderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } argBinder_ = value; } else { argBinderBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ public Builder setArgBinder( com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder builderForValue) { if (argBinderBuilder_ == null) { argBinder_ = builderForValue.build(); } else { argBinderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ public Builder mergeArgBinder(com.daml.daml_lf_dev.DamlLf2.VarWithType value) { if (argBinderBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && argBinder_ != null && argBinder_ != com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance()) { getArgBinderBuilder().mergeFrom(value); } else { argBinder_ = value; } } else { argBinderBuilder_.mergeFrom(value); } if (argBinder_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ public Builder clearArgBinder() { bitField0_ = (bitField0_ & ~0x00000020); 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_2.VarWithType arg_binder = 6; */ public com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder getArgBinderBuilder() { bitField0_ |= 0x00000020; onChanged(); return getArgBinderFieldBuilder().getBuilder(); } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ public com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder getArgBinderOrBuilder() { if (argBinderBuilder_ != null) { return argBinderBuilder_.getMessageOrBuilder(); } else { return argBinder_ == null ? com.daml.daml_lf_dev.DamlLf2.VarWithType.getDefaultInstance() : argBinder_; } } /** *
       * Name to which the choice argument is bound and its type.
       * 
* * .daml_lf_2.VarWithType arg_binder = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder> getArgBinderFieldBuilder() { if (argBinderBuilder_ == null) { argBinderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.VarWithType, com.daml.daml_lf_dev.DamlLf2.VarWithType.Builder, com.daml.daml_lf_dev.DamlLf2.VarWithTypeOrBuilder>( getArgBinder(), getParentForChildren(), isClean()); argBinder_ = null; } return argBinderBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Type retType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> retTypeBuilder_; /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; * @return Whether the retType field is set. */ public boolean hasRetType() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; * @return The retType. */ public com.daml.daml_lf_dev.DamlLf2.Type getRetType() { if (retTypeBuilder_ == null) { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } else { return retTypeBuilder_.getMessage(); } } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ public Builder setRetType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (retTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retType_ = value; } else { retTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ public Builder setRetType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (retTypeBuilder_ == null) { retType_ = builderForValue.build(); } else { retTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ public Builder mergeRetType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (retTypeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && retType_ != null && retType_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getRetTypeBuilder().mergeFrom(value); } else { retType_ = value; } } else { retTypeBuilder_.mergeFrom(value); } if (retType_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000040); retType_ = null; if (retTypeBuilder_ != null) { retTypeBuilder_.dispose(); retTypeBuilder_ = null; } onChanged(); return this; } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getRetTypeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getRetTypeFieldBuilder().getBuilder(); } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getRetTypeOrBuilder() { if (retTypeBuilder_ != null) { return retTypeBuilder_.getMessageOrBuilder(); } else { return retType_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : retType_; } } /** *
       * Return type of the choice.
       * 
* * .daml_lf_2.Type ret_type = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getRetTypeFieldBuilder() { if (retTypeBuilder_ == null) { retTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getRetType(), getParentForChildren(), isClean()); retType_ = null; } return retTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr update_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; * @return Whether the update field is set. */ public boolean hasUpdate() { return ((bitField0_ & 0x00000080) != 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_2.Expr update = 9; * @return The update. */ public com.daml.daml_lf_dev.DamlLf2.Expr getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; */ public Builder setUpdate(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; } else { updateBuilder_.setMessage(value); } bitField0_ |= 0x00000080; 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_2.Expr update = 9; */ public Builder setUpdate( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); } else { updateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; 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_2.Expr update = 9; */ public Builder mergeUpdate(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (updateBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && update_ != null && update_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; } } else { updateBuilder_.mergeFrom(value); } if (update_ != null) { bitField0_ |= 0x00000080; 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_2.Expr update = 9; */ public Builder clearUpdate() { bitField0_ = (bitField0_ & ~0x00000080); 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_2.Expr update = 9; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getUpdateBuilder() { bitField0_ |= 0x00000080; 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_2.Expr update = 9; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr update = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getUpdate(), getParentForChildren(), isClean()); update_ = null; } return updateBuilder_; } private int selfBinderInternedStr_ ; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10; * @return The selfBinderInternedStr. */ @java.lang.Override public int getSelfBinderInternedStr() { return selfBinderInternedStr_; } /** *
       * *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) { selfBinderInternedStr_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 self_binder_interned_str = 10; * @return This builder for chaining. */ public Builder clearSelfBinderInternedStr() { bitField0_ = (bitField0_ & ~0x00000100); selfBinderInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr authorizers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr authorizers = 1001; * @return Whether the authorizers field is set. */ public boolean hasAuthorizers() { return ((bitField0_ & 0x00000200) != 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_2.Expr authorizers = 1001; * @return The authorizers. */ public com.daml.daml_lf_dev.DamlLf2.Expr getAuthorizers() { if (authorizersBuilder_ == null) { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr authorizers = 1001; */ public Builder setAuthorizers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (authorizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } authorizers_ = value; } else { authorizersBuilder_.setMessage(value); } bitField0_ |= 0x00000200; 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_2.Expr authorizers = 1001; */ public Builder setAuthorizers( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (authorizersBuilder_ == null) { authorizers_ = builderForValue.build(); } else { authorizersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; 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_2.Expr authorizers = 1001; */ public Builder mergeAuthorizers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (authorizersBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && authorizers_ != null && authorizers_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getAuthorizersBuilder().mergeFrom(value); } else { authorizers_ = value; } } else { authorizersBuilder_.mergeFrom(value); } if (authorizers_ != null) { bitField0_ |= 0x00000200; 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_2.Expr authorizers = 1001; */ public Builder clearAuthorizers() { bitField0_ = (bitField0_ & ~0x00000200); 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_2.Expr authorizers = 1001; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getAuthorizersBuilder() { bitField0_ |= 0x00000200; 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_2.Expr authorizers = 1001; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getAuthorizersOrBuilder() { if (authorizersBuilder_ != null) { return authorizersBuilder_.getMessageOrBuilder(); } else { return authorizers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr authorizers = 1001; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getAuthorizersFieldBuilder() { if (authorizersBuilder_ == null) { authorizersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getAuthorizers(), getParentForChildren(), isClean()); authorizers_ = null; } return authorizersBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:daml_lf_2.TemplateChoice) } // @@protoc_insertion_point(class_scope:daml_lf_2.TemplateChoice) private static final com.daml.daml_lf_dev.DamlLf2.TemplateChoice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.TemplateChoice(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TemplateChoice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceInstanceBodyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.InterfaceInstanceBody) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ java.util.List getMethodsList(); /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod getMethods(int index); /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ int getMethodsCount(); /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ java.util.List getMethodsOrBuilderList(); /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder getMethodsOrBuilder( int index); /** * .daml_lf_2.Expr view = 2; * @return Whether the view field is set. */ boolean hasView(); /** * .daml_lf_2.Expr view = 2; * @return The view. */ com.daml.daml_lf_dev.DamlLf2.Expr getView(); /** * .daml_lf_2.Expr view = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getViewOrBuilder(); } /** *
   * Contents of an interface instance.
   * 
* * Protobuf type {@code daml_lf_2.InterfaceInstanceBody} */ public static final class InterfaceInstanceBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.class, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder.class); } public interface InterfaceInstanceMethodOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod) com.google.protobuf.MessageOrBuilder { /** * int32 method_interned_name = 1; * @return The methodInternedName. */ int getMethodInternedName(); /** * .daml_lf_2.Expr value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .daml_lf_2.Expr value = 2; * @return The value. */ com.daml.daml_lf_dev.DamlLf2.Expr getValue(); /** * .daml_lf_2.Expr value = 2; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod} */ public static final class InterfaceInstanceMethod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.class, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr value_; /** * .daml_lf_2.Expr value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Expr value = 2; * @return The value. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getValue() { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : value_; } /** * .daml_lf_2.Expr value = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getValueOrBuilder() { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod) com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.class, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod build() { com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod buildPartial() { com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod result = new com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Expr value_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> valueBuilder_; /** * .daml_lf_2.Expr value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr value = 2; * @return The value. */ public com.daml.daml_lf_dev.DamlLf2.Expr getValue() { if (valueBuilder_ == null) { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .daml_lf_2.Expr value = 2; */ public Builder setValue(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr value = 2; */ public Builder setValue( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr value = 2; */ public Builder mergeValue(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr value = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : value_; } } /** * .daml_lf_2.Expr value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod) } // @@protoc_insertion_point(class_scope:daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod) private static final com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public java.util.List getMethodsOrBuilderList() { return methods_; } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod getMethods(int index) { return methods_.get(index); } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder getMethodsOrBuilder( int index) { return methods_.get(index); } public static final int VIEW_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.Expr view_; /** * .daml_lf_2.Expr view = 2; * @return Whether the view field is set. */ @java.lang.Override public boolean hasView() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Expr view = 2; * @return The view. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getView() { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : view_; } /** * .daml_lf_2.Expr view = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getViewOrBuilder() { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
     * 
* * Protobuf type {@code daml_lf_2.InterfaceInstanceBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.InterfaceInstanceBody) com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.class, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_InterfaceInstanceBody_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody build() { com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody buildPartial() { com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody result = new com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.InterfaceInstanceBody) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder> methodsBuilder_; /** * repeated .daml_lf_2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public int getMethodsCount() { if (methodsBuilder_ == null) { return methods_.size(); } else { return methodsBuilder_.getCount(); } } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod getMethods(int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods(com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder getMethodsBuilder( int index) { return getMethodsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder getMethodsOrBuilder( int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.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_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder addMethodsBuilder() { return getMethodsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance()); } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder addMethodsBuilder( int index) { return getMethodsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.getDefaultInstance()); } /** * repeated .daml_lf_2.InterfaceInstanceBody.InterfaceInstanceMethod methods = 1; */ public java.util.List getMethodsBuilderList() { return getMethodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder> getMethodsFieldBuilder() { if (methodsBuilder_ == null) { methodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethod.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.InterfaceInstanceMethodOrBuilder>( methods_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); methods_ = null; } return methodsBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr view_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> viewBuilder_; /** * .daml_lf_2.Expr view = 2; * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr view = 2; * @return The view. */ public com.daml.daml_lf_dev.DamlLf2.Expr getView() { if (viewBuilder_ == null) { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : view_; } else { return viewBuilder_.getMessage(); } } /** * .daml_lf_2.Expr view = 2; */ public Builder setView(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (viewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } view_ = value; } else { viewBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr view = 2; */ public Builder setView( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { viewBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr view = 2; */ public Builder mergeView(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (viewBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && view_ != null && view_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; } } else { viewBuilder_.mergeFrom(value); } if (view_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr view = 2; */ public Builder clearView() { bitField0_ = (bitField0_ & ~0x00000002); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr view = 2; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getViewBuilder() { bitField0_ |= 0x00000002; onChanged(); return getViewFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr view = 2; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : view_; } } /** * .daml_lf_2.Expr view = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getViewFieldBuilder() { if (viewBuilder_ == null) { viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceInstanceBody) } // @@protoc_insertion_point(class_scope:daml_lf_2.InterfaceInstanceBody) private static final com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceInstanceBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefTemplate) com.google.protobuf.MessageOrBuilder { /** *
     * The type constructor for the template, acting as both
     * the name of the template and the type of the template argument.
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 1; * @return The tyconInternedDname. */ int getTyconInternedDname(); /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 2; * @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_2.Expr precond = 3; * @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_2.Expr precond = 3; * @return The precond. */ com.daml.daml_lf_dev.DamlLf2.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_2.Expr precond = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPrecondOrBuilder(); /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr signatories = 4; * @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_2.Expr signatories = 4; * @return The signatories. */ com.daml.daml_lf_dev.DamlLf2.Expr getSignatories(); /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr signatories = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getSignatoriesOrBuilder(); /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_2.Expr agreement = 5; * @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_2.Expr agreement = 5; * @return The agreement. */ com.daml.daml_lf_dev.DamlLf2.Expr getAgreement(); /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_2.Expr agreement = 5; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getAgreementOrBuilder(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ java.util.List getChoicesList(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ com.daml.daml_lf_dev.DamlLf2.TemplateChoice getChoices(int index); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ int getChoicesCount(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ java.util.List getChoicesOrBuilderList(); /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder getChoicesOrBuilder( int index); /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr observers = 7; * @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_2.Expr observers = 7; * @return The observers. */ com.daml.daml_lf_dev.DamlLf2.Expr getObservers(); /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr observers = 7; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getObserversOrBuilder(); /** * .daml_lf_2.Location location = 8; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 8; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 8; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; * @return Whether the key field is set. */ boolean hasKey(); /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; * @return The key. */ com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey getKey(); /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder getKeyOrBuilder(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ java.util.List getImplementsList(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements getImplements(int index); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ int getImplementsCount(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ java.util.List getImplementsOrBuilderList(); /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ com.daml.daml_lf_dev.DamlLf2.DefTemplate.ImplementsOrBuilder getImplementsOrBuilder( int index); } /** *
   * Contract template definition
   * 
* * Protobuf type {@code daml_lf_2.DefTemplate} */ public static final class DefTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTemplate.class, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder.class); } public interface DefKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefTemplate.DefKey) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_2.Type type = 1; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** * .daml_lf_2.Type type = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); /** * .daml_lf_2.Expr key_expr = 4; * @return Whether the keyExpr field is set. */ boolean hasKeyExpr(); /** * .daml_lf_2.Expr key_expr = 4; * @return The keyExpr. */ com.daml.daml_lf_dev.DamlLf2.Expr getKeyExpr(); /** * .daml_lf_2.Expr key_expr = 4; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyExprOrBuilder(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_2.Expr maintainers = 3; * @return Whether the maintainers field is set. */ boolean hasMaintainers(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_2.Expr maintainers = 3; * @return The maintainers. */ com.daml.daml_lf_dev.DamlLf2.Expr getMaintainers(); /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_2.Expr maintainers = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getMaintainersOrBuilder(); } /** * Protobuf type {@code daml_lf_2.DefTemplate.DefKey} */ public static final class DefKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefTemplate_DefKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_DefKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.class, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 1; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** * .daml_lf_2.Type type = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } public static final int KEY_EXPR_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr keyExpr_; /** * .daml_lf_2.Expr key_expr = 4; * @return Whether the keyExpr field is set. */ @java.lang.Override public boolean hasKeyExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr key_expr = 4; * @return The keyExpr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getKeyExpr() { return keyExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : keyExpr_; } /** * .daml_lf_2.Expr key_expr = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyExprOrBuilder() { return keyExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : keyExpr_; } public static final int MAINTAINERS_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr maintainers_; /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_2.Expr maintainers = 3; * @return Whether the maintainers field is set. */ @java.lang.Override public boolean hasMaintainers() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_2.Expr maintainers = 3; * @return The maintainers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getMaintainers() { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : maintainers_; } /** *
       * a function from the key type to [Party]
       * 
* * .daml_lf_2.Expr maintainers = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getMaintainersOrBuilder() { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getMaintainers()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getKeyExpr()); } 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_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaintainers()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKeyExpr()); } 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.DamlLf2.DefTemplate.DefKey)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey other = (com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasKeyExpr() != other.hasKeyExpr()) return false; if (hasKeyExpr()) { if (!getKeyExpr() .equals(other.getKeyExpr())) return false; } if (hasMaintainers() != other.hasMaintainers()) return false; if (hasMaintainers()) { if (!getMaintainers() .equals(other.getMaintainers())) 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 (hasKeyExpr()) { hash = (37 * hash) + KEY_EXPR_FIELD_NUMBER; hash = (53 * hash) + getKeyExpr().hashCode(); } if (hasMaintainers()) { hash = (37 * hash) + MAINTAINERS_FIELD_NUMBER; hash = (53 * hash) + getMaintainers().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.DefKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.DefKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefTemplate.DefKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefTemplate.DefKey) com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_DefKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_DefKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.class, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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(); getKeyExprFieldBuilder(); getMaintainersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } keyExpr_ = null; if (keyExprBuilder_ != null) { keyExprBuilder_.dispose(); keyExprBuilder_ = null; } maintainers_ = null; if (maintainersBuilder_ != null) { maintainersBuilder_.dispose(); maintainersBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_DefKey_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey build() { com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey result = new com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 0x00000002) != 0)) { result.keyExpr_ = keyExprBuilder_ == null ? keyExpr_ : keyExprBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maintainers_ = maintainersBuilder_ == null ? maintainers_ : maintainersBuilder_.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.DamlLf2.DefTemplate.DefKey) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (other.hasKeyExpr()) { mergeKeyExpr(other.getKeyExpr()); } if (other.hasMaintainers()) { mergeMaintainers(other.getMaintainers()); } 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 26: { input.readMessage( getMaintainersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getKeyExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; 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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** * .daml_lf_2.Type type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Type type = 1; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_2.Type type = 1; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type type = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** * .daml_lf_2.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr keyExpr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> keyExprBuilder_; /** * .daml_lf_2.Expr key_expr = 4; * @return Whether the keyExpr field is set. */ public boolean hasKeyExpr() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr key_expr = 4; * @return The keyExpr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getKeyExpr() { if (keyExprBuilder_ == null) { return keyExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : keyExpr_; } else { return keyExprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr key_expr = 4; */ public Builder setKeyExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (keyExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyExpr_ = value; } else { keyExprBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr key_expr = 4; */ public Builder setKeyExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (keyExprBuilder_ == null) { keyExpr_ = builderForValue.build(); } else { keyExprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Expr key_expr = 4; */ public Builder mergeKeyExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (keyExprBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && keyExpr_ != null && keyExpr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getKeyExprBuilder().mergeFrom(value); } else { keyExpr_ = value; } } else { keyExprBuilder_.mergeFrom(value); } if (keyExpr_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Expr key_expr = 4; */ public Builder clearKeyExpr() { bitField0_ = (bitField0_ & ~0x00000002); keyExpr_ = null; if (keyExprBuilder_ != null) { keyExprBuilder_.dispose(); keyExprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr key_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getKeyExprBuilder() { bitField0_ |= 0x00000002; onChanged(); return getKeyExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr key_expr = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getKeyExprOrBuilder() { if (keyExprBuilder_ != null) { return keyExprBuilder_.getMessageOrBuilder(); } else { return keyExpr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : keyExpr_; } } /** * .daml_lf_2.Expr key_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getKeyExprFieldBuilder() { if (keyExprBuilder_ == null) { keyExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getKeyExpr(), getParentForChildren(), isClean()); keyExpr_ = null; } return keyExprBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr maintainers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> maintainersBuilder_; /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; * @return Whether the maintainers field is set. */ public boolean hasMaintainers() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; * @return The maintainers. */ public com.daml.daml_lf_dev.DamlLf2.Expr getMaintainers() { if (maintainersBuilder_ == null) { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : maintainers_; } else { return maintainersBuilder_.getMessage(); } } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ public Builder setMaintainers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (maintainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maintainers_ = value; } else { maintainersBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ public Builder setMaintainers( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (maintainersBuilder_ == null) { maintainers_ = builderForValue.build(); } else { maintainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ public Builder mergeMaintainers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (maintainersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && maintainers_ != null && maintainers_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getMaintainersBuilder().mergeFrom(value); } else { maintainers_ = value; } } else { maintainersBuilder_.mergeFrom(value); } if (maintainers_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ public Builder clearMaintainers() { bitField0_ = (bitField0_ & ~0x00000004); maintainers_ = null; if (maintainersBuilder_ != null) { maintainersBuilder_.dispose(); maintainersBuilder_ = null; } onChanged(); return this; } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getMaintainersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaintainersFieldBuilder().getBuilder(); } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getMaintainersOrBuilder() { if (maintainersBuilder_ != null) { return maintainersBuilder_.getMessageOrBuilder(); } else { return maintainers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : maintainers_; } } /** *
         * a function from the key type to [Party]
         * 
* * .daml_lf_2.Expr maintainers = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getMaintainersFieldBuilder() { if (maintainersBuilder_ == null) { maintainersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.DefKey) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefTemplate.DefKey) private static final com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.DefKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImplementsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefTemplate.Implements) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ boolean hasInterface(); /** * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface(); /** * .daml_lf_2.TypeConName interface = 1; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder(); /** * .daml_lf_2.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ boolean hasBody(); /** * .daml_lf_2.InterfaceInstanceBody body = 2; * @return The body. */ com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody getBody(); /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder getBodyOrBuilder(); /** * .daml_lf_2.Location location = 3; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 3; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 3; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); } /** *
     * An interface instance defined in this template.
     * 
* * Protobuf type {@code daml_lf_2.DefTemplate.Implements} */ public static final class Implements extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefTemplate_Implements_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_Implements_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.class, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder.class); } private int bitField0_; public static final int INTERFACE_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.TypeConName interface_; /** * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } /** * .daml_lf_2.TypeConName interface = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } public static final int BODY_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody body_; /** * .daml_lf_2.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.InterfaceInstanceBody body = 2; * @return The body. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody getBody() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.getDefaultInstance() : body_; } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder getBodyOrBuilder() { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.getDefaultInstance() : body_; } public static final int LOCATION_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Location location = 3; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.Implements)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.Implements parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.Implements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.Implements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.
       * 
* * Protobuf type {@code daml_lf_2.DefTemplate.Implements} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefTemplate.Implements) com.daml.daml_lf_dev.DamlLf2.DefTemplate.ImplementsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_Implements_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_Implements_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.class, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_DefTemplate_Implements_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements build() { com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements result = new com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.Implements) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TypeConName interface_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> interfaceBuilder_; /** * .daml_lf_2.TypeConName interface = 1; * @return Whether the interface field is set. */ public boolean hasInterface() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.TypeConName interface = 1; * @return The interface. */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getInterface() { if (interfaceBuilder_ == null) { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } else { return interfaceBuilder_.getMessage(); } } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interface_ = value; } else { interfaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (interfaceBuilder_ == null) { interface_ = builderForValue.build(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (interfaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && interface_ != null && interface_ != com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()) { getInterfaceBuilder().mergeFrom(value); } else { interface_ = value; } } else { interfaceBuilder_.mergeFrom(value); } if (interface_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public Builder clearInterface() { bitField0_ = (bitField0_ & ~0x00000001); interface_ = null; if (interfaceBuilder_ != null) { interfaceBuilder_.dispose(); interfaceBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getInterfaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInterfaceFieldBuilder().getBuilder(); } /** * .daml_lf_2.TypeConName interface = 1; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getInterfaceOrBuilder() { if (interfaceBuilder_ != null) { return interfaceBuilder_.getMessageOrBuilder(); } else { return interface_ == null ? com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance() : interface_; } } /** * .daml_lf_2.TypeConName interface = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( getInterface(), getParentForChildren(), isClean()); interface_ = null; } return interfaceBuilder_; } private com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody body_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder> bodyBuilder_; /** * .daml_lf_2.InterfaceInstanceBody body = 2; * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.InterfaceInstanceBody body = 2; * @return The body. */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody getBody() { if (bodyBuilder_ == null) { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ public Builder setBody(com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; } else { bodyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ public Builder setBody( com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); } else { bodyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ public Builder mergeBody(com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody value) { if (bodyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && body_ != null && body_ != com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; } } else { bodyBuilder_.mergeFrom(value); } if (body_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = null; if (bodyBuilder_ != null) { bodyBuilder_.dispose(); bodyBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder getBodyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.getDefaultInstance() : body_; } } /** * .daml_lf_2.InterfaceInstanceBody body = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBody.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceInstanceBodyOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 3; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Location location = 3; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 3; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Location location = 3; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Location location = 3; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Location location = 3; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000004); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 3; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 3; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefTemplate.Implements) private static final com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate.Implements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYCON_INTERNED_DNAME_FIELD_NUMBER = 1; private int tyconInternedDname_ = 0; /** *
     * The type constructor for the template, acting as both
     * the name of the template and the type of the template argument.
     * *Must be a valid interned name*
     * 
* * int32 tycon_interned_dname = 1; * @return The tyconInternedDname. */ @java.lang.Override public int getTyconInternedDname() { return tyconInternedDname_; } public static final int PARAM_INTERNED_STR_FIELD_NUMBER = 2; private int paramInternedStr_ = 0; /** *
     * *Must be a valid interned identifier*
     * 
* * int32 param_interned_str = 2; * @return The paramInternedStr. */ @java.lang.Override public int getParamInternedStr() { return paramInternedStr_; } public static final int PRECOND_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.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_2.Expr precond = 3; * @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_2.Expr precond = 3; * @return The precond. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getPrecond() { return precond_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr precond = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPrecondOrBuilder() { return precond_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : precond_; } public static final int SIGNATORIES_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Expr signatories_; /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr signatories = 4; * @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_2.Expr signatories = 4; * @return The signatories. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getSignatories() { return signatories_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : signatories_; } /** *
     * The signatories of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr signatories = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getSignatoriesOrBuilder() { return signatories_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : signatories_; } public static final int AGREEMENT_FIELD_NUMBER = 5; private com.daml.daml_lf_dev.DamlLf2.Expr agreement_; /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_2.Expr agreement = 5; * @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_2.Expr agreement = 5; * @return The agreement. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getAgreement() { return agreement_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : agreement_; } /** *
     * The agreement text associated with the contract. It has type `Text` and
     * the template parameter in scope.
     * 
* * .daml_lf_2.Expr agreement = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getAgreementOrBuilder() { return agreement_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : agreement_; } public static final int CHOICES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List choices_; /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ @java.lang.Override public java.util.List getChoicesList() { return choices_; } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ @java.lang.Override public java.util.List getChoicesOrBuilderList() { return choices_; } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ @java.lang.Override public int getChoicesCount() { return choices_.size(); } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoice getChoices(int index) { return choices_.get(index); } /** *
     * The choices available in the resulting contract.
     * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { return choices_.get(index); } public static final int OBSERVERS_FIELD_NUMBER = 7; private com.daml.daml_lf_dev.DamlLf2.Expr observers_; /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr observers = 7; * @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_2.Expr observers = 7; * @return The observers. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getObservers() { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } /** *
     * The observers of the contract. They have type `List Party` and the
     * template parameter in scope.
     * 
* * .daml_lf_2.Expr observers = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getObserversOrBuilder() { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } public static final int LOCATION_FIELD_NUMBER = 8; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 8; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000010) != 0); } /** * .daml_lf_2.Location location = 8; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int KEY_FIELD_NUMBER = 9; private com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey key_; /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; * @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_2.DefTemplate.DefKey key = 9; * @return The key. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey getKey() { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance() : key_; } /** *
     * The key definition for the template, if present
     * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder getKeyOrBuilder() { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance() : key_; } public static final int IMPLEMENTS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List implements_; /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ @java.lang.Override public java.util.List getImplementsList() { return implements_; } /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ @java.lang.Override public java.util.List getImplementsOrBuilderList() { return implements_; } /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ @java.lang.Override public int getImplementsCount() { return implements_.size(); } /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements getImplements(int index) { return implements_.get(index); } /** *
     * Interface instances defined in this template.
     * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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 (tyconInternedDname_ != 0) { output.writeInt32(1, tyconInternedDname_); } if (paramInternedStr_ != 0) { output.writeInt32(2, paramInternedStr_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPrecond()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getSignatories()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getAgreement()); } for (int i = 0; i < choices_.size(); i++) { output.writeMessage(6, choices_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getObservers()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getLocation()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(9, getKey()); } for (int i = 0; i < implements_.size(); i++) { output.writeMessage(10, implements_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tyconInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, tyconInternedDname_); } if (paramInternedStr_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, paramInternedStr_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPrecond()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSignatories()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAgreement()); } for (int i = 0; i < choices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, choices_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getObservers()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLocation()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getKey()); } for (int i = 0; i < implements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, 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.DamlLf2.DefTemplate)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefTemplate other = (com.daml.daml_lf_dev.DamlLf2.DefTemplate) obj; if (getTyconInternedDname() != other.getTyconInternedDname()) return false; if (getParamInternedStr() != other.getParamInternedStr()) return false; 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 (!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) + TYCON_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getTyconInternedDname(); hash = (37 * hash) + PARAM_INTERNED_STR_FIELD_NUMBER; hash = (53 * hash) + getParamInternedStr(); if (hasPrecond()) { hash = (37 * hash) + PRECOND_FIELD_NUMBER; hash = (53 * hash) + getPrecond().hashCode(); } if (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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.DefTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefTemplate) com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTemplate.class, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; tyconInternedDname_ = 0; paramInternedStr_ = 0; 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_ & ~0x00000020); 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_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTemplate_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefTemplate.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate build() { com.daml.daml_lf_dev.DamlLf2.DefTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefTemplate result = new com.daml.daml_lf_dev.DamlLf2.DefTemplate(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.DefTemplate result) { if (choicesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { choices_ = java.util.Collections.unmodifiableList(choices_); bitField0_ = (bitField0_ & ~0x00000020); } result.choices_ = choices_; } else { result.choices_ = choicesBuilder_.build(); } if (implementsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { implements_ = java.util.Collections.unmodifiableList(implements_); bitField0_ = (bitField0_ & ~0x00000200); } result.implements_ = implements_; } else { result.implements_ = implementsBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.DefTemplate result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tyconInternedDname_ = tyconInternedDname_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.paramInternedStr_ = paramInternedStr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.precond_ = precondBuilder_ == null ? precond_ : precondBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.signatories_ = signatoriesBuilder_ == null ? signatories_ : signatoriesBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.agreement_ = agreementBuilder_ == null ? agreement_ : agreementBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.observers_ = observersBuilder_ == null ? observers_ : observersBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000020; } 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.DamlLf2.DefTemplate) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefTemplate other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefTemplate.getDefaultInstance()) return this; if (other.getTyconInternedDname() != 0) { setTyconInternedDname(other.getTyconInternedDname()); } if (other.getParamInternedStr() != 0) { setParamInternedStr(other.getParamInternedStr()); } 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_ & ~0x00000020); } else { ensureChoicesIsMutable(); choices_.addAll(other.choices_); } onChanged(); } } else { if (!other.choices_.isEmpty()) { if (choicesBuilder_.isEmpty()) { choicesBuilder_.dispose(); choicesBuilder_ = null; choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00000020); 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_ & ~0x00000200); } else { ensureImplementsIsMutable(); implements_.addAll(other.implements_); } onChanged(); } } else { if (!other.implements_.isEmpty()) { if (implementsBuilder_.isEmpty()) { implementsBuilder_.dispose(); implementsBuilder_ = null; implements_ = other.implements_; bitField0_ = (bitField0_ & ~0x00000200); implementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImplementsFieldBuilder() : null; } else { implementsBuilder_.addAllMessages(other.implements_); } } } 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: { tyconInternedDname_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { paramInternedStr_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getPrecondFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSignatoriesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAgreementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.daml.daml_lf_dev.DamlLf2.TemplateChoice m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.parser(), extensionRegistry); if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(m); } else { choicesBuilder_.addMessage(m); } break; } // case 50 case 58: { input.readMessage( getObserversFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.parser(), extensionRegistry); if (implementsBuilder_ == null) { ensureImplementsIsMutable(); implements_.add(m); } else { implementsBuilder_.addMessage(m); } break; } // case 82 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 tyconInternedDname_ ; /** *
       * The type constructor for the template, acting as both
       * the name of the template and the type of the template argument.
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 1; * @return The tyconInternedDname. */ @java.lang.Override public int getTyconInternedDname() { return tyconInternedDname_; } /** *
       * The type constructor for the template, acting as both
       * the name of the template and the type of the template argument.
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 1; * @param value The tyconInternedDname to set. * @return This builder for chaining. */ public Builder setTyconInternedDname(int value) { tyconInternedDname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The type constructor for the template, acting as both
       * the name of the template and the type of the template argument.
       * *Must be a valid interned name*
       * 
* * int32 tycon_interned_dname = 1; * @return This builder for chaining. */ public Builder clearTyconInternedDname() { bitField0_ = (bitField0_ & ~0x00000001); tyconInternedDname_ = 0; onChanged(); return this; } private int paramInternedStr_ ; /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 2; * @return The paramInternedStr. */ @java.lang.Override public int getParamInternedStr() { return paramInternedStr_; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 2; * @param value The paramInternedStr to set. * @return This builder for chaining. */ public Builder setParamInternedStr(int value) { paramInternedStr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * *Must be a valid interned identifier*
       * 
* * int32 param_interned_str = 2; * @return This builder for chaining. */ public Builder clearParamInternedStr() { bitField0_ = (bitField0_ & ~0x00000002); paramInternedStr_ = 0; onChanged(); return this; } private com.daml.daml_lf_dev.DamlLf2.Expr precond_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Expr precond = 3; * @return Whether the precond field is set. */ public boolean hasPrecond() { return ((bitField0_ & 0x00000004) != 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_2.Expr precond = 3; * @return The precond. */ public com.daml.daml_lf_dev.DamlLf2.Expr getPrecond() { if (precondBuilder_ == null) { return precond_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr precond = 3; */ public Builder setPrecond(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (precondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } precond_ = value; } else { precondBuilder_.setMessage(value); } bitField0_ |= 0x00000004; 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_2.Expr precond = 3; */ public Builder setPrecond( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (precondBuilder_ == null) { precond_ = builderForValue.build(); } else { precondBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; 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_2.Expr precond = 3; */ public Builder mergePrecond(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (precondBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && precond_ != null && precond_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getPrecondBuilder().mergeFrom(value); } else { precond_ = value; } } else { precondBuilder_.mergeFrom(value); } if (precond_ != null) { bitField0_ |= 0x00000004; 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_2.Expr precond = 3; */ public Builder clearPrecond() { bitField0_ = (bitField0_ & ~0x00000004); 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_2.Expr precond = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getPrecondBuilder() { bitField0_ |= 0x00000004; 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_2.Expr precond = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getPrecondOrBuilder() { if (precondBuilder_ != null) { return precondBuilder_.getMessageOrBuilder(); } else { return precond_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr precond = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getPrecondFieldBuilder() { if (precondBuilder_ == null) { precondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getPrecond(), getParentForChildren(), isClean()); precond_ = null; } return precondBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr signatories_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> signatoriesBuilder_; /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; * @return Whether the signatories field is set. */ public boolean hasSignatories() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; * @return The signatories. */ public com.daml.daml_lf_dev.DamlLf2.Expr getSignatories() { if (signatoriesBuilder_ == null) { return signatories_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr signatories = 4; */ public Builder setSignatories(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (signatoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signatories_ = value; } else { signatoriesBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; */ public Builder setSignatories( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (signatoriesBuilder_ == null) { signatories_ = builderForValue.build(); } else { signatoriesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; */ public Builder mergeSignatories(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (signatoriesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && signatories_ != null && signatories_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getSignatoriesBuilder().mergeFrom(value); } else { signatories_ = value; } } else { signatoriesBuilder_.mergeFrom(value); } if (signatories_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; */ public Builder clearSignatories() { bitField0_ = (bitField0_ & ~0x00000008); 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_2.Expr signatories = 4; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getSignatoriesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSignatoriesFieldBuilder().getBuilder(); } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getSignatoriesOrBuilder() { if (signatoriesBuilder_ != null) { return signatoriesBuilder_.getMessageOrBuilder(); } else { return signatories_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : signatories_; } } /** *
       * The signatories of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr signatories = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getSignatoriesFieldBuilder() { if (signatoriesBuilder_ == null) { signatoriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getSignatories(), getParentForChildren(), isClean()); signatories_ = null; } return signatoriesBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr agreement_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> agreementBuilder_; /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; * @return Whether the agreement field is set. */ public boolean hasAgreement() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; * @return The agreement. */ public com.daml.daml_lf_dev.DamlLf2.Expr getAgreement() { if (agreementBuilder_ == null) { return agreement_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr agreement = 5; */ public Builder setAgreement(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (agreementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agreement_ = value; } else { agreementBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; */ public Builder setAgreement( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (agreementBuilder_ == null) { agreement_ = builderForValue.build(); } else { agreementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; */ public Builder mergeAgreement(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (agreementBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && agreement_ != null && agreement_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getAgreementBuilder().mergeFrom(value); } else { agreement_ = value; } } else { agreementBuilder_.mergeFrom(value); } if (agreement_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; */ public Builder clearAgreement() { bitField0_ = (bitField0_ & ~0x00000010); 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_2.Expr agreement = 5; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getAgreementBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAgreementFieldBuilder().getBuilder(); } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getAgreementOrBuilder() { if (agreementBuilder_ != null) { return agreementBuilder_.getMessageOrBuilder(); } else { return agreement_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : agreement_; } } /** *
       * The agreement text associated with the contract. It has type `Text` and
       * the template parameter in scope.
       * 
* * .daml_lf_2.Expr agreement = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getAgreementFieldBuilder() { if (agreementBuilder_ == null) { agreementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getAgreement(), getParentForChildren(), isClean()); agreement_ = null; } return agreementBuilder_; } private java.util.List choices_ = java.util.Collections.emptyList(); private void ensureChoicesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { choices_ = new java.util.ArrayList(choices_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TemplateChoice, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder> choicesBuilder_; /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ 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_2.TemplateChoice choices = 6; */ public int getChoicesCount() { if (choicesBuilder_ == null) { return choices_.size(); } else { return choicesBuilder_.getCount(); } } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ public com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ public Builder setChoices( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ public Builder setChoices( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ public Builder addChoices(com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ public Builder addChoices( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ public Builder addChoices( com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ public Builder addChoices( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ 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_2.TemplateChoice choices = 6; */ public Builder clearChoices() { if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { choicesBuilder_.clear(); } return this; } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ 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_2.TemplateChoice choices = 6; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder getChoicesBuilder( int index) { return getChoicesFieldBuilder().getBuilder(index); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ public com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 6; */ 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_2.TemplateChoice choices = 6; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder addChoicesBuilder() { return getChoicesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.getDefaultInstance()); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder addChoicesBuilder( int index) { return getChoicesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.getDefaultInstance()); } /** *
       * The choices available in the resulting contract.
       * 
* * repeated .daml_lf_2.TemplateChoice choices = 6; */ public java.util.List getChoicesBuilderList() { return getChoicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TemplateChoice, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder> getChoicesFieldBuilder() { if (choicesBuilder_ == null) { choicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TemplateChoice, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder>( choices_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); choices_ = null; } return choicesBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr observers_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> observersBuilder_; /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; * @return Whether the observers field is set. */ public boolean hasObservers() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; * @return The observers. */ public com.daml.daml_lf_dev.DamlLf2.Expr getObservers() { if (observersBuilder_ == null) { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.Expr observers = 7; */ public Builder setObservers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (observersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } observers_ = value; } else { observersBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; */ public Builder setObservers( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (observersBuilder_ == null) { observers_ = builderForValue.build(); } else { observersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; */ public Builder mergeObservers(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (observersBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && observers_ != null && observers_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getObserversBuilder().mergeFrom(value); } else { observers_ = value; } } else { observersBuilder_.mergeFrom(value); } if (observers_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; */ public Builder clearObservers() { bitField0_ = (bitField0_ & ~0x00000040); 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_2.Expr observers = 7; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getObserversBuilder() { bitField0_ |= 0x00000040; onChanged(); return getObserversFieldBuilder().getBuilder(); } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getObserversOrBuilder() { if (observersBuilder_ != null) { return observersBuilder_.getMessageOrBuilder(); } else { return observers_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : observers_; } } /** *
       * The observers of the contract. They have type `List Party` and the
       * template parameter in scope.
       * 
* * .daml_lf_2.Expr observers = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getObserversFieldBuilder() { if (observersBuilder_ == null) { observersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getObservers(), getParentForChildren(), isClean()); observers_ = null; } return observersBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 8; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000080) != 0); } /** * .daml_lf_2.Location location = 8; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 8; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .daml_lf_2.Location location = 8; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .daml_lf_2.Location location = 8; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * .daml_lf_2.Location location = 8; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000080); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 8; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 8; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey key_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder> keyBuilder_; /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; * @return The key. */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey getKey() { if (keyBuilder_ == null) { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ public Builder setKey(com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ public Builder setKey( com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ public Builder mergeKey(com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && key_ != null && key_ != com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000100); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder getKeyBuilder() { bitField0_ |= 0x00000100; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.getDefaultInstance() : key_; } } /** *
       * The key definition for the template, if present
       * 
* * .daml_lf_2.DefTemplate.DefKey key = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKey.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplate.DefKeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private java.util.List implements_ = java.util.Collections.emptyList(); private void ensureImplementsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { implements_ = new java.util.ArrayList(implements_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplate.ImplementsOrBuilder> implementsBuilder_; /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ 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_2.DefTemplate.Implements implements = 10; */ public int getImplementsCount() { if (implementsBuilder_ == null) { return implements_.size(); } else { return implementsBuilder_.getCount(); } } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ public com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ public Builder setImplements( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ public Builder setImplements( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ public Builder addImplements(com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ public Builder addImplements( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ public Builder addImplements( com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ public Builder addImplements( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ 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_2.DefTemplate.Implements implements = 10; */ public Builder clearImplements() { if (implementsBuilder_ == null) { implements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { implementsBuilder_.clear(); } return this; } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ 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_2.DefTemplate.Implements implements = 10; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder getImplementsBuilder( int index) { return getImplementsFieldBuilder().getBuilder(index); } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ public com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate.Implements implements = 10; */ 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_2.DefTemplate.Implements implements = 10; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder addImplementsBuilder() { return getImplementsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.getDefaultInstance()); } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder addImplementsBuilder( int index) { return getImplementsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.getDefaultInstance()); } /** *
       * Interface instances defined in this template.
       * 
* * repeated .daml_lf_2.DefTemplate.Implements implements = 10; */ public java.util.List getImplementsBuilderList() { return getImplementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplate.ImplementsOrBuilder> getImplementsFieldBuilder() { if (implementsBuilder_ == null) { implementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Implements.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplate.ImplementsOrBuilder>( implements_, ((bitField0_ & 0x00000200) != 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_2.DefTemplate) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefTemplate) private static final com.daml.daml_lf_dev.DamlLf2.DefTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefTemplate(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceMethodOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.InterfaceMethod) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** * int32 method_interned_name = 2; * @return The methodInternedName. */ int getMethodInternedName(); /** * .daml_lf_2.Type type = 3; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_2.Type type = 3; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** * .daml_lf_2.Type type = 3; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** *
   * Interface method definition.
   * *Available in versions >= 1.15*
   * 
* * Protobuf type {@code daml_lf_2.InterfaceMethod} */ public static final class InterfaceMethod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_InterfaceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.class, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder.class); } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; /** * .daml_lf_2.Type type = 3; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Type type = 3; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** * .daml_lf_2.Type type = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.InterfaceMethod other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.InterfaceMethod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.InterfaceMethod) com.daml.daml_lf_dev.DamlLf2.InterfaceMethodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceMethod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InterfaceMethod_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.class, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_InterfaceMethod_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod build() { com.daml.daml_lf_dev.DamlLf2.InterfaceMethod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod buildPartial() { com.daml.daml_lf_dev.DamlLf2.InterfaceMethod result = new com.daml.daml_lf_dev.DamlLf2.InterfaceMethod(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.InterfaceMethod)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.InterfaceMethod other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** * .daml_lf_2.Type type = 3; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Type type = 3; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_2.Type type = 3; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Type type = 3; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Type type = 3; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Type type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type type = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** * .daml_lf_2.Type type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceMethod) } // @@protoc_insertion_point(class_scope:daml_lf_2.InterfaceMethod) private static final com.daml.daml_lf_dev.DamlLf2.InterfaceMethod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.InterfaceMethod(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefInterface) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** * int32 tycon_interned_dname = 2; * @return The tyconInternedDname. */ int getTyconInternedDname(); /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ java.util.List getMethodsList(); /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ com.daml.daml_lf_dev.DamlLf2.InterfaceMethod getMethods(int index); /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ int getMethodsCount(); /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ java.util.List getMethodsOrBuilderList(); /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 5; */ java.util.List getChoicesList(); /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ com.daml.daml_lf_dev.DamlLf2.TemplateChoice getChoices(int index); /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ int getChoicesCount(); /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ java.util.List getChoicesOrBuilderList(); /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder getChoicesOrBuilder( int index); /** *
     * View type for this interface
     * 
* * .daml_lf_2.Type view = 6; * @return Whether the view field is set. */ boolean hasView(); /** *
     * View type for this interface
     * 
* * .daml_lf_2.Type view = 6; * @return The view. */ com.daml.daml_lf_dev.DamlLf2.Type getView(); /** *
     * View type for this interface
     * 
* * .daml_lf_2.Type view = 6; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getViewOrBuilder(); /** * repeated .daml_lf_2.TypeConName requires = 7; */ java.util.List getRequiresList(); /** * repeated .daml_lf_2.TypeConName requires = 7; */ com.daml.daml_lf_dev.DamlLf2.TypeConName getRequires(int index); /** * repeated .daml_lf_2.TypeConName requires = 7; */ int getRequiresCount(); /** * repeated .daml_lf_2.TypeConName requires = 7; */ java.util.List getRequiresOrBuilderList(); /** * repeated .daml_lf_2.TypeConName requires = 7; */ com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiresOrBuilder( int index); } /** *
   * Interface definition.
   * *Available in versions >= 1.15*
   * 
* * Protobuf type {@code daml_lf_2.DefInterface} */ public static final class DefInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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(); 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.DamlLf2.internal_static_daml_lf_2_DefInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefInterface.class, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder.class); } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceMethod methods = 3; */ @java.lang.Override public java.util.List getMethodsList() { return methods_; } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ @java.lang.Override public java.util.List getMethodsOrBuilderList() { return methods_; } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ @java.lang.Override public int getMethodsCount() { return methods_.size(); } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod getMethods(int index) { return methods_.get(index); } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 5; */ @java.lang.Override public java.util.List getChoicesList() { return choices_; } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ @java.lang.Override public java.util.List getChoicesOrBuilderList() { return choices_; } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ @java.lang.Override public int getChoicesCount() { return choices_.size(); } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoice getChoices(int index) { return choices_.get(index); } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { return choices_.get(index); } public static final int VIEW_FIELD_NUMBER = 6; private com.daml.daml_lf_dev.DamlLf2.Type view_; /** *
     * View type for this interface
     * 
* * .daml_lf_2.Type view = 6; * @return Whether the view field is set. */ @java.lang.Override public boolean hasView() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * View type for this interface
     * 
* * .daml_lf_2.Type view = 6; * @return The view. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getView() { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : view_; } /** *
     * View type for this interface
     * 
* * .daml_lf_2.Type view = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getViewOrBuilder() { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : view_; } public static final int REQUIRES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List requires_; /** * repeated .daml_lf_2.TypeConName requires = 7; */ @java.lang.Override public java.util.List getRequiresList() { return requires_; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ @java.lang.Override public java.util.List getRequiresOrBuilderList() { return requires_; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ @java.lang.Override public int getRequiresCount() { return requires_.size(); } /** * repeated .daml_lf_2.TypeConName requires = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequires(int index) { return requires_.get(index); } /** * repeated .daml_lf_2.TypeConName requires = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getView()); } for (int i = 0; i < requires_.size(); i++) { output.writeMessage(7, 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)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getView()); } for (int i = 0; i < requires_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, 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.DamlLf2.DefInterface)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefInterface other = (com.daml.daml_lf_dev.DamlLf2.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 (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 (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.DamlLf2.DefInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefInterface) com.daml.daml_lf_dev.DamlLf2.DefInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefInterface.class, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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(); 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); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = null; } if (requiresBuilder_ == null) { requires_ = java.util.Collections.emptyList(); } else { requires_ = null; requiresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefInterface_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefInterface getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefInterface.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefInterface build() { com.daml.daml_lf_dev.DamlLf2.DefInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefInterface buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefInterface result = new com.daml.daml_lf_dev.DamlLf2.DefInterface(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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 (requiresBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { requires_ = java.util.Collections.unmodifiableList(requires_); bitField0_ = (bitField0_ & ~0x00000040); } result.requires_ = requires_; } else { result.requires_ = requiresBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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_ & 0x00000020) != 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.DamlLf2.DefInterface) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefInterface other) { if (other == com.daml.daml_lf_dev.DamlLf2.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 (other.hasView()) { mergeView(other.getView()); } if (requiresBuilder_ == null) { if (!other.requires_.isEmpty()) { if (requires_.isEmpty()) { requires_ = other.requires_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureRequiresIsMutable(); requires_.addAll(other.requires_); } onChanged(); } } else { if (!other.requires_.isEmpty()) { if (requiresBuilder_.isEmpty()) { requiresBuilder_.dispose(); requiresBuilder_ = null; requires_ = other.requires_; bitField0_ = (bitField0_ & ~0x00000040); 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.DamlLf2.InterfaceMethod m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TemplateChoice m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.parser(), extensionRegistry); if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(m); } else { choicesBuilder_.addMessage(m); } break; } // case 42 case 50: { input.readMessage( getViewFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.daml.daml_lf_dev.DamlLf2.TypeConName m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.TypeConName.parser(), extensionRegistry); if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.add(m); } else { requiresBuilder_.addMessage(m); } break; } // case 58 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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InterfaceMethod, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceMethodOrBuilder> methodsBuilder_; /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public java.util.List getMethodsList() { if (methodsBuilder_ == null) { return java.util.Collections.unmodifiableList(methods_); } else { return methodsBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public int getMethodsCount() { if (methodsBuilder_ == null) { return methods_.size(); } else { return methodsBuilder_.getCount(); } } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod getMethods(int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceMethod methods = 3; */ public Builder setMethods( int index, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.set(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public Builder addMethods(com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceMethod methods = 3; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf2.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_2.InterfaceMethod methods = 3; */ public Builder addMethods( com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public Builder addMethods( int index, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder builderForValue) { if (methodsBuilder_ == null) { ensureMethodsIsMutable(); methods_.add(index, builderForValue.build()); onChanged(); } else { methodsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.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_2.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_2.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_2.InterfaceMethod methods = 3; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder getMethodsBuilder( int index) { return getMethodsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceMethodOrBuilder getMethodsOrBuilder( int index) { if (methodsBuilder_ == null) { return methods_.get(index); } else { return methodsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public java.util.List getMethodsOrBuilderList() { if (methodsBuilder_ != null) { return methodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(methods_); } } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder addMethodsBuilder() { return getMethodsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.getDefaultInstance()); } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder addMethodsBuilder( int index) { return getMethodsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.getDefaultInstance()); } /** * repeated .daml_lf_2.InterfaceMethod methods = 3; */ public java.util.List getMethodsBuilderList() { return getMethodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceMethod, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder, com.daml.daml_lf_dev.DamlLf2.InterfaceMethodOrBuilder> getMethodsFieldBuilder() { if (methodsBuilder_ == null) { methodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InterfaceMethod, com.daml.daml_lf_dev.DamlLf2.InterfaceMethod.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.TemplateChoice, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder> choicesBuilder_; /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public java.util.List getChoicesList() { if (choicesBuilder_ == null) { return java.util.Collections.unmodifiableList(choices_); } else { return choicesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public int getChoicesCount() { if (choicesBuilder_ == null) { return choices_.size(); } else { return choicesBuilder_.getCount(); } } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice getChoices(int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public Builder setChoices( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 5; */ public Builder setChoices( int index, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.set(index, builderForValue.build()); onChanged(); } else { choicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public Builder addChoices(com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 5; */ public Builder addChoices( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TemplateChoice choices = 5; */ public Builder addChoices( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(builderForValue.build()); onChanged(); } else { choicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public Builder addChoices( int index, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(index, builderForValue.build()); onChanged(); } else { choicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.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_2.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_2.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_2.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder getChoicesBuilder( int index) { return getChoicesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder getChoicesOrBuilder( int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public java.util.List getChoicesOrBuilderList() { if (choicesBuilder_ != null) { return choicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(choices_); } } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder addChoicesBuilder() { return getChoicesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TemplateChoice.getDefaultInstance()); } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder addChoicesBuilder( int index) { return getChoicesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.getDefaultInstance()); } /** * repeated .daml_lf_2.TemplateChoice choices = 5; */ public java.util.List getChoicesBuilderList() { return getChoicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TemplateChoice, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder> getChoicesFieldBuilder() { if (choicesBuilder_ == null) { choicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TemplateChoice, com.daml.daml_lf_dev.DamlLf2.TemplateChoice.Builder, com.daml.daml_lf_dev.DamlLf2.TemplateChoiceOrBuilder>( choices_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); choices_ = null; } return choicesBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Type view_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> viewBuilder_; /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; * @return The view. */ public com.daml.daml_lf_dev.DamlLf2.Type getView() { if (viewBuilder_ == null) { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : view_; } else { return viewBuilder_.getMessage(); } } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ public Builder setView(com.daml.daml_lf_dev.DamlLf2.Type value) { if (viewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } view_ = value; } else { viewBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ public Builder setView( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { viewBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ public Builder mergeView(com.daml.daml_lf_dev.DamlLf2.Type value) { if (viewBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && view_ != null && view_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; } } else { viewBuilder_.mergeFrom(value); } if (view_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ public Builder clearView() { bitField0_ = (bitField0_ & ~0x00000020); view_ = null; if (viewBuilder_ != null) { viewBuilder_.dispose(); viewBuilder_ = null; } onChanged(); return this; } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getViewBuilder() { bitField0_ |= 0x00000020; onChanged(); return getViewFieldBuilder().getBuilder(); } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { return view_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : view_; } } /** *
       * View type for this interface
       * 
* * .daml_lf_2.Type view = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getViewFieldBuilder() { if (viewBuilder_ == null) { viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder>( getView(), getParentForChildren(), isClean()); view_ = null; } return viewBuilder_; } private java.util.List requires_ = java.util.Collections.emptyList(); private void ensureRequiresIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { requires_ = new java.util.ArrayList(requires_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> requiresBuilder_; /** * repeated .daml_lf_2.TypeConName requires = 7; */ public java.util.List getRequiresList() { if (requiresBuilder_ == null) { return java.util.Collections.unmodifiableList(requires_); } else { return requiresBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public int getRequiresCount() { if (requiresBuilder_ == null) { return requires_.size(); } else { return requiresBuilder_.getCount(); } } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName getRequires(int index) { if (requiresBuilder_ == null) { return requires_.get(index); } else { return requiresBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder setRequires( int index, com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiresIsMutable(); requires_.set(index, value); onChanged(); } else { requiresBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder setRequires( int index, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.set(index, builderForValue.build()); onChanged(); } else { requiresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder addRequires(com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiresIsMutable(); requires_.add(value); onChanged(); } else { requiresBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder addRequires( int index, com.daml.daml_lf_dev.DamlLf2.TypeConName value) { if (requiresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiresIsMutable(); requires_.add(index, value); onChanged(); } else { requiresBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder addRequires( com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.add(builderForValue.build()); onChanged(); } else { requiresBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder addRequires( int index, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder builderForValue) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.add(index, builderForValue.build()); onChanged(); } else { requiresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder addAllRequires( java.lang.Iterable values) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requires_); onChanged(); } else { requiresBuilder_.addAllMessages(values); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder clearRequires() { if (requiresBuilder_ == null) { requires_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { requiresBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public Builder removeRequires(int index) { if (requiresBuilder_ == null) { ensureRequiresIsMutable(); requires_.remove(index); onChanged(); } else { requiresBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder getRequiresBuilder( int index) { return getRequiresFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder getRequiresOrBuilder( int index) { if (requiresBuilder_ == null) { return requires_.get(index); } else { return requiresBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public java.util.List getRequiresOrBuilderList() { if (requiresBuilder_ != null) { return requiresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requires_); } } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder addRequiresBuilder() { return getRequiresFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()); } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder addRequiresBuilder( int index) { return getRequiresFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TypeConName.getDefaultInstance()); } /** * repeated .daml_lf_2.TypeConName requires = 7; */ public java.util.List getRequiresBuilderList() { return getRequiresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder> getRequiresFieldBuilder() { if (requiresBuilder_ == null) { requiresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeConName, com.daml.daml_lf_dev.DamlLf2.TypeConName.Builder, com.daml.daml_lf_dev.DamlLf2.TypeConNameOrBuilder>( requires_, ((bitField0_ & 0x00000040) != 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_2.DefInterface) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefInterface) private static final com.daml.daml_lf_dev.DamlLf2.DefInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefInterface(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefExceptionOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefException) com.google.protobuf.MessageOrBuilder { /** *
     * *Must be a valid interned dotted name*
     * 
* * int32 name_interned_dname = 1; * @return The nameInternedDname. */ int getNameInternedDname(); /** * .daml_lf_2.Location location = 2; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 2; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 2; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** * .daml_lf_2.Expr message = 3; * @return Whether the message field is set. */ boolean hasMessage(); /** * .daml_lf_2.Expr message = 3; * @return The message. */ com.daml.daml_lf_dev.DamlLf2.Expr getMessage(); /** * .daml_lf_2.Expr message = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getMessageOrBuilder(); } /** *
   * Exception definition
   * 
* * Protobuf type {@code daml_lf_2.DefException} */ public static final class DefException extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefException.class, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 2; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 2; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int MESSAGE_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr message_; /** * .daml_lf_2.Expr message = 3; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Expr message = 3; * @return The message. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getMessage() { return message_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : message_; } /** * .daml_lf_2.Expr message = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getMessageOrBuilder() { return message_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefException)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefException other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefException parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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
     * 
* * Protobuf type {@code daml_lf_2.DefException} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefException) com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefException_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefException_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefException.class, com.daml.daml_lf_dev.DamlLf2.DefException.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_DefException_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefException getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefException.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefException build() { com.daml.daml_lf_dev.DamlLf2.DefException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefException buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefException result = new com.daml.daml_lf_dev.DamlLf2.DefException(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefException) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefException other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 2; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Location location = 2; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 2; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Location location = 2; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.Location location = 2; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.Location location = 2; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000002); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 2; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 2; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr message_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> messageBuilder_; /** * .daml_lf_2.Expr message = 3; * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr message = 3; * @return The message. */ public com.daml.daml_lf_dev.DamlLf2.Expr getMessage() { if (messageBuilder_ == null) { return message_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** * .daml_lf_2.Expr message = 3; */ public Builder setMessage(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; } else { messageBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr message = 3; */ public Builder setMessage( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); } else { messageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr message = 3; */ public Builder mergeMessage(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (messageBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && message_ != null && message_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; } } else { messageBuilder_.mergeFrom(value); } if (message_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr message = 3; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = null; if (messageBuilder_ != null) { messageBuilder_.dispose(); messageBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr message = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getMessageBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMessageFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr message = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { return message_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : message_; } } /** * .daml_lf_2.Expr message = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.DefException) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefException) private static final com.daml.daml_lf_dev.DamlLf2.DefException DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefException(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefException getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefDataTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefDataType) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** *
     * name of the defined data type
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ int getNameInternedDname(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ java.util.List getParamsList(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParams(int index); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ int getParamsCount(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ java.util.List getParamsOrBuilderList(); /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamsOrBuilder( int index); /** *
     * 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 = 4; * @return The serializable. */ boolean getSerializable(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields record = 5; * @return Whether the record field is set. */ boolean hasRecord(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields record = 5; * @return The record. */ com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getRecord(); /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder getRecordOrBuilder(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields variant = 6; * @return Whether the variant field is set. */ boolean hasVariant(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields variant = 6; * @return The variant. */ com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getVariant(); /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder getVariantOrBuilder(); /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; * @return Whether the enum field is set. */ boolean hasEnum(); /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; * @return The enum. */ com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors getEnum(); /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; */ com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder(); /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_2.Unit interface = 8; * @return Whether the interface field is set. */ boolean hasInterface(); /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_2.Unit interface = 8; * @return The interface. */ com.daml.daml_lf_dev.DamlLf2.Unit getInterface(); /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_2.Unit interface = 8; */ com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getInterfaceOrBuilder(); com.daml.daml_lf_dev.DamlLf2.DefDataType.DataConsCase getDataConsCase(); } /** *
   * Data type definition
   * 
* * Protobuf type {@code daml_lf_2.DefDataType} */ public static final class DefDataType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefDataType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefDataType.class, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder.class); } public interface FieldsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefDataType.Fields) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_2.FieldWithType fields = 1; */ java.util.List getFieldsList(); /** * repeated .daml_lf_2.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf2.FieldWithType getFields(int index); /** * repeated .daml_lf_2.FieldWithType fields = 1; */ int getFieldsCount(); /** * repeated .daml_lf_2.FieldWithType fields = 1; */ java.util.List getFieldsOrBuilderList(); /** * repeated .daml_lf_2.FieldWithType fields = 1; */ com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder getFieldsOrBuilder( int index); } /** * Protobuf type {@code daml_lf_2.DefDataType.Fields} */ public static final class Fields extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefDataType_Fields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_Fields_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.class, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List fields_; /** * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FieldWithType getFields(int index) { return fields_.get(index); } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.Fields)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.Fields parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.Fields parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.Fields parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefDataType.Fields} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefDataType.Fields) com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_Fields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_Fields_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.class, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_DefDataType_Fields_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields build() { com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields result = new com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.DefDataType.Fields) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FieldWithType, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder> fieldsBuilder_; /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder setFields( int index, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public Builder addFields(com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.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_2.FieldWithType fields = 1; */ public Builder addFields( com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public Builder addFields( int index, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.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_2.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_2.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_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.FieldWithType.getDefaultInstance()); } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.FieldWithType.getDefaultInstance()); } /** * repeated .daml_lf_2.FieldWithType fields = 1; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithType, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf2.FieldWithTypeOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FieldWithType, com.daml.daml_lf_dev.DamlLf2.FieldWithType.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.DefDataType.Fields) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefDataType.Fields) private static final com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.Fields getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumConstructorsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefDataType.EnumConstructors) com.google.protobuf.MessageOrBuilder { /** *
       * *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_2.DefDataType.EnumConstructors} */ public static final class EnumConstructors extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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() { 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.DamlLf2.internal_static_daml_lf_2_DefDataType_EnumConstructors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_EnumConstructors_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.class, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder.class); } 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(); 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 < 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.DamlLf2.DefDataType.EnumConstructors)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors other = (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) obj; 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 (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.DamlLf2.DefDataType.EnumConstructors parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.EnumConstructors parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.EnumConstructors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefDataType.EnumConstructors} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefDataType.EnumConstructors) com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_EnumConstructors_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_EnumConstructors_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.class, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; constructorsInternedStr_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_EnumConstructors_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors build() { com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors result = new com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 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.DamlLf2.DefDataType.EnumConstructors) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance()) return this; if (!other.constructorsInternedStr_.isEmpty()) { if (constructorsInternedStr_.isEmpty()) { constructorsInternedStr_ = other.constructorsInternedStr_; constructorsInternedStr_.makeImmutable(); bitField0_ |= 0x00000001; } 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 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.Internal.IntList constructorsInternedStr_ = emptyIntList(); private void ensureConstructorsInternedStrIsMutable() { if (!constructorsInternedStr_.isModifiable()) { constructorsInternedStr_ = makeMutableCopy(constructorsInternedStr_); } bitField0_ |= 0x00000001; } /** *
         * *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_ |= 0x00000001; 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_ |= 0x00000001; 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_ |= 0x00000001; 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_ & ~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_2.DefDataType.EnumConstructors) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefDataType.EnumConstructors) private static final com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType.EnumConstructors getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; 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(5), VARIANT(6), ENUM(7), INTERFACE(8), 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 5: return RECORD; case 6: return VARIANT; case 7: return ENUM; case 8: 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 LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 2; private int nameInternedDname_ = 0; /** *
     * name of the defined data type
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } public static final int PARAMS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List params_; /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParams(int index) { return params_.get(index); } /** *
     * type parameters
     * *Must be empty if enum field is set*
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int SERIALIZABLE_FIELD_NUMBER = 4; 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 = 4; * @return The serializable. */ @java.lang.Override public boolean getSerializable() { return serializable_; } public static final int RECORD_FIELD_NUMBER = 5; /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields record = 5; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return dataConsCase_ == 5; } /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields record = 5; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getRecord() { if (dataConsCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } /** *
     * Records without fields are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder getRecordOrBuilder() { if (dataConsCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } public static final int VARIANT_FIELD_NUMBER = 6; /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields variant = 6; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return dataConsCase_ == 6; } /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields variant = 6; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getVariant() { if (dataConsCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } /** *
     * Variants without constructors are explicitly allowed.
     * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder getVariantOrBuilder() { if (dataConsCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } public static final int ENUM_FIELD_NUMBER = 7; /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return dataConsCase_ == 7; } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors getEnum() { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder() { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } public static final int INTERFACE_FIELD_NUMBER = 8; /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_2.Unit interface = 8; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return dataConsCase_ == 8; } /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_2.Unit interface = 8; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getInterface() { if (dataConsCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } /** *
     * Interfaces are special, they can't be represented as records or variants.
     * 
* * .daml_lf_2.Unit interface = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getInterfaceOrBuilder() { if (dataConsCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLocation()); } if (nameInternedDname_ != 0) { output.writeInt32(2, nameInternedDname_); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(3, params_.get(i)); } if (serializable_ != false) { output.writeBool(4, serializable_); } if (dataConsCase_ == 5) { output.writeMessage(5, (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 6) { output.writeMessage(6, (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 7) { output.writeMessage(7, (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_); } if (dataConsCase_ == 8) { output.writeMessage(8, (com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_); } 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 (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, nameInternedDname_); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, params_.get(i)); } if (serializable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, serializable_); } if (dataConsCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_); } if (dataConsCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_); } if (dataConsCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefDataType other = (com.daml.daml_lf_dev.DamlLf2.DefDataType) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (getNameInternedDname() != other.getNameInternedDname()) return false; if (!getParamsList() .equals(other.getParamsList())) return false; if (getSerializable() != other.getSerializable()) return false; if (!getDataConsCase().equals(other.getDataConsCase())) return false; switch (dataConsCase_) { case 5: if (!getRecord() .equals(other.getRecord())) return false; break; case 6: if (!getVariant() .equals(other.getVariant())) return false; break; case 7: if (!getEnum() .equals(other.getEnum())) return false; break; case 8: 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 (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); 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()); switch (dataConsCase_) { case 5: hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); break; case 6: 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 8: 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.DamlLf2.DefDataType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefDataType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefDataType) com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefDataType.class, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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) { getLocationFieldBuilder(); getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } nameInternedDname_ = 0; if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); } else { params_ = null; paramsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); serializable_ = false; if (recordBuilder_ != null) { recordBuilder_.clear(); } if (variantBuilder_ != null) { variantBuilder_.clear(); } if (enumBuilder_ != null) { enumBuilder_.clear(); } if (interfaceBuilder_ != null) { interfaceBuilder_.clear(); } dataConsCase_ = 0; dataCons_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefDataType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefDataType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType build() { com.daml.daml_lf_dev.DamlLf2.DefDataType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefDataType result = new com.daml.daml_lf_dev.DamlLf2.DefDataType(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType 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.nameInternedDname_ = nameInternedDname_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.serializable_ = serializable_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.daml.daml_lf_dev.DamlLf2.DefDataType result) { result.dataConsCase_ = dataConsCase_; result.dataCons_ = this.dataCons_; if (dataConsCase_ == 5 && recordBuilder_ != null) { result.dataCons_ = recordBuilder_.build(); } if (dataConsCase_ == 6 && variantBuilder_ != null) { result.dataCons_ = variantBuilder_.build(); } if (dataConsCase_ == 7 && enumBuilder_ != null) { result.dataCons_ = enumBuilder_.build(); } if (dataConsCase_ == 8 && 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.DamlLf2.DefDataType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefDataType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefDataType other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefDataType.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } 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()); } 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( getLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } break; } // case 26 case 32: { serializable_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 5; break; } // case 42 case 50: { input.readMessage( getVariantFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 6; break; } // case 50 case 58: { input.readMessage( getEnumFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 7; break; } // case 58 case 66: { input.readMessage( getInterfaceFieldBuilder().getBuilder(), extensionRegistry); dataConsCase_ = 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 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.daml.daml_lf_dev.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private int nameInternedDname_ ; /** *
       * name of the defined data type
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * name of the defined data type
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * name of the defined data type
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); nameInternedDname_ = 0; 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.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> paramsBuilder_; /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams(com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams( com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * *Must be empty if enum field is set*
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder>( params_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } 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 = 4; * @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 = 4; * @param value The serializable to set. * @return This builder for chaining. */ public Builder setSerializable(boolean value) { serializable_ = value; bitField0_ |= 0x00000008; 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 = 4; * @return This builder for chaining. */ public Builder clearSerializable() { bitField0_ = (bitField0_ & ~0x00000008); serializable_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder> recordBuilder_; /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return dataConsCase_ == 5; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; * @return The record. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getRecord() { if (recordBuilder_ == null) { if (dataConsCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } else { if (dataConsCase_ == 5) { return recordBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ public Builder setRecord(com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } dataConsCase_ = 5; return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ public Builder setRecord( com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder builderForValue) { if (recordBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 5; return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ public Builder mergeRecord(com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields value) { if (recordBuilder_ == null) { if (dataConsCase_ == 5 && dataCons_ != com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.newBuilder((com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 5) { recordBuilder_.mergeFrom(value); } else { recordBuilder_.setMessage(value); } } dataConsCase_ = 5; return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ public Builder clearRecord() { if (recordBuilder_ == null) { if (dataConsCase_ == 5) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 5) { dataConsCase_ = 0; dataCons_ = null; } recordBuilder_.clear(); } return this; } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder getRecordBuilder() { return getRecordFieldBuilder().getBuilder(); } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder getRecordOrBuilder() { if ((dataConsCase_ == 5) && (recordBuilder_ != null)) { return recordBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 5) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Records without fields are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields record = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { if (!(dataConsCase_ == 5)) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 5; onChanged(); return recordBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder> variantBuilder_; /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; * @return Whether the variant field is set. */ @java.lang.Override public boolean hasVariant() { return dataConsCase_ == 6; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; * @return The variant. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields getVariant() { if (variantBuilder_ == null) { if (dataConsCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } else { if (dataConsCase_ == 6) { return variantBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ public Builder setVariant(com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields value) { if (variantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { variantBuilder_.setMessage(value); } dataConsCase_ = 6; return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ public Builder setVariant( com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder builderForValue) { if (variantBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { variantBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 6; return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ public Builder mergeVariant(com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields value) { if (variantBuilder_ == null) { if (dataConsCase_ == 6 && dataCons_ != com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.newBuilder((com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 6) { variantBuilder_.mergeFrom(value); } else { variantBuilder_.setMessage(value); } } dataConsCase_ = 6; return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ public Builder clearVariant() { if (variantBuilder_ == null) { if (dataConsCase_ == 6) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 6) { dataConsCase_ = 0; dataCons_ = null; } variantBuilder_.clear(); } return this; } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder getVariantBuilder() { return getVariantFieldBuilder().getBuilder(); } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder getVariantOrBuilder() { if ((dataConsCase_ == 6) && (variantBuilder_ != null)) { return variantBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 6) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } } /** *
       * Variants without constructors are explicitly allowed.
       * 
* * .daml_lf_2.DefDataType.Fields variant = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder> getVariantFieldBuilder() { if (variantBuilder_ == null) { if (!(dataConsCase_ == 6)) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.getDefaultInstance(); } variantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields, com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.FieldsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.DefDataType.Fields) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 6; onChanged(); return variantBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder> enumBuilder_; /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; * @return Whether the enum field is set. */ @java.lang.Override public boolean hasEnum() { return dataConsCase_ == 7; } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; * @return The enum. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors getEnum() { if (enumBuilder_ == null) { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } else { if (dataConsCase_ == 7) { return enumBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; */ public Builder setEnum(com.daml.daml_lf_dev.DamlLf2.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_2.DefDataType.EnumConstructors enum = 7; */ public Builder setEnum( com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder builderForValue) { if (enumBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { enumBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 7; return this; } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; */ public Builder mergeEnum(com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors value) { if (enumBuilder_ == null) { if (dataConsCase_ == 7 && dataCons_ != com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.newBuilder((com.daml.daml_lf_dev.DamlLf2.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_2.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_2.DefDataType.EnumConstructors enum = 7; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder getEnumBuilder() { return getEnumFieldBuilder().getBuilder(); } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder getEnumOrBuilder() { if ((dataConsCase_ == 7) && (enumBuilder_ != null)) { return enumBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 7) { return (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } } /** * .daml_lf_2.DefDataType.EnumConstructors enum = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder> getEnumFieldBuilder() { if (enumBuilder_ == null) { if (!(dataConsCase_ == 7)) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.getDefaultInstance(); } enumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructorsOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.DefDataType.EnumConstructors) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 7; onChanged(); return enumBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> interfaceBuilder_; /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; * @return Whether the interface field is set. */ @java.lang.Override public boolean hasInterface() { return dataConsCase_ == 8; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; * @return The interface. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Unit getInterface() { if (interfaceBuilder_ == null) { if (dataConsCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } else { if (dataConsCase_ == 8) { return interfaceBuilder_.getMessage(); } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ public Builder setInterface(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (interfaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCons_ = value; onChanged(); } else { interfaceBuilder_.setMessage(value); } dataConsCase_ = 8; return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ public Builder setInterface( com.daml.daml_lf_dev.DamlLf2.Unit.Builder builderForValue) { if (interfaceBuilder_ == null) { dataCons_ = builderForValue.build(); onChanged(); } else { interfaceBuilder_.setMessage(builderForValue.build()); } dataConsCase_ = 8; return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ public Builder mergeInterface(com.daml.daml_lf_dev.DamlLf2.Unit value) { if (interfaceBuilder_ == null) { if (dataConsCase_ == 8 && dataCons_ != com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance()) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.Unit.newBuilder((com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_) .mergeFrom(value).buildPartial(); } else { dataCons_ = value; } onChanged(); } else { if (dataConsCase_ == 8) { interfaceBuilder_.mergeFrom(value); } else { interfaceBuilder_.setMessage(value); } } dataConsCase_ = 8; return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ public Builder clearInterface() { if (interfaceBuilder_ == null) { if (dataConsCase_ == 8) { dataConsCase_ = 0; dataCons_ = null; onChanged(); } } else { if (dataConsCase_ == 8) { dataConsCase_ = 0; dataCons_ = null; } interfaceBuilder_.clear(); } return this; } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ public com.daml.daml_lf_dev.DamlLf2.Unit.Builder getInterfaceBuilder() { return getInterfaceFieldBuilder().getBuilder(); } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder getInterfaceOrBuilder() { if ((dataConsCase_ == 8) && (interfaceBuilder_ != null)) { return interfaceBuilder_.getMessageOrBuilder(); } else { if (dataConsCase_ == 8) { return (com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_; } return com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } } /** *
       * Interfaces are special, they can't be represented as records or variants.
       * 
* * .daml_lf_2.Unit interface = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder> getInterfaceFieldBuilder() { if (interfaceBuilder_ == null) { if (!(dataConsCase_ == 8)) { dataCons_ = com.daml.daml_lf_dev.DamlLf2.Unit.getDefaultInstance(); } interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Unit, com.daml.daml_lf_dev.DamlLf2.Unit.Builder, com.daml.daml_lf_dev.DamlLf2.UnitOrBuilder>( (com.daml.daml_lf_dev.DamlLf2.Unit) dataCons_, getParentForChildren(), isClean()); dataCons_ = null; } dataConsCase_ = 8; onChanged(); return interfaceBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:daml_lf_2.DefDataType) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefDataType) private static final com.daml.daml_lf_dev.DamlLf2.DefDataType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefDataType(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefDataType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefTypeSynOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefTypeSyn) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** *
     * name of the defined type synonym
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ int getNameInternedDname(); /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ java.util.List getParamsList(); /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParams(int index); /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ int getParamsCount(); /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ java.util.List getParamsOrBuilderList(); /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamsOrBuilder( int index); /** * .daml_lf_2.Type type = 4; * @return Whether the type field is set. */ boolean hasType(); /** * .daml_lf_2.Type type = 4; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** * .daml_lf_2.Type type = 4; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder(); } /** *
   * Type synonym definition
   * *Available in versions >= 1.8*
   * 
* * Protobuf type {@code daml_lf_2.DefTypeSyn} */ public static final class DefTypeSyn extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefTypeSyn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTypeSyn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.class, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder.class); } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 2; private int nameInternedDname_ = 0; /** *
     * name of the defined type synonym
     * *Must be a valid interned name*
     * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } public static final int PARAMS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List params_; /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParams(int index) { return params_.get(index); } /** *
     * type parameters
     * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int TYPE_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.Type type_; /** * .daml_lf_2.Type type = 4; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.Type type = 4; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** * .daml_lf_2.Type type = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (nameInternedDname_ != 0) { output.writeInt32(2, nameInternedDname_); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(3, params_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, 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 (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, nameInternedDname_); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, params_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, 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.DamlLf2.DefTypeSyn)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefTypeSyn other = (com.daml.daml_lf_dev.DamlLf2.DefTypeSyn) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (getNameInternedDname() != other.getNameInternedDname()) return false; if (!getParamsList() .equals(other.getParamsList())) 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) + NAME_INTERNED_DNAME_FIELD_NUMBER; hash = (53 * hash) + getNameInternedDname(); 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.DefTypeSyn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTypeSyn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTypeSyn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefTypeSyn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefTypeSyn) com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTypeSyn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTypeSyn_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.class, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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) { getLocationFieldBuilder(); getParamsFieldBuilder(); getTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } nameInternedDname_ = 0; 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; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefTypeSyn_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn build() { com.daml.daml_lf_dev.DamlLf2.DefTypeSyn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefTypeSyn result = new com.daml.daml_lf_dev.DamlLf2.DefTypeSyn(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTypeSyn 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.nameInternedDname_ = nameInternedDname_; } if (((from_bitField0_ & 0x00000008) != 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.DamlLf2.DefTypeSyn) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefTypeSyn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefTypeSyn other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } 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()); } 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: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getTypeFieldBuilder().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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private int nameInternedDname_ ; /** *
       * name of the defined type synonym
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
       * name of the defined type synonym
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @param value The nameInternedDname to set. * @return This builder for chaining. */ public Builder setNameInternedDname(int value) { nameInternedDname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * name of the defined type synonym
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 2; * @return This builder for chaining. */ public Builder clearNameInternedDname() { bitField0_ = (bitField0_ & ~0x00000002); nameInternedDname_ = 0; 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.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> paramsBuilder_; /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder setParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams(com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ public Builder addParams( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public Builder addParams( int index, com.daml.daml_lf_dev.DamlLf2.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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ 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_2.TypeVarWithKind params = 3; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.getDefaultInstance()); } /** *
       * type parameters
       * 
* * repeated .daml_lf_2.TypeVarWithKind params = 3; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKind.Builder, com.daml.daml_lf_dev.DamlLf2.TypeVarWithKindOrBuilder>( params_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** * .daml_lf_2.Type type = 4; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.Type type = 4; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * .daml_lf_2.Type type = 4; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Type type = 4; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.Type type = 4; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.Type type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Type type = 4; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.Type type = 4; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** * .daml_lf_2.Type type = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.DefTypeSyn) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefTypeSyn) private static final com.daml.daml_lf_dev.DamlLf2.DefTypeSyn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefTypeSyn(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefTypeSyn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DefValueOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefValue) com.google.protobuf.MessageOrBuilder { /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ boolean hasLocation(); /** * .daml_lf_2.Location location = 1; * @return The location. */ com.daml.daml_lf_dev.DamlLf2.Location getLocation(); /** * .daml_lf_2.Location location = 1; */ com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder(); /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; * @return Whether the nameWithType field is set. */ boolean hasNameWithType(); /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; * @return The nameWithType. */ com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType getNameWithType(); /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder(); /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ boolean hasExpr(); /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ com.daml.daml_lf_dev.DamlLf2.Expr getExpr(); /** * .daml_lf_2.Expr expr = 3; */ com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder(); /** *
     * *Available in versions >= 2.dev*
     * 
* * bool is_test = 1000; * @return The isTest. */ boolean getIsTest(); } /** *
   * Value definition
   * 
* * Protobuf type {@code daml_lf_2.DefValue} */ public static final class DefValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_DefValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefValue.class, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder.class); } public interface NameWithTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.DefValue.NameWithType) com.google.protobuf.MessageOrBuilder { /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 1; * @return The nameInternedDname. */ int getNameInternedDname(); /** *
       * Type of the value
       * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ boolean hasType(); /** *
       * Type of the value
       * 
* * .daml_lf_2.Type type = 2; * @return The type. */ com.daml.daml_lf_dev.DamlLf2.Type getType(); /** *
       * Type of the value
       * 
* * .daml_lf_2.Type type = 2; */ com.daml.daml_lf_dev.DamlLf2.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_2.DefValue.NameWithType} */ public static final class NameWithType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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() { } @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.DamlLf2.internal_static_daml_lf_2_DefValue_NameWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_NameWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.class, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder.class); } private int bitField0_; public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 1; private int nameInternedDname_ = 0; /** *
       * *Must be a valid interned name*
       * 
* * int32 name_interned_dname = 1; * @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.DamlLf2.Type type_; /** *
       * Type of the value
       * 
* * .daml_lf_2.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_2.Type type = 2; * @return The type. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Type getType() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } /** *
       * Type of the value
       * 
* * .daml_lf_2.Type type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.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 (nameInternedDname_ != 0) { output.writeInt32(1, nameInternedDname_); } 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 (nameInternedDname_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, nameInternedDname_); } 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.DamlLf2.DefValue.NameWithType)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType other = (com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType) obj; 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(); 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.DamlLf2.DefValue.NameWithType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefValue.NameWithType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefValue.NameWithType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefValue.NameWithType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefValue.NameWithType) com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_NameWithType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_NameWithType_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.class, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; 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.DamlLf2.internal_static_daml_lf_2_DefValue_NameWithType_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType build() { com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType result = new com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nameInternedDname_ = nameInternedDname_; } 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.DamlLf2.DefValue.NameWithType) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance()) return this; 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 8: { nameInternedDname_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 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 int nameInternedDname_ ; /** *
         * *Must be a valid interned name*
         * 
* * int32 name_interned_dname = 1; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** *
         * *Must be a valid interned 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 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.DamlLf2.Type type_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> typeBuilder_; /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; * @return The type. */ public com.daml.daml_lf_dev.DamlLf2.Type getType() { if (typeBuilder_ == null) { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ public Builder setType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; } else { typeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ public Builder setType( com.daml.daml_lf_dev.DamlLf2.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { typeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ public Builder mergeType(com.daml.daml_lf_dev.DamlLf2.Type value) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && type_ != null && type_ != com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; } } else { typeBuilder_.mergeFrom(value); } if (type_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = null; if (typeBuilder_ != null) { typeBuilder_.dispose(); typeBuilder_ = null; } onChanged(); return this; } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder getTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ public com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance() : type_; } } /** *
         * Type of the value
         * 
* * .daml_lf_2.Type type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.DefValue.NameWithType) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefValue.NameWithType) private static final com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefValue.NameWithType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.daml.daml_lf_dev.DamlLf2.Location location_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } /** * .daml_lf_2.Location location = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } public static final int NAME_WITH_TYPE_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType nameWithType_; /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; * @return Whether the nameWithType field is set. */ @java.lang.Override public boolean hasNameWithType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; * @return The nameWithType. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType getNameWithType() { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder() { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } public static final int EXPR_FIELD_NUMBER = 3; private com.daml.daml_lf_dev.DamlLf2.Expr expr_; /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ @java.lang.Override public boolean hasExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } /** * .daml_lf_2.Expr expr = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } public static final int IS_TEST_FIELD_NUMBER = 1000; private boolean isTest_ = false; /** *
     * *Available in versions >= 2.dev*
     * 
* * bool is_test = 1000; * @return The isTest. */ @java.lang.Override public boolean getIsTest() { return isTest_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; 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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getNameWithType()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getExpr()); } if (isTest_ != false) { output.writeBool(1000, isTest_); } 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNameWithType()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExpr()); } if (isTest_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1000, isTest_); } 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.DamlLf2.DefValue)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.DefValue other = (com.daml.daml_lf_dev.DamlLf2.DefValue) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } 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 (getIsTest() != other.getIsTest()) 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(); } 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) + IS_TEST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsTest()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.DefValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.DefValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.DefValue) com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.DefValue.class, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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) { getLocationFieldBuilder(); getNameWithTypeFieldBuilder(); getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } nameWithType_ = null; if (nameWithTypeBuilder_ != null) { nameWithTypeBuilder_.dispose(); nameWithTypeBuilder_ = null; } expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } isTest_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_DefValue_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.DefValue.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue build() { com.daml.daml_lf_dev.DamlLf2.DefValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue buildPartial() { com.daml.daml_lf_dev.DamlLf2.DefValue result = new com.daml.daml_lf_dev.DamlLf2.DefValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.DefValue 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.nameWithType_ = nameWithTypeBuilder_ == null ? nameWithType_ : nameWithTypeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.expr_ = exprBuilder_ == null ? expr_ : exprBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.isTest_ = isTest_; } 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.DamlLf2.DefValue) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.DefValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.DefValue other) { if (other == com.daml.daml_lf_dev.DamlLf2.DefValue.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.hasNameWithType()) { mergeNameWithType(other.getNameWithType()); } if (other.hasExpr()) { mergeExpr(other.getExpr()); } if (other.getIsTest() != false) { setIsTest(other.getIsTest()); } 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 18: { input.readMessage( getNameWithTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExprFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 8000: { isTest_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 8000 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.DamlLf2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> locationBuilder_; /** * .daml_lf_2.Location location = 1; * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.Location location = 1; * @return The location. */ public com.daml.daml_lf_dev.DamlLf2.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder setLocation( com.daml.daml_lf_dev.DamlLf2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public Builder mergeLocation(com.daml.daml_lf_dev.DamlLf2.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .daml_lf_2.Location location = 1; */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * .daml_lf_2.Location location = 1; */ public com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.daml.daml_lf_dev.DamlLf2.Location.getDefaultInstance() : location_; } } /** * .daml_lf_2.Location location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Location, com.daml.daml_lf_dev.DamlLf2.Location.Builder, com.daml.daml_lf_dev.DamlLf2.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType nameWithType_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder> nameWithTypeBuilder_; /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; * @return Whether the nameWithType field is set. */ public boolean hasNameWithType() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; * @return The nameWithType. */ public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType getNameWithType() { if (nameWithTypeBuilder_ == null) { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } else { return nameWithTypeBuilder_.getMessage(); } } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ public Builder setNameWithType(com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType value) { if (nameWithTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nameWithType_ = value; } else { nameWithTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ public Builder setNameWithType( com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder builderForValue) { if (nameWithTypeBuilder_ == null) { nameWithType_ = builderForValue.build(); } else { nameWithTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ public Builder mergeNameWithType(com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType value) { if (nameWithTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && nameWithType_ != null && nameWithType_ != com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance()) { getNameWithTypeBuilder().mergeFrom(value); } else { nameWithType_ = value; } } else { nameWithTypeBuilder_.mergeFrom(value); } if (nameWithType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ public Builder clearNameWithType() { bitField0_ = (bitField0_ & ~0x00000002); nameWithType_ = null; if (nameWithTypeBuilder_ != null) { nameWithTypeBuilder_.dispose(); nameWithTypeBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder getNameWithTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNameWithTypeFieldBuilder().getBuilder(); } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ public com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder getNameWithTypeOrBuilder() { if (nameWithTypeBuilder_ != null) { return nameWithTypeBuilder_.getMessageOrBuilder(); } else { return nameWithType_ == null ? com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.getDefaultInstance() : nameWithType_; } } /** * .daml_lf_2.DefValue.NameWithType name_with_type = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder> getNameWithTypeFieldBuilder() { if (nameWithTypeBuilder_ == null) { nameWithTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithType.Builder, com.daml.daml_lf_dev.DamlLf2.DefValue.NameWithTypeOrBuilder>( getNameWithType(), getParentForChildren(), isClean()); nameWithType_ = null; } return nameWithTypeBuilder_; } private com.daml.daml_lf_dev.DamlLf2.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> exprBuilder_; /** * .daml_lf_2.Expr expr = 3; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000004) != 0); } /** * .daml_lf_2.Expr expr = 3; * @return The expr. */ public com.daml.daml_lf_dev.DamlLf2.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * .daml_lf_2.Expr expr = 3; */ public Builder setExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder setExpr( com.daml.daml_lf_dev.DamlLf2.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder mergeExpr(com.daml.daml_lf_dev.DamlLf2.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && expr_ != null && expr_ != com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance()) { getExprBuilder().mergeFrom(value); } else { expr_ = value; } } else { exprBuilder_.mergeFrom(value); } if (expr_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .daml_lf_2.Expr expr = 3; */ public Builder clearExpr() { bitField0_ = (bitField0_ & ~0x00000004); expr_ = null; if (exprBuilder_ != null) { exprBuilder_.dispose(); exprBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExprFieldBuilder().getBuilder(); } /** * .daml_lf_2.Expr expr = 3; */ public com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.daml.daml_lf_dev.DamlLf2.Expr.getDefaultInstance() : expr_; } } /** * .daml_lf_2.Expr expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Expr, com.daml.daml_lf_dev.DamlLf2.Expr.Builder, com.daml.daml_lf_dev.DamlLf2.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private boolean isTest_ ; /** *
       * *Available in versions >= 2.dev*
       * 
* * bool is_test = 1000; * @return The isTest. */ @java.lang.Override public boolean getIsTest() { return isTest_; } /** *
       * *Available in versions >= 2.dev*
       * 
* * bool is_test = 1000; * @param value The isTest to set. * @return This builder for chaining. */ public Builder setIsTest(boolean value) { isTest_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * *Available in versions >= 2.dev*
       * 
* * bool is_test = 1000; * @return This builder for chaining. */ public Builder clearIsTest() { bitField0_ = (bitField0_ & ~0x00000008); isTest_ = 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_2.DefValue) } // @@protoc_insertion_point(class_scope:daml_lf_2.DefValue) private static final com.daml.daml_lf_dev.DamlLf2.DefValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.DefValue(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.DefValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeatureFlagsOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.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_2.FeatureFlags} */ public static final class FeatureFlags extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_FeatureFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FeatureFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.FeatureFlags.class, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FeatureFlags)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.FeatureFlags other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FeatureFlags parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FeatureFlags parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FeatureFlags parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.FeatureFlags} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.FeatureFlags) com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FeatureFlags_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_FeatureFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.FeatureFlags.class, com.daml.daml_lf_dev.DamlLf2.FeatureFlags.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_FeatureFlags_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FeatureFlags getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.FeatureFlags.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FeatureFlags build() { com.daml.daml_lf_dev.DamlLf2.FeatureFlags result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FeatureFlags buildPartial() { com.daml.daml_lf_dev.DamlLf2.FeatureFlags result = new com.daml.daml_lf_dev.DamlLf2.FeatureFlags(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FeatureFlags) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.FeatureFlags)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.FeatureFlags other) { if (other == com.daml.daml_lf_dev.DamlLf2.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_2.FeatureFlags) } // @@protoc_insertion_point(class_scope:daml_lf_2.FeatureFlags) private static final com.daml.daml_lf_dev.DamlLf2.FeatureFlags DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.FeatureFlags(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.FeatureFlags getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModuleOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Module) com.google.protobuf.MessageOrBuilder { /** * int32 name_interned_dname = 1; * @return The nameInternedDname. */ int getNameInternedDname(); /** * .daml_lf_2.FeatureFlags flags = 2; * @return Whether the flags field is set. */ boolean hasFlags(); /** * .daml_lf_2.FeatureFlags flags = 2; * @return The flags. */ com.daml.daml_lf_dev.DamlLf2.FeatureFlags getFlags(); /** * .daml_lf_2.FeatureFlags flags = 2; */ com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder getFlagsOrBuilder(); /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ java.util.List getSynonymsList(); /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ com.daml.daml_lf_dev.DamlLf2.DefTypeSyn getSynonyms(int index); /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ int getSynonymsCount(); /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ java.util.List getSynonymsOrBuilderList(); /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder getSynonymsOrBuilder( int index); /** * repeated .daml_lf_2.DefDataType data_types = 4; */ java.util.List getDataTypesList(); /** * repeated .daml_lf_2.DefDataType data_types = 4; */ com.daml.daml_lf_dev.DamlLf2.DefDataType getDataTypes(int index); /** * repeated .daml_lf_2.DefDataType data_types = 4; */ int getDataTypesCount(); /** * repeated .daml_lf_2.DefDataType data_types = 4; */ java.util.List getDataTypesOrBuilderList(); /** * repeated .daml_lf_2.DefDataType data_types = 4; */ com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder getDataTypesOrBuilder( int index); /** * repeated .daml_lf_2.DefValue values = 5; */ java.util.List getValuesList(); /** * repeated .daml_lf_2.DefValue values = 5; */ com.daml.daml_lf_dev.DamlLf2.DefValue getValues(int index); /** * repeated .daml_lf_2.DefValue values = 5; */ int getValuesCount(); /** * repeated .daml_lf_2.DefValue values = 5; */ java.util.List getValuesOrBuilderList(); /** * repeated .daml_lf_2.DefValue values = 5; */ com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder getValuesOrBuilder( int index); /** * repeated .daml_lf_2.DefTemplate templates = 6; */ java.util.List getTemplatesList(); /** * repeated .daml_lf_2.DefTemplate templates = 6; */ com.daml.daml_lf_dev.DamlLf2.DefTemplate getTemplates(int index); /** * repeated .daml_lf_2.DefTemplate templates = 6; */ int getTemplatesCount(); /** * repeated .daml_lf_2.DefTemplate templates = 6; */ java.util.List getTemplatesOrBuilderList(); /** * repeated .daml_lf_2.DefTemplate templates = 6; */ com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder getTemplatesOrBuilder( int index); /** * repeated .daml_lf_2.DefException exceptions = 7; */ java.util.List getExceptionsList(); /** * repeated .daml_lf_2.DefException exceptions = 7; */ com.daml.daml_lf_dev.DamlLf2.DefException getExceptions(int index); /** * repeated .daml_lf_2.DefException exceptions = 7; */ int getExceptionsCount(); /** * repeated .daml_lf_2.DefException exceptions = 7; */ java.util.List getExceptionsOrBuilderList(); /** * repeated .daml_lf_2.DefException exceptions = 7; */ com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder getExceptionsOrBuilder( int index); /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ java.util.List getInterfacesList(); /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ com.daml.daml_lf_dev.DamlLf2.DefInterface getInterfaces(int index); /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ int getInterfacesCount(); /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ java.util.List getInterfacesOrBuilderList(); /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ com.daml.daml_lf_dev.DamlLf2.DefInterfaceOrBuilder getInterfacesOrBuilder( int index); } /** * Protobuf type {@code daml_lf_2.Module} */ public static final class Module extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Module_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Module_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Module.class, com.daml.daml_lf_dev.DamlLf2.Module.Builder.class); } private int bitField0_; public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 1; private int nameInternedDname_ = 0; /** * int32 name_interned_dname = 1; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } public static final int FLAGS_FIELD_NUMBER = 2; private com.daml.daml_lf_dev.DamlLf2.FeatureFlags flags_; /** * .daml_lf_2.FeatureFlags flags = 2; * @return Whether the flags field is set. */ @java.lang.Override public boolean hasFlags() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.FeatureFlags flags = 2; * @return The flags. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FeatureFlags getFlags() { return flags_ == null ? com.daml.daml_lf_dev.DamlLf2.FeatureFlags.getDefaultInstance() : flags_; } /** * .daml_lf_2.FeatureFlags flags = 2; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder getFlagsOrBuilder() { return flags_ == null ? com.daml.daml_lf_dev.DamlLf2.FeatureFlags.getDefaultInstance() : flags_; } public static final int SYNONYMS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List synonyms_; /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ @java.lang.Override public java.util.List getSynonymsList() { return synonyms_; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ @java.lang.Override public java.util.List getSynonymsOrBuilderList() { return synonyms_; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ @java.lang.Override public int getSynonymsCount() { return synonyms_.size(); } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn getSynonyms(int index) { return synonyms_.get(index); } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder getSynonymsOrBuilder( int index) { return synonyms_.get(index); } public static final int DATA_TYPES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List dataTypes_; /** * repeated .daml_lf_2.DefDataType data_types = 4; */ @java.lang.Override public java.util.List getDataTypesList() { return dataTypes_; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ @java.lang.Override public java.util.List getDataTypesOrBuilderList() { return dataTypes_; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ @java.lang.Override public int getDataTypesCount() { return dataTypes_.size(); } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataType getDataTypes(int index) { return dataTypes_.get(index); } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder getDataTypesOrBuilder( int index) { return dataTypes_.get(index); } public static final int VALUES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List values_; /** * repeated .daml_lf_2.DefValue values = 5; */ @java.lang.Override public java.util.List getValuesList() { return values_; } /** * repeated .daml_lf_2.DefValue values = 5; */ @java.lang.Override public java.util.List getValuesOrBuilderList() { return values_; } /** * repeated .daml_lf_2.DefValue values = 5; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** * repeated .daml_lf_2.DefValue values = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValue getValues(int index) { return values_.get(index); } /** * repeated .daml_lf_2.DefValue values = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder getValuesOrBuilder( int index) { return values_.get(index); } public static final int TEMPLATES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List templates_; /** * repeated .daml_lf_2.DefTemplate templates = 6; */ @java.lang.Override public java.util.List getTemplatesList() { return templates_; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ @java.lang.Override public java.util.List getTemplatesOrBuilderList() { return templates_; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ @java.lang.Override public int getTemplatesCount() { return templates_.size(); } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplate getTemplates(int index) { return templates_.get(index); } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder getTemplatesOrBuilder( int index) { return templates_.get(index); } public static final int EXCEPTIONS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List exceptions_; /** * repeated .daml_lf_2.DefException exceptions = 7; */ @java.lang.Override public java.util.List getExceptionsList() { return exceptions_; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ @java.lang.Override public java.util.List getExceptionsOrBuilderList() { return exceptions_; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ @java.lang.Override public int getExceptionsCount() { return exceptions_.size(); } /** * repeated .daml_lf_2.DefException exceptions = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefException getExceptions(int index) { return exceptions_.get(index); } /** * repeated .daml_lf_2.DefException exceptions = 7; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder getExceptionsOrBuilder( int index) { return exceptions_.get(index); } public static final int INTERFACES_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List interfaces_; /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ @java.lang.Override public java.util.List getInterfacesList() { return interfaces_; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ @java.lang.Override public java.util.List getInterfacesOrBuilderList() { return interfaces_; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ @java.lang.Override public int getInterfacesCount() { return interfaces_.size(); } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.DefInterface getInterfaces(int index) { return interfaces_.get(index); } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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 (nameInternedDname_ != 0) { output.writeInt32(1, nameInternedDname_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getFlags()); } for (int i = 0; i < synonyms_.size(); i++) { output.writeMessage(3, synonyms_.get(i)); } for (int i = 0; i < dataTypes_.size(); i++) { output.writeMessage(4, dataTypes_.get(i)); } for (int i = 0; i < values_.size(); i++) { output.writeMessage(5, values_.get(i)); } for (int i = 0; i < templates_.size(); i++) { output.writeMessage(6, templates_.get(i)); } for (int i = 0; i < exceptions_.size(); i++) { output.writeMessage(7, exceptions_.get(i)); } for (int i = 0; i < interfaces_.size(); i++) { output.writeMessage(8, interfaces_.get(i)); } 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, getFlags()); } for (int i = 0; i < synonyms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, synonyms_.get(i)); } for (int i = 0; i < dataTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, dataTypes_.get(i)); } for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, values_.get(i)); } for (int i = 0; i < templates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, templates_.get(i)); } for (int i = 0; i < exceptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, exceptions_.get(i)); } for (int i = 0; i < interfaces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, 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.DamlLf2.Module)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Module other = (com.daml.daml_lf_dev.DamlLf2.Module) obj; if (getNameInternedDname() != other.getNameInternedDname()) return false; 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 (!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 (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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.daml.daml_lf_dev.DamlLf2.Module parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Module parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Module parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Module} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Module) com.daml.daml_lf_dev.DamlLf2.ModuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Module_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Module_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Module.class, com.daml.daml_lf_dev.DamlLf2.Module.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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; nameInternedDname_ = 0; flags_ = null; if (flagsBuilder_ != null) { flagsBuilder_.dispose(); flagsBuilder_ = null; } if (synonymsBuilder_ == null) { synonyms_ = java.util.Collections.emptyList(); } else { synonyms_ = null; synonymsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); } else { dataTypes_ = null; dataTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); } else { templates_ = null; templatesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); } else { exceptions_ = null; exceptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); } else { interfaces_ = null; interfacesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Module_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Module getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Module.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Module build() { com.daml.daml_lf_dev.DamlLf2.Module result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Module buildPartial() { com.daml.daml_lf_dev.DamlLf2.Module result = new com.daml.daml_lf_dev.DamlLf2.Module(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.Module result) { if (synonymsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { synonyms_ = java.util.Collections.unmodifiableList(synonyms_); bitField0_ = (bitField0_ & ~0x00000004); } result.synonyms_ = synonyms_; } else { result.synonyms_ = synonymsBuilder_.build(); } if (dataTypesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { dataTypes_ = java.util.Collections.unmodifiableList(dataTypes_); bitField0_ = (bitField0_ & ~0x00000008); } result.dataTypes_ = dataTypes_; } else { result.dataTypes_ = dataTypesBuilder_.build(); } if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000010); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } if (templatesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { templates_ = java.util.Collections.unmodifiableList(templates_); bitField0_ = (bitField0_ & ~0x00000020); } result.templates_ = templates_; } else { result.templates_ = templatesBuilder_.build(); } if (exceptionsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { exceptions_ = java.util.Collections.unmodifiableList(exceptions_); bitField0_ = (bitField0_ & ~0x00000040); } result.exceptions_ = exceptions_; } else { result.exceptions_ = exceptionsBuilder_.build(); } if (interfacesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { interfaces_ = java.util.Collections.unmodifiableList(interfaces_); bitField0_ = (bitField0_ & ~0x00000080); } result.interfaces_ = interfaces_; } else { result.interfaces_ = interfacesBuilder_.build(); } } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.Module result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nameInternedDname_ = nameInternedDname_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.flags_ = flagsBuilder_ == null ? flags_ : flagsBuilder_.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.DamlLf2.Module) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Module)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Module other) { if (other == com.daml.daml_lf_dev.DamlLf2.Module.getDefaultInstance()) return this; if (other.getNameInternedDname() != 0) { setNameInternedDname(other.getNameInternedDname()); } if (other.hasFlags()) { mergeFlags(other.getFlags()); } if (synonymsBuilder_ == null) { if (!other.synonyms_.isEmpty()) { if (synonyms_.isEmpty()) { synonyms_ = other.synonyms_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSynonymsIsMutable(); synonyms_.addAll(other.synonyms_); } onChanged(); } } else { if (!other.synonyms_.isEmpty()) { if (synonymsBuilder_.isEmpty()) { synonymsBuilder_.dispose(); synonymsBuilder_ = null; synonyms_ = other.synonyms_; bitField0_ = (bitField0_ & ~0x00000004); 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_ & ~0x00000008); } else { ensureDataTypesIsMutable(); dataTypes_.addAll(other.dataTypes_); } onChanged(); } } else { if (!other.dataTypes_.isEmpty()) { if (dataTypesBuilder_.isEmpty()) { dataTypesBuilder_.dispose(); dataTypesBuilder_ = null; dataTypes_ = other.dataTypes_; bitField0_ = (bitField0_ & ~0x00000008); 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_ & ~0x00000010); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000010); 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_ & ~0x00000020); } else { ensureTemplatesIsMutable(); templates_.addAll(other.templates_); } onChanged(); } } else { if (!other.templates_.isEmpty()) { if (templatesBuilder_.isEmpty()) { templatesBuilder_.dispose(); templatesBuilder_ = null; templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000020); 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_ & ~0x00000040); } else { ensureExceptionsIsMutable(); exceptions_.addAll(other.exceptions_); } onChanged(); } } else { if (!other.exceptions_.isEmpty()) { if (exceptionsBuilder_.isEmpty()) { exceptionsBuilder_.dispose(); exceptionsBuilder_ = null; exceptions_ = other.exceptions_; bitField0_ = (bitField0_ & ~0x00000040); 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_ & ~0x00000080); } else { ensureInterfacesIsMutable(); interfaces_.addAll(other.interfaces_); } onChanged(); } } else { if (!other.interfaces_.isEmpty()) { if (interfacesBuilder_.isEmpty()) { interfacesBuilder_.dispose(); interfacesBuilder_ = null; interfaces_ = other.interfaces_; bitField0_ = (bitField0_ & ~0x00000080); interfacesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInterfacesFieldBuilder() : null; } else { interfacesBuilder_.addAllMessages(other.interfaces_); } } } 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( getFlagsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.daml.daml_lf_dev.DamlLf2.DefTypeSyn m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.parser(), extensionRegistry); if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(m); } else { synonymsBuilder_.addMessage(m); } break; } // case 26 case 34: { com.daml.daml_lf_dev.DamlLf2.DefDataType m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefDataType.parser(), extensionRegistry); if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.add(m); } else { dataTypesBuilder_.addMessage(m); } break; } // case 34 case 42: { com.daml.daml_lf_dev.DamlLf2.DefValue m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefValue.parser(), extensionRegistry); if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(m); } else { valuesBuilder_.addMessage(m); } break; } // case 42 case 50: { com.daml.daml_lf_dev.DamlLf2.DefTemplate m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefTemplate.parser(), extensionRegistry); if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.add(m); } else { templatesBuilder_.addMessage(m); } break; } // case 50 case 58: { com.daml.daml_lf_dev.DamlLf2.DefException m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefException.parser(), extensionRegistry); if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(m); } else { exceptionsBuilder_.addMessage(m); } break; } // case 58 case 66: { com.daml.daml_lf_dev.DamlLf2.DefInterface m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.DefInterface.parser(), extensionRegistry); if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(m); } else { interfacesBuilder_.addMessage(m); } 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 bitField0_; private int nameInternedDname_ ; /** * int32 name_interned_dname = 1; * @return The nameInternedDname. */ @java.lang.Override public int getNameInternedDname() { return nameInternedDname_; } /** * 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; } /** * 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.DamlLf2.FeatureFlags flags_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FeatureFlags, com.daml.daml_lf_dev.DamlLf2.FeatureFlags.Builder, com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder> flagsBuilder_; /** * .daml_lf_2.FeatureFlags flags = 2; * @return Whether the flags field is set. */ public boolean hasFlags() { return ((bitField0_ & 0x00000002) != 0); } /** * .daml_lf_2.FeatureFlags flags = 2; * @return The flags. */ public com.daml.daml_lf_dev.DamlLf2.FeatureFlags getFlags() { if (flagsBuilder_ == null) { return flags_ == null ? com.daml.daml_lf_dev.DamlLf2.FeatureFlags.getDefaultInstance() : flags_; } else { return flagsBuilder_.getMessage(); } } /** * .daml_lf_2.FeatureFlags flags = 2; */ public Builder setFlags(com.daml.daml_lf_dev.DamlLf2.FeatureFlags value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flags_ = value; } else { flagsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.FeatureFlags flags = 2; */ public Builder setFlags( com.daml.daml_lf_dev.DamlLf2.FeatureFlags.Builder builderForValue) { if (flagsBuilder_ == null) { flags_ = builderForValue.build(); } else { flagsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .daml_lf_2.FeatureFlags flags = 2; */ public Builder mergeFlags(com.daml.daml_lf_dev.DamlLf2.FeatureFlags value) { if (flagsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && flags_ != null && flags_ != com.daml.daml_lf_dev.DamlLf2.FeatureFlags.getDefaultInstance()) { getFlagsBuilder().mergeFrom(value); } else { flags_ = value; } } else { flagsBuilder_.mergeFrom(value); } if (flags_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .daml_lf_2.FeatureFlags flags = 2; */ public Builder clearFlags() { bitField0_ = (bitField0_ & ~0x00000002); flags_ = null; if (flagsBuilder_ != null) { flagsBuilder_.dispose(); flagsBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.FeatureFlags flags = 2; */ public com.daml.daml_lf_dev.DamlLf2.FeatureFlags.Builder getFlagsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFlagsFieldBuilder().getBuilder(); } /** * .daml_lf_2.FeatureFlags flags = 2; */ public com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder getFlagsOrBuilder() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilder(); } else { return flags_ == null ? com.daml.daml_lf_dev.DamlLf2.FeatureFlags.getDefaultInstance() : flags_; } } /** * .daml_lf_2.FeatureFlags flags = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FeatureFlags, com.daml.daml_lf_dev.DamlLf2.FeatureFlags.Builder, com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.FeatureFlags, com.daml.daml_lf_dev.DamlLf2.FeatureFlags.Builder, com.daml.daml_lf_dev.DamlLf2.FeatureFlagsOrBuilder>( getFlags(), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } private java.util.List synonyms_ = java.util.Collections.emptyList(); private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { synonyms_ = new java.util.ArrayList(synonyms_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTypeSyn, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder, com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder> synonymsBuilder_; /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public java.util.List getSynonymsList() { if (synonymsBuilder_ == null) { return java.util.Collections.unmodifiableList(synonyms_); } else { return synonymsBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public int getSynonymsCount() { if (synonymsBuilder_ == null) { return synonyms_.size(); } else { return synonymsBuilder_.getCount(); } } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn getSynonyms(int index) { if (synonymsBuilder_ == null) { return synonyms_.get(index); } else { return synonymsBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder setSynonyms( int index, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn value) { if (synonymsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSynonymsIsMutable(); synonyms_.set(index, value); onChanged(); } else { synonymsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder setSynonyms( int index, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.set(index, builderForValue.build()); onChanged(); } else { synonymsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder addSynonyms(com.daml.daml_lf_dev.DamlLf2.DefTypeSyn value) { if (synonymsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSynonymsIsMutable(); synonyms_.add(value); onChanged(); } else { synonymsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder addSynonyms( int index, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn value) { if (synonymsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSynonymsIsMutable(); synonyms_.add(index, value); onChanged(); } else { synonymsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder addSynonyms( com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(builderForValue.build()); onChanged(); } else { synonymsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder addSynonyms( int index, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder builderForValue) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.add(index, builderForValue.build()); onChanged(); } else { synonymsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ 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; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder clearSynonyms() { if (synonymsBuilder_ == null) { synonyms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { synonymsBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public Builder removeSynonyms(int index) { if (synonymsBuilder_ == null) { ensureSynonymsIsMutable(); synonyms_.remove(index); onChanged(); } else { synonymsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder getSynonymsBuilder( int index) { return getSynonymsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder getSynonymsOrBuilder( int index) { if (synonymsBuilder_ == null) { return synonyms_.get(index); } else { return synonymsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public java.util.List getSynonymsOrBuilderList() { if (synonymsBuilder_ != null) { return synonymsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(synonyms_); } } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder addSynonymsBuilder() { return getSynonymsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.getDefaultInstance()); } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder addSynonymsBuilder( int index) { return getSynonymsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.getDefaultInstance()); } /** * repeated .daml_lf_2.DefTypeSyn synonyms = 3; */ public java.util.List getSynonymsBuilderList() { return getSynonymsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTypeSyn, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder, com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder> getSynonymsFieldBuilder() { if (synonymsBuilder_ == null) { synonymsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTypeSyn, com.daml.daml_lf_dev.DamlLf2.DefTypeSyn.Builder, com.daml.daml_lf_dev.DamlLf2.DefTypeSynOrBuilder>( synonyms_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); synonyms_ = null; } return synonymsBuilder_; } private java.util.List dataTypes_ = java.util.Collections.emptyList(); private void ensureDataTypesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { dataTypes_ = new java.util.ArrayList(dataTypes_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder> dataTypesBuilder_; /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public java.util.List getDataTypesList() { if (dataTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataTypes_); } else { return dataTypesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public int getDataTypesCount() { if (dataTypesBuilder_ == null) { return dataTypes_.size(); } else { return dataTypesBuilder_.getCount(); } } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType getDataTypes(int index) { if (dataTypesBuilder_ == null) { return dataTypes_.get(index); } else { return dataTypesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public Builder setDataTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefDataType data_types = 4; */ public Builder setDataTypes( int index, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder builderForValue) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.set(index, builderForValue.build()); onChanged(); } else { dataTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public Builder addDataTypes(com.daml.daml_lf_dev.DamlLf2.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_2.DefDataType data_types = 4; */ public Builder addDataTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefDataType data_types = 4; */ public Builder addDataTypes( com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder builderForValue) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.add(builderForValue.build()); onChanged(); } else { dataTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public Builder addDataTypes( int index, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder builderForValue) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.add(index, builderForValue.build()); onChanged(); } else { dataTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ 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_2.DefDataType data_types = 4; */ public Builder clearDataTypes() { if (dataTypesBuilder_ == null) { dataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { dataTypesBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public Builder removeDataTypes(int index) { if (dataTypesBuilder_ == null) { ensureDataTypesIsMutable(); dataTypes_.remove(index); onChanged(); } else { dataTypesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder getDataTypesBuilder( int index) { return getDataTypesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder getDataTypesOrBuilder( int index) { if (dataTypesBuilder_ == null) { return dataTypes_.get(index); } else { return dataTypesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public java.util.List getDataTypesOrBuilderList() { if (dataTypesBuilder_ != null) { return dataTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataTypes_); } } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder addDataTypesBuilder() { return getDataTypesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefDataType.getDefaultInstance()); } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder addDataTypesBuilder( int index) { return getDataTypesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefDataType.getDefaultInstance()); } /** * repeated .daml_lf_2.DefDataType data_types = 4; */ public java.util.List getDataTypesBuilderList() { return getDataTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder> getDataTypesFieldBuilder() { if (dataTypesBuilder_ == null) { dataTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefDataType, com.daml.daml_lf_dev.DamlLf2.DefDataType.Builder, com.daml.daml_lf_dev.DamlLf2.DefDataTypeOrBuilder>( dataTypes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); dataTypes_ = null; } return dataTypesBuilder_; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefValue, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder, com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder> valuesBuilder_; /** * repeated .daml_lf_2.DefValue values = 5; */ public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.DefValue values = 5; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * repeated .daml_lf_2.DefValue values = 5; */ public com.daml.daml_lf_dev.DamlLf2.DefValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.DefValue values = 5; */ public Builder setValues( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefValue values = 5; */ public Builder setValues( int index, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefValue values = 5; */ public Builder addValues(com.daml.daml_lf_dev.DamlLf2.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_2.DefValue values = 5; */ public Builder addValues( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefValue values = 5; */ public Builder addValues( com.daml.daml_lf_dev.DamlLf2.DefValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefValue values = 5; */ public Builder addValues( int index, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefValue values = 5; */ 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_2.DefValue values = 5; */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.DefValue values = 5; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.DefValue values = 5; */ public com.daml.daml_lf_dev.DamlLf2.DefValue.Builder getValuesBuilder( int index) { return getValuesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.DefValue values = 5; */ public com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.DefValue values = 5; */ public java.util.List getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(values_); } } /** * repeated .daml_lf_2.DefValue values = 5; */ public com.daml.daml_lf_dev.DamlLf2.DefValue.Builder addValuesBuilder() { return getValuesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefValue.getDefaultInstance()); } /** * repeated .daml_lf_2.DefValue values = 5; */ public com.daml.daml_lf_dev.DamlLf2.DefValue.Builder addValuesBuilder( int index) { return getValuesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefValue.getDefaultInstance()); } /** * repeated .daml_lf_2.DefValue values = 5; */ public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefValue, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder, com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefValue, com.daml.daml_lf_dev.DamlLf2.DefValue.Builder, com.daml.daml_lf_dev.DamlLf2.DefValueOrBuilder>( values_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } private java.util.List templates_ = java.util.Collections.emptyList(); private void ensureTemplatesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { templates_ = new java.util.ArrayList(templates_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder> templatesBuilder_; /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public java.util.List getTemplatesList() { if (templatesBuilder_ == null) { return java.util.Collections.unmodifiableList(templates_); } else { return templatesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public int getTemplatesCount() { if (templatesBuilder_ == null) { return templates_.size(); } else { return templatesBuilder_.getCount(); } } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate getTemplates(int index) { if (templatesBuilder_ == null) { return templates_.get(index); } else { return templatesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public Builder setTemplates( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate templates = 6; */ public Builder setTemplates( int index, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder builderForValue) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.set(index, builderForValue.build()); onChanged(); } else { templatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public Builder addTemplates(com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate templates = 6; */ public Builder addTemplates( int index, com.daml.daml_lf_dev.DamlLf2.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_2.DefTemplate templates = 6; */ public Builder addTemplates( com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder builderForValue) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.add(builderForValue.build()); onChanged(); } else { templatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public Builder addTemplates( int index, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder builderForValue) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.add(index, builderForValue.build()); onChanged(); } else { templatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ 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_2.DefTemplate templates = 6; */ public Builder clearTemplates() { if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { templatesBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public Builder removeTemplates(int index) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); templates_.remove(index); onChanged(); } else { templatesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder getTemplatesBuilder( int index) { return getTemplatesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder getTemplatesOrBuilder( int index) { if (templatesBuilder_ == null) { return templates_.get(index); } else { return templatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public java.util.List getTemplatesOrBuilderList() { if (templatesBuilder_ != null) { return templatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(templates_); } } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder addTemplatesBuilder() { return getTemplatesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefTemplate.getDefaultInstance()); } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder addTemplatesBuilder( int index) { return getTemplatesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefTemplate.getDefaultInstance()); } /** * repeated .daml_lf_2.DefTemplate templates = 6; */ public java.util.List getTemplatesBuilderList() { return getTemplatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder> getTemplatesFieldBuilder() { if (templatesBuilder_ == null) { templatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefTemplate, com.daml.daml_lf_dev.DamlLf2.DefTemplate.Builder, com.daml.daml_lf_dev.DamlLf2.DefTemplateOrBuilder>( templates_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); templates_ = null; } return templatesBuilder_; } private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { exceptions_ = new java.util.ArrayList(exceptions_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefException, com.daml.daml_lf_dev.DamlLf2.DefException.Builder, com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder> exceptionsBuilder_; /** * repeated .daml_lf_2.DefException exceptions = 7; */ public java.util.List getExceptionsList() { if (exceptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(exceptions_); } else { return exceptionsBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public int getExceptionsCount() { if (exceptionsBuilder_ == null) { return exceptions_.size(); } else { return exceptionsBuilder_.getCount(); } } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public com.daml.daml_lf_dev.DamlLf2.DefException getExceptions(int index) { if (exceptionsBuilder_ == null) { return exceptions_.get(index); } else { return exceptionsBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder setExceptions( int index, com.daml.daml_lf_dev.DamlLf2.DefException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.set(index, value); onChanged(); } else { exceptionsBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder setExceptions( int index, com.daml.daml_lf_dev.DamlLf2.DefException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.set(index, builderForValue.build()); onChanged(); } else { exceptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder addExceptions(com.daml.daml_lf_dev.DamlLf2.DefException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.add(value); onChanged(); } else { exceptionsBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder addExceptions( int index, com.daml.daml_lf_dev.DamlLf2.DefException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.add(index, value); onChanged(); } else { exceptionsBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder addExceptions( com.daml.daml_lf_dev.DamlLf2.DefException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(builderForValue.build()); onChanged(); } else { exceptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder addExceptions( int index, com.daml.daml_lf_dev.DamlLf2.DefException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(index, builderForValue.build()); onChanged(); } else { exceptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ 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; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder clearExceptions() { if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { exceptionsBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public Builder removeExceptions(int index) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.remove(index); onChanged(); } else { exceptionsBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public com.daml.daml_lf_dev.DamlLf2.DefException.Builder getExceptionsBuilder( int index) { return getExceptionsFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder getExceptionsOrBuilder( int index) { if (exceptionsBuilder_ == null) { return exceptions_.get(index); } else { return exceptionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public java.util.List getExceptionsOrBuilderList() { if (exceptionsBuilder_ != null) { return exceptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exceptions_); } } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public com.daml.daml_lf_dev.DamlLf2.DefException.Builder addExceptionsBuilder() { return getExceptionsFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefException.getDefaultInstance()); } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public com.daml.daml_lf_dev.DamlLf2.DefException.Builder addExceptionsBuilder( int index) { return getExceptionsFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefException.getDefaultInstance()); } /** * repeated .daml_lf_2.DefException exceptions = 7; */ public java.util.List getExceptionsBuilderList() { return getExceptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefException, com.daml.daml_lf_dev.DamlLf2.DefException.Builder, com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder> getExceptionsFieldBuilder() { if (exceptionsBuilder_ == null) { exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefException, com.daml.daml_lf_dev.DamlLf2.DefException.Builder, com.daml.daml_lf_dev.DamlLf2.DefExceptionOrBuilder>( exceptions_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); exceptions_ = null; } return exceptionsBuilder_; } private java.util.List interfaces_ = java.util.Collections.emptyList(); private void ensureInterfacesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { interfaces_ = new java.util.ArrayList(interfaces_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefInterface, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder, com.daml.daml_lf_dev.DamlLf2.DefInterfaceOrBuilder> interfacesBuilder_; /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public java.util.List getInterfacesList() { if (interfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(interfaces_); } else { return interfacesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public int getInterfacesCount() { if (interfacesBuilder_ == null) { return interfaces_.size(); } else { return interfacesBuilder_.getCount(); } } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public com.daml.daml_lf_dev.DamlLf2.DefInterface getInterfaces(int index) { if (interfacesBuilder_ == null) { return interfaces_.get(index); } else { return interfacesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder setInterfaces( int index, com.daml.daml_lf_dev.DamlLf2.DefInterface value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.set(index, value); onChanged(); } else { interfacesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder setInterfaces( int index, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.set(index, builderForValue.build()); onChanged(); } else { interfacesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder addInterfaces(com.daml.daml_lf_dev.DamlLf2.DefInterface value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.add(value); onChanged(); } else { interfacesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder addInterfaces( int index, com.daml.daml_lf_dev.DamlLf2.DefInterface value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.add(index, value); onChanged(); } else { interfacesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder addInterfaces( com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(builderForValue.build()); onChanged(); } else { interfacesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder addInterfaces( int index, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(index, builderForValue.build()); onChanged(); } else { interfacesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ 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; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder clearInterfaces() { if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { interfacesBuilder_.clear(); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public Builder removeInterfaces(int index) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.remove(index); onChanged(); } else { interfacesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder getInterfacesBuilder( int index) { return getInterfacesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public com.daml.daml_lf_dev.DamlLf2.DefInterfaceOrBuilder getInterfacesOrBuilder( int index) { if (interfacesBuilder_ == null) { return interfaces_.get(index); } else { return interfacesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public java.util.List getInterfacesOrBuilderList() { if (interfacesBuilder_ != null) { return interfacesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(interfaces_); } } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder addInterfacesBuilder() { return getInterfacesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.DefInterface.getDefaultInstance()); } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder addInterfacesBuilder( int index) { return getInterfacesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.DefInterface.getDefaultInstance()); } /** * repeated .daml_lf_2.DefInterface interfaces = 8; */ public java.util.List getInterfacesBuilderList() { return getInterfacesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefInterface, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder, com.daml.daml_lf_dev.DamlLf2.DefInterfaceOrBuilder> getInterfacesFieldBuilder() { if (interfacesBuilder_ == null) { interfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.DefInterface, com.daml.daml_lf_dev.DamlLf2.DefInterface.Builder, com.daml.daml_lf_dev.DamlLf2.DefInterfaceOrBuilder>( interfaces_, ((bitField0_ & 0x00000080) != 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_2.Module) } // @@protoc_insertion_point(class_scope:daml_lf_2.Module) private static final com.daml.daml_lf_dev.DamlLf2.Module DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Module(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Module getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InternedDottedNameOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.InternedDottedName) com.google.protobuf.MessageOrBuilder { /** * repeated int32 segments_interned_str = 1; * @return A list containing the segmentsInternedStr. */ java.util.List getSegmentsInternedStrList(); /** * repeated int32 segments_interned_str = 1; * @return The count of segmentsInternedStr. */ int getSegmentsInternedStrCount(); /** * 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_2.InternedDottedName} */ public static final class InternedDottedName extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_InternedDottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InternedDottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InternedDottedName.class, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder.class); } public static final int SEGMENTS_INTERNED_STR_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList segmentsInternedStr_ = emptyIntList(); /** * repeated int32 segments_interned_str = 1; * @return A list containing the segmentsInternedStr. */ @java.lang.Override public java.util.List getSegmentsInternedStrList() { return segmentsInternedStr_; } /** * repeated int32 segments_interned_str = 1; * @return The count of segmentsInternedStr. */ public int getSegmentsInternedStrCount() { return segmentsInternedStr_.size(); } /** * 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.DamlLf2.InternedDottedName)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.InternedDottedName other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.InternedDottedName} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.InternedDottedName) com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InternedDottedName_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_InternedDottedName_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.InternedDottedName.class, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_InternedDottedName_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InternedDottedName getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.InternedDottedName.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InternedDottedName build() { com.daml.daml_lf_dev.DamlLf2.InternedDottedName result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InternedDottedName buildPartial() { com.daml.daml_lf_dev.DamlLf2.InternedDottedName result = new com.daml.daml_lf_dev.DamlLf2.InternedDottedName(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.InternedDottedName)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.InternedDottedName other) { if (other == com.daml.daml_lf_dev.DamlLf2.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; } /** * repeated int32 segments_interned_str = 1; * @return A list containing the segmentsInternedStr. */ public java.util.List getSegmentsInternedStrList() { segmentsInternedStr_.makeImmutable(); return segmentsInternedStr_; } /** * repeated int32 segments_interned_str = 1; * @return The count of segmentsInternedStr. */ public int getSegmentsInternedStrCount() { return segmentsInternedStr_.size(); } /** * 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); } /** * 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; } /** * 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; } /** * 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; } /** * 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_2.InternedDottedName) } // @@protoc_insertion_point(class_scope:daml_lf_2.InternedDottedName) private static final com.daml.daml_lf_dev.DamlLf2.InternedDottedName DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.InternedDottedName(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpgradedPackageIdOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.UpgradedPackageId) com.google.protobuf.MessageOrBuilder { /** * int32 upgraded_package_id_interned_str = 1; * @return The upgradedPackageIdInternedStr. */ int getUpgradedPackageIdInternedStr(); } /** * Protobuf type {@code daml_lf_2.UpgradedPackageId} */ public static final class UpgradedPackageId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_UpgradedPackageId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_UpgradedPackageId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.class, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder.class); } public static final int UPGRADED_PACKAGE_ID_INTERNED_STR_FIELD_NUMBER = 1; private int upgradedPackageIdInternedStr_ = 0; /** * 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.DamlLf2.UpgradedPackageId)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.UpgradedPackageId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.UpgradedPackageId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.UpgradedPackageId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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; } /** * Protobuf type {@code daml_lf_2.UpgradedPackageId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.UpgradedPackageId) com.daml.daml_lf_dev.DamlLf2.UpgradedPackageIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_UpgradedPackageId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_UpgradedPackageId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.class, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_UpgradedPackageId_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId build() { com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId buildPartial() { com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId result = new com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.UpgradedPackageId) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId other) { if (other == com.daml.daml_lf_dev.DamlLf2.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_ ; /** * int32 upgraded_package_id_interned_str = 1; * @return The upgradedPackageIdInternedStr. */ @java.lang.Override public int getUpgradedPackageIdInternedStr() { return upgradedPackageIdInternedStr_; } /** * 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; } /** * 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_2.UpgradedPackageId) } // @@protoc_insertion_point(class_scope:daml_lf_2.UpgradedPackageId) private static final com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.UpgradedPackageId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.PackageMetadata) com.google.protobuf.MessageOrBuilder { /** * int32 name_interned_str = 1; * @return The nameInternedStr. */ int getNameInternedStr(); /** * int32 version_interned_str = 2; * @return The versionInternedStr. */ int getVersionInternedStr(); /** *
     * *optional*
     * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; * @return Whether the upgradedPackageId field is set. */ boolean hasUpgradedPackageId(); /** *
     * *optional*
     * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; * @return The upgradedPackageId. */ com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId getUpgradedPackageId(); /** *
     * *optional*
     * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ com.daml.daml_lf_dev.DamlLf2.UpgradedPackageIdOrBuilder getUpgradedPackageIdOrBuilder(); } /** * Protobuf type {@code daml_lf_2.PackageMetadata} */ public static final class PackageMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_PackageMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_PackageMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.PackageMetadata.class, com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder.class); } private int bitField0_; public static final int NAME_INTERNED_STR_FIELD_NUMBER = 1; private int nameInternedStr_ = 0; /** * 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; /** * 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.DamlLf2.UpgradedPackageId upgradedPackageId_; /** *
     * *optional*
     * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; * @return Whether the upgradedPackageId field is set. */ @java.lang.Override public boolean hasUpgradedPackageId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * *optional*
     * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; * @return The upgradedPackageId. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId getUpgradedPackageId() { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } /** *
     * *optional*
     * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageIdOrBuilder getUpgradedPackageIdOrBuilder() { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageMetadata)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.PackageMetadata other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.PackageMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.PackageMetadata) com.daml.daml_lf_dev.DamlLf2.PackageMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_PackageMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_PackageMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.PackageMetadata.class, com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_PackageMetadata_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageMetadata getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.PackageMetadata.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageMetadata build() { com.daml.daml_lf_dev.DamlLf2.PackageMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageMetadata buildPartial() { com.daml.daml_lf_dev.DamlLf2.PackageMetadata result = new com.daml.daml_lf_dev.DamlLf2.PackageMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageMetadata) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.PackageMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.PackageMetadata other) { if (other == com.daml.daml_lf_dev.DamlLf2.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_ ; /** * int32 name_interned_str = 1; * @return The nameInternedStr. */ @java.lang.Override public int getNameInternedStr() { return nameInternedStr_; } /** * 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; } /** * int32 name_interned_str = 1; * @return This builder for chaining. */ public Builder clearNameInternedStr() { bitField0_ = (bitField0_ & ~0x00000001); nameInternedStr_ = 0; onChanged(); return this; } private int versionInternedStr_ ; /** * int32 version_interned_str = 2; * @return The versionInternedStr. */ @java.lang.Override public int getVersionInternedStr() { return versionInternedStr_; } /** * 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; } /** * 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.DamlLf2.UpgradedPackageId upgradedPackageId_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageIdOrBuilder> upgradedPackageIdBuilder_; /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; * @return Whether the upgradedPackageId field is set. */ public boolean hasUpgradedPackageId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; * @return The upgradedPackageId. */ public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId getUpgradedPackageId() { if (upgradedPackageIdBuilder_ == null) { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } else { return upgradedPackageIdBuilder_.getMessage(); } } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ public Builder setUpgradedPackageId(com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId value) { if (upgradedPackageIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } upgradedPackageId_ = value; } else { upgradedPackageIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ public Builder setUpgradedPackageId( com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder builderForValue) { if (upgradedPackageIdBuilder_ == null) { upgradedPackageId_ = builderForValue.build(); } else { upgradedPackageIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ public Builder mergeUpgradedPackageId(com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId value) { if (upgradedPackageIdBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && upgradedPackageId_ != null && upgradedPackageId_ != com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.getDefaultInstance()) { getUpgradedPackageIdBuilder().mergeFrom(value); } else { upgradedPackageId_ = value; } } else { upgradedPackageIdBuilder_.mergeFrom(value); } if (upgradedPackageId_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ public Builder clearUpgradedPackageId() { bitField0_ = (bitField0_ & ~0x00000004); upgradedPackageId_ = null; if (upgradedPackageIdBuilder_ != null) { upgradedPackageIdBuilder_.dispose(); upgradedPackageIdBuilder_ = null; } onChanged(); return this; } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder getUpgradedPackageIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUpgradedPackageIdFieldBuilder().getBuilder(); } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ public com.daml.daml_lf_dev.DamlLf2.UpgradedPackageIdOrBuilder getUpgradedPackageIdOrBuilder() { if (upgradedPackageIdBuilder_ != null) { return upgradedPackageIdBuilder_.getMessageOrBuilder(); } else { return upgradedPackageId_ == null ? com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.getDefaultInstance() : upgradedPackageId_; } } /** *
       * *optional*
       * 
* * .daml_lf_2.UpgradedPackageId upgraded_package_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageIdOrBuilder> getUpgradedPackageIdFieldBuilder() { if (upgradedPackageIdBuilder_ == null) { upgradedPackageIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId, com.daml.daml_lf_dev.DamlLf2.UpgradedPackageId.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.PackageMetadata) } // @@protoc_insertion_point(class_scope:daml_lf_2.PackageMetadata) private static final com.daml.daml_lf_dev.DamlLf2.PackageMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.PackageMetadata(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.PackageMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageOrBuilder extends // @@protoc_insertion_point(interface_extends:daml_lf_2.Package) com.google.protobuf.MessageOrBuilder { /** * repeated .daml_lf_2.Module modules = 1; */ java.util.List getModulesList(); /** * repeated .daml_lf_2.Module modules = 1; */ com.daml.daml_lf_dev.DamlLf2.Module getModules(int index); /** * repeated .daml_lf_2.Module modules = 1; */ int getModulesCount(); /** * repeated .daml_lf_2.Module modules = 1; */ java.util.List getModulesOrBuilderList(); /** * repeated .daml_lf_2.Module modules = 1; */ com.daml.daml_lf_dev.DamlLf2.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); /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ java.util.List getInternedDottedNamesList(); /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ com.daml.daml_lf_dev.DamlLf2.InternedDottedName getInternedDottedNames(int index); /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ int getInternedDottedNamesCount(); /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ java.util.List getInternedDottedNamesOrBuilderList(); /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index); /** * .daml_lf_2.PackageMetadata metadata = 4; * @return Whether the metadata field is set. */ boolean hasMetadata(); /** * .daml_lf_2.PackageMetadata metadata = 4; * @return The metadata. */ com.daml.daml_lf_dev.DamlLf2.PackageMetadata getMetadata(); /** * .daml_lf_2.PackageMetadata metadata = 4; */ com.daml.daml_lf_dev.DamlLf2.PackageMetadataOrBuilder getMetadataOrBuilder(); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_2.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_2.Type interned_types = 5; */ com.daml.daml_lf_dev.DamlLf2.Type getInternedTypes(int index); /** *
     * Types in the interning table are only allowed to refer to interned types
     * at smaller indices.
     * 
* * repeated .daml_lf_2.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_2.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_2.Type interned_types = 5; */ com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder getInternedTypesOrBuilder( int index); } /** * Protobuf type {@code daml_lf_2.Package} */ public static final class Package extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:daml_lf_2.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.DamlLf2.internal_static_daml_lf_2_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Package.class, com.daml.daml_lf_dev.DamlLf2.Package.Builder.class); } private int bitField0_; public static final int MODULES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List modules_; /** * repeated .daml_lf_2.Module modules = 1; */ @java.lang.Override public java.util.List getModulesList() { return modules_; } /** * repeated .daml_lf_2.Module modules = 1; */ @java.lang.Override public java.util.List getModulesOrBuilderList() { return modules_; } /** * repeated .daml_lf_2.Module modules = 1; */ @java.lang.Override public int getModulesCount() { return modules_.size(); } /** * repeated .daml_lf_2.Module modules = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Module getModules(int index) { return modules_.get(index); } /** * repeated .daml_lf_2.Module modules = 1; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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_; /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public java.util.List getInternedDottedNamesList() { return internedDottedNames_; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public java.util.List getInternedDottedNamesOrBuilderList() { return internedDottedNames_; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public int getInternedDottedNamesCount() { return internedDottedNames_.size(); } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InternedDottedName getInternedDottedNames(int index) { return internedDottedNames_.get(index); } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index) { return internedDottedNames_.get(index); } public static final int METADATA_FIELD_NUMBER = 4; private com.daml.daml_lf_dev.DamlLf2.PackageMetadata metadata_; /** * .daml_lf_2.PackageMetadata metadata = 4; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** * .daml_lf_2.PackageMetadata metadata = 4; * @return The metadata. */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageMetadata getMetadata() { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageMetadata.getDefaultInstance() : metadata_; } /** * .daml_lf_2.PackageMetadata metadata = 4; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.PackageMetadataOrBuilder getMetadataOrBuilder() { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Type interned_types = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Package)) { return super.equals(obj); } com.daml.daml_lf_dev.DamlLf2.Package other = (com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Package parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Package parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Package parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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.DamlLf2.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_2.Package} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:daml_lf_2.Package) com.daml.daml_lf_dev.DamlLf2.PackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.daml.daml_lf_dev.DamlLf2.internal_static_daml_lf_2_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( com.daml.daml_lf_dev.DamlLf2.Package.class, com.daml.daml_lf_dev.DamlLf2.Package.Builder.class); } // Construct using com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.internal_static_daml_lf_2_Package_descriptor; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Package getDefaultInstanceForType() { return com.daml.daml_lf_dev.DamlLf2.Package.getDefaultInstance(); } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Package build() { com.daml.daml_lf_dev.DamlLf2.Package result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.daml.daml_lf_dev.DamlLf2.Package buildPartial() { com.daml.daml_lf_dev.DamlLf2.Package result = new com.daml.daml_lf_dev.DamlLf2.Package(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.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.DamlLf2.Package) { return mergeFrom((com.daml.daml_lf_dev.DamlLf2.Package)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.daml.daml_lf_dev.DamlLf2.Package other) { if (other == com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Module m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type m = input.readMessage( com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Module, com.daml.daml_lf_dev.DamlLf2.Module.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleOrBuilder> modulesBuilder_; /** * repeated .daml_lf_2.Module modules = 1; */ public java.util.List getModulesList() { if (modulesBuilder_ == null) { return java.util.Collections.unmodifiableList(modules_); } else { return modulesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.Module modules = 1; */ public int getModulesCount() { if (modulesBuilder_ == null) { return modules_.size(); } else { return modulesBuilder_.getCount(); } } /** * repeated .daml_lf_2.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf2.Module getModules(int index) { if (modulesBuilder_ == null) { return modules_.get(index); } else { return modulesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.Module modules = 1; */ public Builder setModules( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Module modules = 1; */ public Builder setModules( int index, com.daml.daml_lf_dev.DamlLf2.Module.Builder builderForValue) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.set(index, builderForValue.build()); onChanged(); } else { modulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.Module modules = 1; */ public Builder addModules(com.daml.daml_lf_dev.DamlLf2.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_2.Module modules = 1; */ public Builder addModules( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Module modules = 1; */ public Builder addModules( com.daml.daml_lf_dev.DamlLf2.Module.Builder builderForValue) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.add(builderForValue.build()); onChanged(); } else { modulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.Module modules = 1; */ public Builder addModules( int index, com.daml.daml_lf_dev.DamlLf2.Module.Builder builderForValue) { if (modulesBuilder_ == null) { ensureModulesIsMutable(); modules_.add(index, builderForValue.build()); onChanged(); } else { modulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.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_2.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_2.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_2.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf2.Module.Builder getModulesBuilder( int index) { return getModulesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf2.ModuleOrBuilder getModulesOrBuilder( int index) { if (modulesBuilder_ == null) { return modules_.get(index); } else { return modulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.Module modules = 1; */ public java.util.List getModulesOrBuilderList() { if (modulesBuilder_ != null) { return modulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(modules_); } } /** * repeated .daml_lf_2.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf2.Module.Builder addModulesBuilder() { return getModulesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Module.getDefaultInstance()); } /** * repeated .daml_lf_2.Module modules = 1; */ public com.daml.daml_lf_dev.DamlLf2.Module.Builder addModulesBuilder( int index) { return getModulesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Module.getDefaultInstance()); } /** * repeated .daml_lf_2.Module modules = 1; */ public java.util.List getModulesBuilderList() { return getModulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Module, com.daml.daml_lf_dev.DamlLf2.Module.Builder, com.daml.daml_lf_dev.DamlLf2.ModuleOrBuilder> getModulesFieldBuilder() { if (modulesBuilder_ == null) { modulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Module, com.daml.daml_lf_dev.DamlLf2.Module.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.InternedDottedName, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder, com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder> internedDottedNamesBuilder_; /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public java.util.List getInternedDottedNamesList() { if (internedDottedNamesBuilder_ == null) { return java.util.Collections.unmodifiableList(internedDottedNames_); } else { return internedDottedNamesBuilder_.getMessageList(); } } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public int getInternedDottedNamesCount() { if (internedDottedNamesBuilder_ == null) { return internedDottedNames_.size(); } else { return internedDottedNamesBuilder_.getCount(); } } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.DamlLf2.InternedDottedName getInternedDottedNames(int index) { if (internedDottedNamesBuilder_ == null) { return internedDottedNames_.get(index); } else { return internedDottedNamesBuilder_.getMessage(index); } } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder setInternedDottedNames( int index, com.daml.daml_lf_dev.DamlLf2.InternedDottedName value) { if (internedDottedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedDottedNamesIsMutable(); internedDottedNames_.set(index, value); onChanged(); } else { internedDottedNamesBuilder_.setMessage(index, value); } return this; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder setInternedDottedNames( int index, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder builderForValue) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.set(index, builderForValue.build()); onChanged(); } else { internedDottedNamesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder addInternedDottedNames(com.daml.daml_lf_dev.DamlLf2.InternedDottedName value) { if (internedDottedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(value); onChanged(); } else { internedDottedNamesBuilder_.addMessage(value); } return this; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder addInternedDottedNames( int index, com.daml.daml_lf_dev.DamlLf2.InternedDottedName value) { if (internedDottedNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(index, value); onChanged(); } else { internedDottedNamesBuilder_.addMessage(index, value); } return this; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder addInternedDottedNames( com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder builderForValue) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(builderForValue.build()); onChanged(); } else { internedDottedNamesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder addInternedDottedNames( int index, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder builderForValue) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.add(index, builderForValue.build()); onChanged(); } else { internedDottedNamesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .daml_lf_2.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; } /** * repeated .daml_lf_2.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; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public Builder removeInternedDottedNames(int index) { if (internedDottedNamesBuilder_ == null) { ensureInternedDottedNamesIsMutable(); internedDottedNames_.remove(index); onChanged(); } else { internedDottedNamesBuilder_.remove(index); } return this; } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder getInternedDottedNamesBuilder( int index) { return getInternedDottedNamesFieldBuilder().getBuilder(index); } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder getInternedDottedNamesOrBuilder( int index) { if (internedDottedNamesBuilder_ == null) { return internedDottedNames_.get(index); } else { return internedDottedNamesBuilder_.getMessageOrBuilder(index); } } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public java.util.List getInternedDottedNamesOrBuilderList() { if (internedDottedNamesBuilder_ != null) { return internedDottedNamesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(internedDottedNames_); } } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder addInternedDottedNamesBuilder() { return getInternedDottedNamesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.InternedDottedName.getDefaultInstance()); } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder addInternedDottedNamesBuilder( int index) { return getInternedDottedNamesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.getDefaultInstance()); } /** * repeated .daml_lf_2.InternedDottedName interned_dotted_names = 3; */ public java.util.List getInternedDottedNamesBuilderList() { return getInternedDottedNamesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InternedDottedName, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder, com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder> getInternedDottedNamesFieldBuilder() { if (internedDottedNamesBuilder_ == null) { internedDottedNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.InternedDottedName, com.daml.daml_lf_dev.DamlLf2.InternedDottedName.Builder, com.daml.daml_lf_dev.DamlLf2.InternedDottedNameOrBuilder>( internedDottedNames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); internedDottedNames_ = null; } return internedDottedNamesBuilder_; } private com.daml.daml_lf_dev.DamlLf2.PackageMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.PackageMetadata, com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder, com.daml.daml_lf_dev.DamlLf2.PackageMetadataOrBuilder> metadataBuilder_; /** * .daml_lf_2.PackageMetadata metadata = 4; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** * .daml_lf_2.PackageMetadata metadata = 4; * @return The metadata. */ public com.daml.daml_lf_dev.DamlLf2.PackageMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * .daml_lf_2.PackageMetadata metadata = 4; */ public Builder setMetadata(com.daml.daml_lf_dev.DamlLf2.PackageMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.PackageMetadata metadata = 4; */ public Builder setMetadata( com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .daml_lf_2.PackageMetadata metadata = 4; */ public Builder mergeMetadata(com.daml.daml_lf_dev.DamlLf2.PackageMetadata value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && metadata_ != null && metadata_ != com.daml.daml_lf_dev.DamlLf2.PackageMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .daml_lf_2.PackageMetadata metadata = 4; */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000008); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); return this; } /** * .daml_lf_2.PackageMetadata metadata = 4; */ public com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder getMetadataBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * .daml_lf_2.PackageMetadata metadata = 4; */ public com.daml.daml_lf_dev.DamlLf2.PackageMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.daml.daml_lf_dev.DamlLf2.PackageMetadata.getDefaultInstance() : metadata_; } } /** * .daml_lf_2.PackageMetadata metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.PackageMetadata, com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder, com.daml.daml_lf_dev.DamlLf2.PackageMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.PackageMetadata, com.daml.daml_lf_dev.DamlLf2.PackageMetadata.Builder, com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> internedTypesBuilder_; /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_2.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_2.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_2.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public Builder setInternedTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public Builder setInternedTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public Builder addInternedTypes(com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public Builder addInternedTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public Builder addInternedTypes( com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public Builder addInternedTypes( int index, com.daml.daml_lf_dev.DamlLf2.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_2.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_2.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_2.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_2.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf2.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_2.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf2.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_2.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_2.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addInternedTypesBuilder() { return getInternedTypesFieldBuilder().addBuilder( com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_2.Type interned_types = 5; */ public com.daml.daml_lf_dev.DamlLf2.Type.Builder addInternedTypesBuilder( int index) { return getInternedTypesFieldBuilder().addBuilder( index, com.daml.daml_lf_dev.DamlLf2.Type.getDefaultInstance()); } /** *
       * Types in the interning table are only allowed to refer to interned types
       * at smaller indices.
       * 
* * repeated .daml_lf_2.Type interned_types = 5; */ public java.util.List getInternedTypesBuilderList() { return getInternedTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.TypeOrBuilder> getInternedTypesFieldBuilder() { if (internedTypesBuilder_ == null) { internedTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.daml.daml_lf_dev.DamlLf2.Type, com.daml.daml_lf_dev.DamlLf2.Type.Builder, com.daml.daml_lf_dev.DamlLf2.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_2.Package) } // @@protoc_insertion_point(class_scope:daml_lf_2.Package) private static final com.daml.daml_lf_dev.DamlLf2.Package DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.daml.daml_lf_dev.DamlLf2.Package(); } public static com.daml.daml_lf_dev.DamlLf2.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.DamlLf2.Package getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Unit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Unit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_PackageRef_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_PackageRef_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_ModuleRef_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_ModuleRef_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_TypeConName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_TypeConName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_TypeSynName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_TypeSynName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_ValName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_ValName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_FieldWithType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_FieldWithType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_VarWithType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_VarWithType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_TypeVarWithKind_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_TypeVarWithKind_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_FieldWithExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_FieldWithExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Binding_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Binding_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Kind_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Kind_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Kind_Arrow_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Kind_Arrow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_Var_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_Var_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_Con_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_Con_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_Syn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_Syn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_Builtin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_Builtin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_Forall_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_Forall_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Type_Struct_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Type_Struct_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_BuiltinLit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_BuiltinLit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Location_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Location_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Location_Range_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Location_Range_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_RecCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_RecCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_RecProj_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_RecProj_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_RecUpd_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_RecUpd_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_VariantCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_VariantCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_EnumCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_EnumCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_StructCon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_StructCon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_StructProj_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_StructProj_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_StructUpd_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_StructUpd_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_App_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_App_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_TyApp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_TyApp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_Abs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_Abs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_TyAbs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_TyAbs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_Nil_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_Nil_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_Cons_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_Cons_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_OptionalNone_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_OptionalNone_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_OptionalSome_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_OptionalSome_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ToAny_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ToAny_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_FromAny_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_FromAny_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ToAnyException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ToAnyException_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_FromAnyException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_FromAnyException_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_Throw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_Throw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ToInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ToInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_FromInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_FromInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_CallInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_CallInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ViewInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ViewInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_SignatoryInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_SignatoryInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ObserverInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ObserverInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_UnsafeFromInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_UnsafeFromInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ToRequiredInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ToRequiredInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_FromRequiredInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_FromRequiredInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ChoiceController_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ChoiceController_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_ChoiceObserver_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_ChoiceObserver_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Expr_Experimental_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Expr_Experimental_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_CaseAlt_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_CaseAlt_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_CaseAlt_Variant_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_CaseAlt_Variant_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_CaseAlt_Enum_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_CaseAlt_Enum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_CaseAlt_Cons_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_CaseAlt_Cons_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_CaseAlt_OptionalSome_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_CaseAlt_OptionalSome_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Case_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Case_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Block_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Block_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Pure_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Pure_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_Create_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_Create_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_CreateInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_CreateInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_Exercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_Exercise_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_SoftExercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_SoftExercise_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_DynamicExercise_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_DynamicExercise_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_ExerciseInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_ExerciseInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_ExerciseByKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_ExerciseByKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_Fetch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_Fetch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_SoftFetch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_SoftFetch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_FetchInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_FetchInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_EmbedExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_EmbedExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_RetrieveByKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_RetrieveByKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Update_TryCatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Update_TryCatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Scenario_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Scenario_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Scenario_Commit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Scenario_Commit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Scenario_EmbedExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Scenario_EmbedExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_TemplateChoice_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_TemplateChoice_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_InterfaceInstanceBody_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_InterfaceInstanceBody_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefTemplate_DefKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefTemplate_DefKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefTemplate_Implements_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefTemplate_Implements_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_InterfaceMethod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_InterfaceMethod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefException_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefDataType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefDataType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefDataType_Fields_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefDataType_Fields_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefDataType_EnumConstructors_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefDataType_EnumConstructors_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefTypeSyn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefTypeSyn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_DefValue_NameWithType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_DefValue_NameWithType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_FeatureFlags_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_FeatureFlags_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Module_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_Module_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_InternedDottedName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_InternedDottedName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_UpgradedPackageId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_UpgradedPackageId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_PackageMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_PackageMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_daml_lf_2_Package_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_daml_lf_2_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_lf2.proto\022\td" + "aml_lf_2\"\006\n\004Unit\"W\n\nPackageRef\022\037\n\004self\030\001" + " \001(\0132\017.daml_lf_2.UnitH\000\022!\n\027package_id_in" + "terned_str\030\003 \001(\005H\000B\005\n\003Sum\"[\n\tModuleRef\022*" + "\n\013package_ref\030\001 \001(\0132\025.daml_lf_2.PackageR" + "ef\022\"\n\032module_name_interned_dname\030\002 \001(\005\"P" + "\n\013TypeConName\022$\n\006module\030\001 \001(\0132\024.daml_lf_" + "2.ModuleRef\022\033\n\023name_interned_dname\030\002 \001(\005" + "\"P\n\013TypeSynName\022$\n\006module\030\001 \001(\0132\024.daml_l" + "f_2.ModuleRef\022\033\n\023name_interned_dname\030\002 \001" + "(\005\"L\n\007ValName\022$\n\006module\030\001 \001(\0132\024.daml_lf_" + "2.ModuleRef\022\033\n\023name_interned_dname\030\002 \001(\005" + "\"J\n\rFieldWithType\022\032\n\022field_interned_str\030" + "\003 \001(\005\022\035\n\004type\030\002 \001(\0132\017.daml_lf_2.Type\"F\n\013" + "VarWithType\022\030\n\020var_interned_str\030\003 \001(\005\022\035\n" + "\004type\030\002 \001(\0132\017.daml_lf_2.Type\"J\n\017TypeVarW" + "ithKind\022\030\n\020var_interned_str\030\003 \001(\005\022\035\n\004kin" + "d\030\002 \001(\0132\017.daml_lf_2.Kind\"J\n\rFieldWithExp" + "r\022\032\n\022field_interned_str\030\003 \001(\005\022\035\n\004expr\030\002 " + "\001(\0132\017.daml_lf_2.Expr\"Q\n\007Binding\022&\n\006binde" + "r\030\001 \001(\0132\026.daml_lf_2.VarWithType\022\036\n\005bound" + "\030\002 \001(\0132\017.daml_lf_2.Expr\"\301\001\n\004Kind\022\037\n\004star" + "\030\001 \001(\0132\017.daml_lf_2.UnitH\000\022&\n\005arrow\030\002 \001(\013" + "2\025.daml_lf_2.Kind.ArrowH\000\022\036\n\003nat\030\003 \001(\0132\017" + ".daml_lf_2.UnitH\000\032I\n\005Arrow\022\037\n\006params\030\001 \003" + "(\0132\017.daml_lf_2.Kind\022\037\n\006result\030\002 \001(\0132\017.da" + "ml_lf_2.KindB\005\n\003Sum\"\320\005\n\004Type\022\"\n\003var\030\001 \001(" + "\0132\023.daml_lf_2.Type.VarH\000\022\"\n\003con\030\002 \001(\0132\023." + "daml_lf_2.Type.ConH\000\022*\n\007builtin\030\003 \001(\0132\027." + "daml_lf_2.Type.BuiltinH\000\022(\n\006forall\030\004 \001(\013" + "2\026.daml_lf_2.Type.ForallH\000\022(\n\006struct\030\005 \001" + "(\0132\026.daml_lf_2.Type.StructH\000\022\r\n\003nat\030\006 \001(" + "\022H\000\022\"\n\003syn\030\007 \001(\0132\023.daml_lf_2.Type.SynH\000\022" + "\022\n\010interned\030\010 \001(\005H\000\032>\n\003Var\022\030\n\020var_intern" + "ed_str\030\003 \001(\005\022\035\n\004args\030\002 \003(\0132\017.daml_lf_2.T" + "ype\032K\n\003Con\022%\n\005tycon\030\001 \001(\0132\026.daml_lf_2.Ty" + "peConName\022\035\n\004args\030\002 \003(\0132\017.daml_lf_2.Type" + "\032K\n\003Syn\022%\n\005tysyn\030\001 \001(\0132\026.daml_lf_2.TypeS" + "ynName\022\035\n\004args\030\002 \003(\0132\017.daml_lf_2.Type\032Q\n" + "\007Builtin\022\'\n\007builtin\030\001 \001(\0162\026.daml_lf_2.Bu" + "iltinType\022\035\n\004args\030\002 \003(\0132\017.daml_lf_2.Type" + "\032Q\n\006Forall\022(\n\004vars\030\001 \003(\0132\032.daml_lf_2.Typ" + "eVarWithKind\022\035\n\004body\030\002 \001(\0132\017.daml_lf_2.T" + "ype\0322\n\006Struct\022(\n\006fields\030\001 \003(\0132\030.daml_lf_" + "2.FieldWithTypeB\005\n\003Sum\"\272\002\n\nBuiltinLit\022\017\n" + "\005int64\030\001 \001(\022H\000\022\023\n\ttimestamp\030\002 \001(\020H\000\022\036\n\024n" + "umeric_interned_str\030\003 \001(\005H\000\022\033\n\021text_inte" + "rned_str\030\004 \001(\005H\000\022\016\n\004date\030\005 \001(\005H\000\022<\n\rroun" + "ding_mode\030\351\007 \001(\0162\".daml_lf_2.BuiltinLit." + "RoundingModeH\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\tHALF_DOWN\020\005\022\r\n\tHALF_EVEN\020\006\022\017\n\013U" + "NNECESSARY\020\007B\005\n\003Sum\"\255\001\n\010Location\022$\n\006modu" + "le\030\001 \001(\0132\024.daml_lf_2.ModuleRef\022(\n\005range\030" + "\002 \001(\0132\031.daml_lf_2.Location.Range\032Q\n\005Rang" + "e\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\"\272/\n\004" + "Expr\022%\n\010location\030\001 \001(\0132\023.daml_lf_2.Locat" + "ion\022\032\n\020var_interned_str\030\002 \001(\005H\000\022!\n\003val\030\003" + " \001(\0132\022.daml_lf_2.ValNameH\000\022-\n\007builtin\030\004 " + "\001(\0162\032.daml_lf_2.BuiltinFunctionH\000\022,\n\013bui" + "ltin_con\030\005 \001(\0162\025.daml_lf_2.BuiltinConH\000\022" + ",\n\013builtin_lit\030\006 \001(\0132\025.daml_lf_2.Builtin" + "LitH\000\022)\n\007rec_con\030\007 \001(\0132\026.daml_lf_2.Expr." + "RecConH\000\022+\n\010rec_proj\030\010 \001(\0132\027.daml_lf_2.E" + "xpr.RecProjH\000\022)\n\007rec_upd\030\t \001(\0132\026.daml_lf" + "_2.Expr.RecUpdH\000\0221\n\013variant_con\030\n \001(\0132\032." + "daml_lf_2.Expr.VariantConH\000\022+\n\010enum_con\030" + "\013 \001(\0132\027.daml_lf_2.Expr.EnumConH\000\022/\n\nstru" + "ct_con\030\014 \001(\0132\031.daml_lf_2.Expr.StructConH" + "\000\0221\n\013struct_proj\030\r \001(\0132\032.daml_lf_2.Expr." + "StructProjH\000\022/\n\nstruct_upd\030\016 \001(\0132\031.daml_" + "lf_2.Expr.StructUpdH\000\022\"\n\003app\030\017 \001(\0132\023.dam" + "l_lf_2.Expr.AppH\000\022\'\n\006ty_app\030\020 \001(\0132\025.daml" + "_lf_2.Expr.TyAppH\000\022\"\n\003abs\030\021 \001(\0132\023.daml_l" + "f_2.Expr.AbsH\000\022\'\n\006ty_abs\030\022 \001(\0132\025.daml_lf" + "_2.Expr.TyAbsH\000\022\037\n\004case\030\023 \001(\0132\017.daml_lf_" + "2.CaseH\000\022\037\n\003let\030\024 \001(\0132\020.daml_lf_2.BlockH" + "\000\022\"\n\003nil\030\025 \001(\0132\023.daml_lf_2.Expr.NilH\000\022$\n" + "\004cons\030\026 \001(\0132\024.daml_lf_2.Expr.ConsH\000\022#\n\006u" + "pdate\030\027 \001(\0132\021.daml_lf_2.UpdateH\000\0225\n\ropti" + "onal_none\030\031 \001(\0132\034.daml_lf_2.Expr.Optiona" + "lNoneH\000\0225\n\roptional_some\030\032 \001(\0132\034.daml_lf" + "_2.Expr.OptionalSomeH\000\022\'\n\006to_any\030\033 \001(\0132\025" + ".daml_lf_2.Expr.ToAnyH\000\022+\n\010from_any\030\034 \001(" + "\0132\027.daml_lf_2.Expr.FromAnyH\000\022#\n\010type_rep" + "\030\035 \001(\0132\017.daml_lf_2.TypeH\000\022:\n\020to_any_exce" + "ption\030\036 \001(\0132\036.daml_lf_2.Expr.ToAnyExcept" + "ionH\000\022>\n\022from_any_exception\030\037 \001(\0132 .daml" + "_lf_2.Expr.FromAnyExceptionH\000\022&\n\005throw\030 " + " \001(\0132\025.daml_lf_2.Expr.ThrowH\000\0223\n\014to_inte" + "rface\030! \001(\0132\033.daml_lf_2.Expr.ToInterface" + "H\000\0227\n\016from_interface\030\" \001(\0132\035.daml_lf_2.E" + "xpr.FromInterfaceH\000\0227\n\016call_interface\030# " + "\001(\0132\035.daml_lf_2.Expr.CallInterfaceH\000\022A\n\023" + "signatory_interface\030$ \001(\0132\".daml_lf_2.Ex" + "pr.SignatoryInterfaceH\000\022?\n\022observer_inte" + "rface\030% \001(\0132!.daml_lf_2.Expr.ObserverInt" + "erfaceH\000\0227\n\016view_interface\030& \001(\0132\035.daml_" + "lf_2.Expr.ViewInterfaceH\000\022D\n\025unsafe_from" + "_interface\030\' \001(\0132#.daml_lf_2.Expr.Unsafe" + "FromInterfaceH\000\022O\n\033interface_template_ty" + "pe_rep\030( \001(\0132(.daml_lf_2.Expr.InterfaceT" + "emplateTypeRepH\000\022D\n\025to_required_interfac" + "e\030) \001(\0132#.daml_lf_2.Expr.ToRequiredInter" + "faceH\000\022H\n\027from_required_interface\030* \001(\0132" + "%.daml_lf_2.Expr.FromRequiredInterfaceH\000" + "\022U\n\036unsafe_from_required_interface\030+ \001(\013" + "2+.daml_lf_2.Expr.UnsafeFromRequiredInte" + "rfaceH\000\022>\n\021choice_controller\030\351\007 \001(\0132 .da" + "ml_lf_2.Expr.ChoiceControllerH\000\022:\n\017choic" + "e_observer\030\352\007 \001(\0132\036.daml_lf_2.Expr.Choic" + "eObserverH\000\022(\n\010scenario\030\353\007 \001(\0132\023.daml_lf" + "_2.ScenarioH\000\0225\n\014experimental\030\217N \001(\0132\034.d" + "aml_lf_2.Expr.ExperimentalH\000\032V\n\006RecCon\022\"" + "\n\005tycon\030\001 \001(\0132\023.daml_lf_2.Type.Con\022(\n\006fi" + "elds\030\002 \003(\0132\030.daml_lf_2.FieldWithExpr\032j\n\007" + "RecProj\022\"\n\005tycon\030\001 \001(\0132\023.daml_lf_2.Type." + "Con\022\032\n\022field_interned_str\030\004 \001(\005\022\037\n\006recor" + "d\030\003 \001(\0132\017.daml_lf_2.Expr\032\212\001\n\006RecUpd\022\"\n\005t" + "ycon\030\001 \001(\0132\023.daml_lf_2.Type.Con\022\032\n\022field" + "_interned_str\030\002 \001(\005\022\037\n\006record\030\003 \001(\0132\017.da" + "ml_lf_2.Expr\022\037\n\006update\030\004 \001(\0132\017.daml_lf_2" + ".Expr\032x\n\nVariantCon\022\"\n\005tycon\030\001 \001(\0132\023.dam" + "l_lf_2.Type.Con\022 \n\030variant_con_interned_" + "str\030\002 \001(\005\022$\n\013variant_arg\030\003 \001(\0132\017.daml_lf" + "_2.Expr\032O\n\007EnumCon\022%\n\005tycon\030\001 \001(\0132\026.daml" + "_lf_2.TypeConName\022\035\n\025enum_con_interned_s" + "tr\030\002 \001(\005\0325\n\tStructCon\022(\n\006fields\030\001 \003(\0132\030." + "daml_lf_2.FieldWithExpr\032I\n\nStructProj\022\032\n" + "\022field_interned_str\030\001 \001(\005\022\037\n\006struct\030\002 \001(" + "\0132\017.daml_lf_2.Expr\032i\n\tStructUpd\022\032\n\022field" + "_interned_str\030\001 \001(\005\022\037\n\006struct\030\002 \001(\0132\017.da" + "ml_lf_2.Expr\022\037\n\006update\030\003 \001(\0132\017.daml_lf_2" + ".Expr\032B\n\003App\022\034\n\003fun\030\001 \001(\0132\017.daml_lf_2.Ex" + "pr\022\035\n\004args\030\002 \003(\0132\017.daml_lf_2.Expr\032F\n\005TyA" + "pp\022\035\n\004expr\030\001 \001(\0132\017.daml_lf_2.Expr\022\036\n\005typ" + "es\030\002 \003(\0132\017.daml_lf_2.Type\032K\n\003Abs\022%\n\005para" + "m\030\001 \003(\0132\026.daml_lf_2.VarWithType\022\035\n\004body\030" + "\002 \001(\0132\017.daml_lf_2.Expr\032Q\n\005TyAbs\022)\n\005param" + "\030\001 \003(\0132\032.daml_lf_2.TypeVarWithKind\022\035\n\004bo" + "dy\030\002 \001(\0132\017.daml_lf_2.Expr\032$\n\003Nil\022\035\n\004type" + "\030\001 \001(\0132\017.daml_lf_2.Type\032d\n\004Cons\022\035\n\004type\030" + "\001 \001(\0132\017.daml_lf_2.Type\022\036\n\005front\030\002 \003(\0132\017." + "daml_lf_2.Expr\022\035\n\004tail\030\003 \001(\0132\017.daml_lf_2" + ".Expr\032-\n\014OptionalNone\022\035\n\004type\030\001 \001(\0132\017.da" + "ml_lf_2.Type\032M\n\014OptionalSome\022\035\n\004type\030\001 \001" + "(\0132\017.daml_lf_2.Type\022\036\n\005value\030\002 \001(\0132\017.dam" + "l_lf_2.Expr\032E\n\005ToAny\022\035\n\004type\030\001 \001(\0132\017.dam" + "l_lf_2.Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.Ex" + "pr\032G\n\007FromAny\022\035\n\004type\030\001 \001(\0132\017.daml_lf_2." + "Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.Expr\032N\n\016T" + "oAnyException\022\035\n\004type\030\001 \001(\0132\017.daml_lf_2." + "Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.Expr\032P\n\020F" + "romAnyException\022\035\n\004type\030\001 \001(\0132\017.daml_lf_" + "2.Type\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.Expr\032\177\n" + "\005Throw\022$\n\013return_type\030\001 \001(\0132\017.daml_lf_2." + "Type\022\'\n\016exception_type\030\002 \001(\0132\017.daml_lf_2" + ".Type\022\'\n\016exception_expr\030\003 \001(\0132\017.daml_lf_" + "2.Expr\032\224\001\n\013ToInterface\022.\n\016interface_type" + "\030\001 \001(\0132\026.daml_lf_2.TypeConName\022-\n\rtempla" + "te_type\030\002 \001(\0132\026.daml_lf_2.TypeConName\022&\n" + "\rtemplate_expr\030\003 \001(\0132\017.daml_lf_2.Expr\032\227\001" + "\n\rFromInterface\022.\n\016interface_type\030\001 \001(\0132" + "\026.daml_lf_2.TypeConName\022-\n\rtemplate_type" + "\030\002 \001(\0132\026.daml_lf_2.TypeConName\022\'\n\016interf" + "ace_expr\030\003 \001(\0132\017.daml_lf_2.Expr\032\206\001\n\rCall" + "Interface\022.\n\016interface_type\030\001 \001(\0132\026.daml" + "_lf_2.TypeConName\022\034\n\024method_interned_nam" + "e\030\002 \001(\005\022\'\n\016interface_expr\030\003 \001(\0132\017.daml_l" + "f_2.Expr\032Y\n\rViewInterface\022)\n\tinterface\030\001" + " \001(\0132\026.daml_lf_2.TypeConName\022\035\n\004expr\030\002 \001" + "(\0132\017.daml_lf_2.Expr\032^\n\022SignatoryInterfac" + "e\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_2.TypeCon" + "Name\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.Expr\032]\n\021O" + "bserverInterface\022)\n\tinterface\030\001 \001(\0132\026.da" + "ml_lf_2.TypeConName\022\035\n\004expr\030\002 \001(\0132\017.daml" + "_lf_2.Expr\032\310\001\n\023UnsafeFromInterface\022.\n\016in" + "terface_type\030\001 \001(\0132\026.daml_lf_2.TypeConNa" + "me\022-\n\rtemplate_type\030\002 \001(\0132\026.daml_lf_2.Ty" + "peConName\022)\n\020contract_id_expr\030\003 \001(\0132\017.da" + "ml_lf_2.Expr\022\'\n\016interface_expr\030\004 \001(\0132\017.d" + "aml_lf_2.Expr\032\235\001\n\023ToRequiredInterface\0222\n" + "\022required_interface\030\001 \001(\0132\026.daml_lf_2.Ty" + "peConName\0223\n\023requiring_interface\030\002 \001(\0132\026" + ".daml_lf_2.TypeConName\022\035\n\004expr\030\003 \001(\0132\017.d" + "aml_lf_2.Expr\032\237\001\n\025FromRequiredInterface\022" + "2\n\022required_interface\030\001 \001(\0132\026.daml_lf_2." + "TypeConName\0223\n\023requiring_interface\030\002 \001(\013" + "2\026.daml_lf_2.TypeConName\022\035\n\004expr\030\003 \001(\0132\017" + ".daml_lf_2.Expr\032\332\001\n\033UnsafeFromRequiredIn" + "terface\0222\n\022required_interface\030\001 \001(\0132\026.da" + "ml_lf_2.TypeConName\0223\n\023requiring_interfa" + "ce\030\002 \001(\0132\026.daml_lf_2.TypeConName\022)\n\020cont" + "ract_id_expr\030\003 \001(\0132\017.daml_lf_2.Expr\022\'\n\016i" + "nterface_expr\030\004 \001(\0132\017.daml_lf_2.Expr\032d\n\030" + "InterfaceTemplateTypeRep\022)\n\tinterface\030\001 " + "\001(\0132\026.daml_lf_2.TypeConName\022\035\n\004expr\030\002 \001(" + "\0132\017.daml_lf_2.Expr\032\253\001\n\020ChoiceController\022" + "(\n\010template\030\001 \001(\0132\026.daml_lf_2.TypeConNam" + "e\022\033\n\023choice_interned_str\030\002 \001(\005\022&\n\rcontra" + "ct_expr\030\003 \001(\0132\017.daml_lf_2.Expr\022(\n\017choice" + "_arg_expr\030\004 \001(\0132\017.daml_lf_2.Expr\032\251\001\n\016Cho" + "iceObserver\022(\n\010template\030\001 \001(\0132\026.daml_lf_" + "2.TypeConName\022\033\n\023choice_interned_str\030\002 \001" + "(\005\022&\n\rcontract_expr\030\003 \001(\0132\017.daml_lf_2.Ex" + "pr\022(\n\017choice_arg_expr\030\004 \001(\0132\017.daml_lf_2." + "Expr\032;\n\014Experimental\022\014\n\004name\030\001 \001(\t\022\035\n\004ty" + "pe\030\002 \001(\0132\017.daml_lf_2.TypeB\005\n\003Sum\"\265\005\n\007Cas" + "eAlt\022\"\n\007default\030\002 \001(\0132\017.daml_lf_2.UnitH\000" + "\022-\n\007variant\030\003 \001(\0132\032.daml_lf_2.CaseAlt.Va" + "riantH\000\022,\n\013builtin_con\030\004 \001(\0162\025.daml_lf_2" + ".BuiltinConH\000\022\036\n\003nil\030\005 \001(\0132\017.daml_lf_2.U" + "nitH\000\022\'\n\004cons\030\006 \001(\0132\027.daml_lf_2.CaseAlt." + "ConsH\000\022(\n\roptional_none\030\007 \001(\0132\017.daml_lf_" + "2.UnitH\000\0228\n\roptional_some\030\010 \001(\0132\037.daml_l" + "f_2.CaseAlt.OptionalSomeH\000\022\'\n\004enum\030\t \001(\013" + "2\027.daml_lf_2.CaseAlt.EnumH\000\022\035\n\004body\030\001 \001(" + "\0132\017.daml_lf_2.Expr\032i\n\007Variant\022#\n\003con\030\001 \001" + "(\0132\026.daml_lf_2.TypeConName\022\034\n\024variant_in" + "terned_str\030\002 \001(\005\022\033\n\023binder_interned_str\030" + "\003 \001(\005\032M\n\004Enum\022#\n\003con\030\001 \001(\0132\026.daml_lf_2.T" + "ypeConName\022 \n\030constructor_interned_str\030\002" + " \001(\005\032D\n\004Cons\022\035\n\025var_head_interned_str\030\001 " + "\001(\005\022\035\n\025var_tail_interned_str\030\002 \001(\005\032-\n\014Op" + "tionalSome\022\035\n\025var_body_interned_str\030\001 \001(" + "\005B\005\n\003Sum\"H\n\004Case\022\036\n\005scrut\030\001 \001(\0132\017.daml_l" + "f_2.Expr\022 \n\004alts\030\002 \003(\0132\022.daml_lf_2.CaseA" + "lt\"L\n\005Block\022$\n\010bindings\030\001 \003(\0132\022.daml_lf_" + "2.Binding\022\035\n\004body\030\002 \001(\0132\017.daml_lf_2.Expr" + "\"D\n\004Pure\022\035\n\004type\030\001 \001(\0132\017.daml_lf_2.Type\022" + "\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.Expr\"\370\022\n\006Updat" + "e\022\037\n\004pure\030\001 \001(\0132\017.daml_lf_2.PureH\000\022!\n\005bl" + "ock\030\002 \001(\0132\020.daml_lf_2.BlockH\000\022*\n\006create\030" + "\003 \001(\0132\030.daml_lf_2.Update.CreateH\000\022.\n\010exe" + "rcise\030\004 \001(\0132\032.daml_lf_2.Update.ExerciseH" + "\000\022:\n\017exercise_by_key\030\n \001(\0132\037.daml_lf_2.U" + "pdate.ExerciseByKeyH\000\022(\n\005fetch\030\005 \001(\0132\027.d" + "aml_lf_2.Update.FetchH\000\022#\n\010get_time\030\006 \001(" + "\0132\017.daml_lf_2.UnitH\000\0228\n\rlookup_by_key\030\010 " + "\001(\0132\037.daml_lf_2.Update.RetrieveByKeyH\000\0227" + "\n\014fetch_by_key\030\t \001(\0132\037.daml_lf_2.Update." + "RetrieveByKeyH\000\0221\n\nembed_expr\030\007 \001(\0132\033.da" + "ml_lf_2.Update.EmbedExprH\000\022/\n\ttry_catch\030" + "\013 \001(\0132\032.daml_lf_2.Update.TryCatchH\000\022=\n\020c" + "reate_interface\030\014 \001(\0132!.daml_lf_2.Update" + ".CreateInterfaceH\000\022A\n\022exercise_interface" + "\030\r \001(\0132#.daml_lf_2.Update.ExerciseInterf" + "aceH\000\022;\n\017fetch_interface\030\016 \001(\0132 .daml_lf" + "_2.Update.FetchInterfaceH\000\022>\n\020dynamic_ex" + "ercise\030\351\007 \001(\0132!.daml_lf_2.Update.Dynamic" + "ExerciseH\000\0222\n\nsoft_fetch\030\352\007 \001(\0132\033.daml_l" + "f_2.Update.SoftFetchH\000\0228\n\rsoft_exercise\030" + "\353\007 \001(\0132\036.daml_lf_2.Update.SoftExerciseH\000" + "\032Q\n\006Create\022(\n\010template\030\001 \001(\0132\026.daml_lf_2" + ".TypeConName\022\035\n\004expr\030\002 \001(\0132\017.daml_lf_2.E" + "xpr\032[\n\017CreateInterface\022)\n\tinterface\030\001 \001(" + "\0132\026.daml_lf_2.TypeConName\022\035\n\004expr\030\002 \001(\0132" + "\017.daml_lf_2.Expr\032\223\001\n\010Exercise\022(\n\010templat" + "e\030\001 \001(\0132\026.daml_lf_2.TypeConName\022\033\n\023choic" + "e_interned_str\030\006 \001(\005\022\034\n\003cid\030\003 \001(\0132\017.daml" + "_lf_2.Expr\022\034\n\003arg\030\005 \001(\0132\017.daml_lf_2.Expr" + "J\004\010\004\020\005\032\221\001\n\014SoftExercise\022(\n\010template\030\001 \001(" + "\0132\026.daml_lf_2.TypeConName\022\033\n\023choice_inte" + "rned_str\030\002 \001(\005\022\034\n\003cid\030\003 \001(\0132\017.daml_lf_2." + "Expr\022\034\n\003arg\030\004 \001(\0132\017.daml_lf_2.Expr\032\224\001\n\017D" + "ynamicExercise\022(\n\010template\030\001 \001(\0132\026.daml_" + "lf_2.TypeConName\022\033\n\023choice_interned_str\030" + "\002 \001(\005\022\034\n\003cid\030\003 \001(\0132\017.daml_lf_2.Expr\022\034\n\003a" + "rg\030\004 \001(\0132\017.daml_lf_2.Expr\032\267\001\n\021ExerciseIn" + "terface\022)\n\tinterface\030\001 \001(\0132\026.daml_lf_2.T" + "ypeConName\022\033\n\023choice_interned_str\030\002 \001(\005\022" + "\034\n\003cid\030\003 \001(\0132\017.daml_lf_2.Expr\022\034\n\003arg\030\004 \001" + "(\0132\017.daml_lf_2.Expr\022\036\n\005guard\030\005 \001(\0132\017.dam" + "l_lf_2.Expr\032\222\001\n\rExerciseByKey\022(\n\010templat" + "e\030\001 \001(\0132\026.daml_lf_2.TypeConName\022\033\n\023choic" + "e_interned_str\030\002 \001(\005\022\034\n\003key\030\003 \001(\0132\017.daml" + "_lf_2.Expr\022\034\n\003arg\030\004 \001(\0132\017.daml_lf_2.Expr" + "\032O\n\005Fetch\022(\n\010template\030\001 \001(\0132\026.daml_lf_2." + "TypeConName\022\034\n\003cid\030\002 \001(\0132\017.daml_lf_2.Exp" + "r\032S\n\tSoftFetch\022(\n\010template\030\001 \001(\0132\026.daml_" + "lf_2.TypeConName\022\034\n\003cid\030\002 \001(\0132\017.daml_lf_" + "2.Expr\032Y\n\016FetchInterface\022)\n\tinterface\030\001 " + "\001(\0132\026.daml_lf_2.TypeConName\022\034\n\003cid\030\002 \001(\013" + "2\017.daml_lf_2.Expr\032I\n\tEmbedExpr\022\035\n\004type\030\001" + " \001(\0132\017.daml_lf_2.Type\022\035\n\004body\030\002 \001(\0132\017.da" + "ml_lf_2.Expr\032W\n\rRetrieveByKey\022(\n\010templat" + "e\030\001 \001(\0132\026.daml_lf_2.TypeConName\022\034\n\003key\030\002" + " \001(\0132\017.daml_lf_2.Expr\032\222\001\n\010TryCatch\022$\n\013re" + "turn_type\030\001 \001(\0132\017.daml_lf_2.Type\022!\n\010try_" + "expr\030\002 \001(\0132\017.daml_lf_2.Expr\022\030\n\020var_inter" + "ned_str\030\003 \001(\005\022#\n\ncatch_expr\030\004 \001(\0132\017.daml" + "_lf_2.ExprB\005\n\003Sum\"\215\004\n\010Scenario\022\037\n\004pure\030\001" + " \001(\0132\017.daml_lf_2.PureH\000\022!\n\005block\030\002 \001(\0132\020" + ".daml_lf_2.BlockH\000\022,\n\006commit\030\003 \001(\0132\032.dam" + "l_lf_2.Scenario.CommitH\000\0220\n\nmustFailAt\030\004" + " \001(\0132\032.daml_lf_2.Scenario.CommitH\000\022\037\n\004pa" + "ss\030\005 \001(\0132\017.daml_lf_2.ExprH\000\022#\n\010get_time\030" + "\006 \001(\0132\017.daml_lf_2.UnitH\000\022$\n\tget_party\030\007 " + "\001(\0132\017.daml_lf_2.ExprH\000\0223\n\nembed_expr\030\010 \001" + "(\0132\035.daml_lf_2.Scenario.EmbedExprH\000\032j\n\006C" + "ommit\022\036\n\005party\030\001 \001(\0132\017.daml_lf_2.Expr\022\035\n" + "\004expr\030\002 \001(\0132\017.daml_lf_2.Expr\022!\n\010ret_type" + "\030\003 \001(\0132\017.daml_lf_2.Type\032I\n\tEmbedExpr\022\035\n\004" + "type\030\001 \001(\0132\017.daml_lf_2.Type\022\035\n\004body\030\002 \001(" + "\0132\017.daml_lf_2.ExprB\005\n\003Sum\"\350\002\n\016TemplateCh" + "oice\022%\n\010location\030\001 \001(\0132\023.daml_lf_2.Locat" + "ion\022\031\n\021name_interned_str\030\002 \001(\005\022\021\n\tconsum" + "ing\030\003 \001(\010\022$\n\013controllers\030\004 \001(\0132\017.daml_lf" + "_2.Expr\022\"\n\tobservers\030\005 \001(\0132\017.daml_lf_2.E" + "xpr\022*\n\narg_binder\030\006 \001(\0132\026.daml_lf_2.VarW" + "ithType\022!\n\010ret_type\030\010 \001(\0132\017.daml_lf_2.Ty" + "pe\022\037\n\006update\030\t \001(\0132\017.daml_lf_2.Expr\022 \n\030s" + "elf_binder_interned_str\030\n \001(\005\022%\n\013authori" + "zers\030\351\007 \001(\0132\017.daml_lf_2.Expr\"\332\001\n\025Interfa" + "ceInstanceBody\022I\n\007methods\030\001 \003(\01328.daml_l" + "f_2.InterfaceInstanceBody.InterfaceInsta" + "nceMethod\022\035\n\004view\030\002 \001(\0132\017.daml_lf_2.Expr" + "\032W\n\027InterfaceInstanceMethod\022\034\n\024method_in" + "terned_name\030\001 \001(\005\022\036\n\005value\030\002 \001(\0132\017.daml_" + "lf_2.Expr\"\220\005\n\013DefTemplate\022\034\n\024tycon_inter" + "ned_dname\030\001 \001(\005\022\032\n\022param_interned_str\030\002 " + "\001(\005\022 \n\007precond\030\003 \001(\0132\017.daml_lf_2.Expr\022$\n" + "\013signatories\030\004 \001(\0132\017.daml_lf_2.Expr\022\"\n\ta" + "greement\030\005 \001(\0132\017.daml_lf_2.Expr\022*\n\007choic" + "es\030\006 \003(\0132\031.daml_lf_2.TemplateChoice\022\"\n\to" + "bservers\030\007 \001(\0132\017.daml_lf_2.Expr\022%\n\010locat" + "ion\030\010 \001(\0132\023.daml_lf_2.Location\022*\n\003key\030\t " + "\001(\0132\035.daml_lf_2.DefTemplate.DefKey\0225\n\nim" + "plements\030\n \003(\0132!.daml_lf_2.DefTemplate.I" + "mplements\032p\n\006DefKey\022\035\n\004type\030\001 \001(\0132\017.daml" + "_lf_2.Type\022!\n\010key_expr\030\004 \001(\0132\017.daml_lf_2" + ".Expr\022$\n\013maintainers\030\003 \001(\0132\017.daml_lf_2.E" + "xpr\032\216\001\n\nImplements\022)\n\tinterface\030\001 \001(\0132\026." + "daml_lf_2.TypeConName\022.\n\004body\030\002 \001(\0132 .da" + "ml_lf_2.InterfaceInstanceBody\022%\n\010locatio" + "n\030\003 \001(\0132\023.daml_lf_2.Location\"u\n\017Interfac" + "eMethod\022%\n\010location\030\001 \001(\0132\023.daml_lf_2.Lo" + "cation\022\034\n\024method_interned_name\030\002 \001(\005\022\035\n\004" + "type\030\003 \001(\0132\017.daml_lf_2.Type\"\221\002\n\014DefInter" + "face\022%\n\010location\030\001 \001(\0132\023.daml_lf_2.Locat" + "ion\022\034\n\024tycon_interned_dname\030\002 \001(\005\022+\n\007met" + "hods\030\003 \003(\0132\032.daml_lf_2.InterfaceMethod\022\032" + "\n\022param_interned_str\030\004 \001(\005\022*\n\007choices\030\005 " + "\003(\0132\031.daml_lf_2.TemplateChoice\022\035\n\004view\030\006" + " \001(\0132\017.daml_lf_2.Type\022(\n\010requires\030\007 \003(\0132" + "\026.daml_lf_2.TypeConName\"t\n\014DefException\022" + "\033\n\023name_interned_dname\030\001 \001(\005\022%\n\010location" + "\030\002 \001(\0132\023.daml_lf_2.Location\022 \n\007message\030\003" + " \001(\0132\017.daml_lf_2.Expr\"\314\003\n\013DefDataType\022%\n" + "\010location\030\001 \001(\0132\023.daml_lf_2.Location\022\033\n\023" + "name_interned_dname\030\002 \001(\005\022*\n\006params\030\003 \003(" + "\0132\032.daml_lf_2.TypeVarWithKind\022\024\n\014seriali" + "zable\030\004 \001(\010\022/\n\006record\030\005 \001(\0132\035.daml_lf_2." + "DefDataType.FieldsH\000\0220\n\007variant\030\006 \001(\0132\035." + "daml_lf_2.DefDataType.FieldsH\000\0227\n\004enum\030\007" + " \001(\0132\'.daml_lf_2.DefDataType.EnumConstru" + "ctorsH\000\022$\n\tinterface\030\010 \001(\0132\017.daml_lf_2.U" + "nitH\000\0322\n\006Fields\022(\n\006fields\030\001 \003(\0132\030.daml_l" + "f_2.FieldWithType\0325\n\020EnumConstructors\022!\n" + "\031constructors_interned_str\030\002 \003(\005B\n\n\010Data" + "Cons\"\233\001\n\nDefTypeSyn\022%\n\010location\030\001 \001(\0132\023." + "daml_lf_2.Location\022\033\n\023name_interned_dnam" + "e\030\002 \001(\005\022*\n\006params\030\003 \003(\0132\032.daml_lf_2.Type" + "VarWithKind\022\035\n\004type\030\004 \001(\0132\017.daml_lf_2.Ty" + "pe\"\350\001\n\010DefValue\022%\n\010location\030\001 \001(\0132\023.daml" + "_lf_2.Location\0228\n\016name_with_type\030\002 \001(\0132 " + ".daml_lf_2.DefValue.NameWithType\022\035\n\004expr" + "\030\003 \001(\0132\017.daml_lf_2.Expr\022\020\n\007is_test\030\350\007 \001(" + "\010\032J\n\014NameWithType\022\033\n\023name_interned_dname" + "\030\001 \001(\005\022\035\n\004type\030\002 \001(\0132\017.daml_lf_2.Type\"\220\001" + "\n\014FeatureFlags\022\033\n\023forbidPartyLiterals\030\001 " + "\001(\010\022/\n\'dontDivulgeContractIdsInCreateArg" + "uments\030\002 \001(\010\0222\n*dontDiscloseNonConsuming" + "ChoicesToObservers\030\003 \001(\010\"\314\002\n\006Module\022\033\n\023n" + "ame_interned_dname\030\001 \001(\005\022&\n\005flags\030\002 \001(\0132" + "\027.daml_lf_2.FeatureFlags\022\'\n\010synonyms\030\003 \003" + "(\0132\025.daml_lf_2.DefTypeSyn\022*\n\ndata_types\030" + "\004 \003(\0132\026.daml_lf_2.DefDataType\022#\n\006values\030" + "\005 \003(\0132\023.daml_lf_2.DefValue\022)\n\ttemplates\030" + "\006 \003(\0132\026.daml_lf_2.DefTemplate\022+\n\nexcepti" + "ons\030\007 \003(\0132\027.daml_lf_2.DefException\022+\n\nin" + "terfaces\030\010 \003(\0132\027.daml_lf_2.DefInterface\"" + "3\n\022InternedDottedName\022\035\n\025segments_intern" + "ed_str\030\001 \003(\005\"=\n\021UpgradedPackageId\022(\n upg" + "raded_package_id_interned_str\030\001 \001(\005\"\205\001\n\017" + "PackageMetadata\022\031\n\021name_interned_str\030\001 \001" + "(\005\022\034\n\024version_interned_str\030\002 \001(\005\0229\n\023upgr" + "aded_package_id\030\003 \001(\0132\034.daml_lf_2.Upgrad" + "edPackageId\"\334\001\n\007Package\022\"\n\007modules\030\001 \003(\013" + "2\021.daml_lf_2.Module\022\030\n\020interned_strings\030" + "\002 \003(\t\022<\n\025interned_dotted_names\030\003 \003(\0132\035.d" + "aml_lf_2.InternedDottedName\022,\n\010metadata\030" + "\004 \001(\0132\032.daml_lf_2.PackageMetadata\022\'\n\016int" + "erned_types\030\005 \003(\0132\017.daml_lf_2.Type*\237\002\n\013B" + "uiltinType\022\010\n\004UNIT\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020" + "\002\022\010\n\004DATE\020\003\022\r\n\tTIMESTAMP\020\004\022\013\n\007NUMERIC\020\005\022" + "\t\n\005PARTY\020\006\022\010\n\004TEXT\020\007\022\017\n\013CONTRACT_ID\020\010\022\014\n" + "\010OPTIONAL\020\t\022\010\n\004LIST\020\n\022\n\n\006GENMAP\020\013\022\007\n\003ANY" + "\020\r\022\021\n\rANY_EXCEPTION\020\016\022\014\n\010TYPE_REP\020\017\022\t\n\005A", "RROW\020\020\022\n\n\006UPDATE\020\021\022\014\n\007TEXTMAP\020\351\007\022\017\n\nBIGN" + "UMERIC\020\352\007\022\022\n\rROUNDING_MODE\020\353\007\022\r\n\010SCENARI" + "O\020\354\007*7\n\nBuiltinCon\022\014\n\010CON_UNIT\020\000\022\r\n\tCON_" + "FALSE\020\001\022\014\n\010CON_TRUE\020\002*\361\n\n\017BuiltinFunctio" + "n\022\t\n\005TRACE\020\000\022\t\n\005ERROR\020\001\022\t\n\005EQUAL\020\002\022\013\n\007LE" + "SS_EQ\020\003\022\010\n\004LESS\020\004\022\016\n\nGREATER_EQ\020\005\022\013\n\007GRE" + "ATER\020\006\022\r\n\tADD_INT64\020\007\022\r\n\tSUB_INT64\020\010\022\r\n\t" + "MUL_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\017\n\013ADD_NUMERIC\020\r\022\017\n\013SUB" + "_NUMERIC\020\016\022\017\n\013MUL_NUMERIC\020\017\022\017\n\013DIV_NUMER" + "IC\020\020\022\021\n\rROUND_NUMERIC\020\021\022\020\n\014CAST_NUMERIC\020" + "\022\022\021\n\rSHIFT_NUMERIC\020\023\022\024\n\020INT64_TO_NUMERIC" + "\020\024\022\024\n\020NUMERIC_TO_INT64\020\025\022\021\n\rINT64_TO_TEX" + "T\020\026\022\023\n\017NUMERIC_TO_TEXT\020\027\022\025\n\021TIMESTAMP_TO" + "_TEXT\020\031\022\020\n\014DATE_TO_TEXT\020\032\022\021\n\rPARTY_TO_TE" + "XT\020\033\022\021\n\rTEXT_TO_PARTY\020\034\022\021\n\rTEXT_TO_INT64" + "\020\035\022\023\n\017TEXT_TO_NUMERIC\020\036\022\027\n\023CONTRACT_ID_T" + "O_TEXT\020\037\022\017\n\013SHA256_TEXT\020 \022\020\n\014EXPLODE_TEX" + "T\020!\022\017\n\013APPEND_TEXT\020\"\022\020\n\014IMPLODE_TEXT\020#\022\027" + "\n\023CODE_POINTS_TO_TEXT\020$\022\027\n\023TEXT_TO_CODE_" + "POINTS\020%\022\025\n\021DATE_TO_UNIX_DAYS\020&\022\025\n\021UNIX_" + "DAYS_TO_DATE\020\'\022\"\n\036TIMESTAMP_TO_UNIX_MICR" + "OSECONDS\020(\022\"\n\036UNIX_MICROSECONDS_TO_TIMES" + "TAMP\020)\022\026\n\022COERCE_CONTRACT_ID\020*\022\t\n\005FOLDL\020" + "+\022\t\n\005FOLDR\020,\022\016\n\nEQUAL_LIST\020-\022\020\n\014GENMAP_E" + "MPTY\0204\022\021\n\rGENMAP_INSERT\0205\022\021\n\rGENMAP_LOOK" + "UP\0206\022\021\n\rGENMAP_DELETE\0207\022\017\n\013GENMAP_KEYS\0208" + "\022\021\n\rGENMAP_VALUES\0209\022\017\n\013GENMAP_SIZE\020:\022\031\n\025" + "ANY_EXCEPTION_MESSAGE\020;\022\022\n\rTEXTMAP_EMPTY" + "\020\351\007\022\023\n\016TEXTMAP_INSERT\020\352\007\022\023\n\016TEXTMAP_LOOK" + "UP\020\353\007\022\023\n\016TEXTMAP_DELETE\020\354\007\022\024\n\017TEXTMAP_TO" + "_LIST\020\355\007\022\021\n\014TEXTMAP_SIZE\020\356\007\022\025\n\020SCALE_BIG" + "NUMERIC\020\321\017\022\031\n\024PRECISION_BIGNUMERIC\020\322\017\022\023\n" + "\016ADD_BIGNUMERIC\020\323\017\022\023\n\016SUB_BIGNUMERIC\020\324\017\022" + "\023\n\016MUL_BIGNUMERIC\020\325\017\022\023\n\016DIV_BIGNUMERIC\020\326" + "\017\022\033\n\026SHIFT_RIGHT_BIGNUMERIC\020\327\017\022\032\n\025BIGNUM" + "ERIC_TO_NUMERIC\020\330\017\022\032\n\025NUMERIC_TO_BIGNUME" + "RIC\020\331\017\022\027\n\022BIGNUMERIC_TO_TEXT\020\332\017\022\030\n\023TYPE_" + "REP_TYCON_NAME\020\303\027B5\n\024com.daml.daml_lf_de" + "v\252\002\034Com.Daml.Daml_Lf_Dev.DamlLf1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_daml_lf_2_Unit_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_daml_lf_2_Unit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Unit_descriptor, new java.lang.String[] { }); internal_static_daml_lf_2_PackageRef_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_daml_lf_2_PackageRef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_PackageRef_descriptor, new java.lang.String[] { "Self", "PackageIdInternedStr", "Sum", }); internal_static_daml_lf_2_ModuleRef_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_daml_lf_2_ModuleRef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_ModuleRef_descriptor, new java.lang.String[] { "PackageRef", "ModuleNameInternedDname", }); internal_static_daml_lf_2_TypeConName_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_daml_lf_2_TypeConName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_TypeConName_descriptor, new java.lang.String[] { "Module", "NameInternedDname", }); internal_static_daml_lf_2_TypeSynName_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_daml_lf_2_TypeSynName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_TypeSynName_descriptor, new java.lang.String[] { "Module", "NameInternedDname", }); internal_static_daml_lf_2_ValName_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_daml_lf_2_ValName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_ValName_descriptor, new java.lang.String[] { "Module", "NameInternedDname", }); internal_static_daml_lf_2_FieldWithType_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_daml_lf_2_FieldWithType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_FieldWithType_descriptor, new java.lang.String[] { "FieldInternedStr", "Type", }); internal_static_daml_lf_2_VarWithType_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_daml_lf_2_VarWithType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_VarWithType_descriptor, new java.lang.String[] { "VarInternedStr", "Type", }); internal_static_daml_lf_2_TypeVarWithKind_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_daml_lf_2_TypeVarWithKind_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_TypeVarWithKind_descriptor, new java.lang.String[] { "VarInternedStr", "Kind", }); internal_static_daml_lf_2_FieldWithExpr_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_daml_lf_2_FieldWithExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_FieldWithExpr_descriptor, new java.lang.String[] { "FieldInternedStr", "Expr", }); internal_static_daml_lf_2_Binding_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_daml_lf_2_Binding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Binding_descriptor, new java.lang.String[] { "Binder", "Bound", }); internal_static_daml_lf_2_Kind_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_daml_lf_2_Kind_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Kind_descriptor, new java.lang.String[] { "Star", "Arrow", "Nat", "Sum", }); internal_static_daml_lf_2_Kind_Arrow_descriptor = internal_static_daml_lf_2_Kind_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_Kind_Arrow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Kind_Arrow_descriptor, new java.lang.String[] { "Params", "Result", }); internal_static_daml_lf_2_Type_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_daml_lf_2_Type_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_descriptor, new java.lang.String[] { "Var", "Con", "Builtin", "Forall", "Struct", "Nat", "Syn", "Interned", "Sum", }); internal_static_daml_lf_2_Type_Var_descriptor = internal_static_daml_lf_2_Type_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_Type_Var_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_Var_descriptor, new java.lang.String[] { "VarInternedStr", "Args", }); internal_static_daml_lf_2_Type_Con_descriptor = internal_static_daml_lf_2_Type_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_Type_Con_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_Con_descriptor, new java.lang.String[] { "Tycon", "Args", }); internal_static_daml_lf_2_Type_Syn_descriptor = internal_static_daml_lf_2_Type_descriptor.getNestedTypes().get(2); internal_static_daml_lf_2_Type_Syn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_Syn_descriptor, new java.lang.String[] { "Tysyn", "Args", }); internal_static_daml_lf_2_Type_Builtin_descriptor = internal_static_daml_lf_2_Type_descriptor.getNestedTypes().get(3); internal_static_daml_lf_2_Type_Builtin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_Builtin_descriptor, new java.lang.String[] { "Builtin", "Args", }); internal_static_daml_lf_2_Type_Forall_descriptor = internal_static_daml_lf_2_Type_descriptor.getNestedTypes().get(4); internal_static_daml_lf_2_Type_Forall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_Forall_descriptor, new java.lang.String[] { "Vars", "Body", }); internal_static_daml_lf_2_Type_Struct_descriptor = internal_static_daml_lf_2_Type_descriptor.getNestedTypes().get(5); internal_static_daml_lf_2_Type_Struct_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Type_Struct_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_2_BuiltinLit_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_daml_lf_2_BuiltinLit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_BuiltinLit_descriptor, new java.lang.String[] { "Int64", "Timestamp", "NumericInternedStr", "TextInternedStr", "Date", "RoundingMode", "Sum", }); internal_static_daml_lf_2_Location_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_daml_lf_2_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Location_descriptor, new java.lang.String[] { "Module", "Range", }); internal_static_daml_lf_2_Location_Range_descriptor = internal_static_daml_lf_2_Location_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_Location_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Location_Range_descriptor, new java.lang.String[] { "StartLine", "StartCol", "EndLine", "EndCol", }); internal_static_daml_lf_2_Expr_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_daml_lf_2_Expr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_descriptor, new java.lang.String[] { "Location", "VarInternedStr", "Val", "Builtin", "BuiltinCon", "BuiltinLit", "RecCon", "RecProj", "RecUpd", "VariantCon", "EnumCon", "StructCon", "StructProj", "StructUpd", "App", "TyApp", "Abs", "TyAbs", "Case", "Let", "Nil", "Cons", "Update", "OptionalNone", "OptionalSome", "ToAny", "FromAny", "TypeRep", "ToAnyException", "FromAnyException", "Throw", "ToInterface", "FromInterface", "CallInterface", "SignatoryInterface", "ObserverInterface", "ViewInterface", "UnsafeFromInterface", "InterfaceTemplateTypeRep", "ToRequiredInterface", "FromRequiredInterface", "UnsafeFromRequiredInterface", "ChoiceController", "ChoiceObserver", "Scenario", "Experimental", "Sum", }); internal_static_daml_lf_2_Expr_RecCon_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_Expr_RecCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_RecCon_descriptor, new java.lang.String[] { "Tycon", "Fields", }); internal_static_daml_lf_2_Expr_RecProj_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_Expr_RecProj_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_RecProj_descriptor, new java.lang.String[] { "Tycon", "FieldInternedStr", "Record", }); internal_static_daml_lf_2_Expr_RecUpd_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(2); internal_static_daml_lf_2_Expr_RecUpd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_RecUpd_descriptor, new java.lang.String[] { "Tycon", "FieldInternedStr", "Record", "Update", }); internal_static_daml_lf_2_Expr_VariantCon_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(3); internal_static_daml_lf_2_Expr_VariantCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_VariantCon_descriptor, new java.lang.String[] { "Tycon", "VariantConInternedStr", "VariantArg", }); internal_static_daml_lf_2_Expr_EnumCon_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(4); internal_static_daml_lf_2_Expr_EnumCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_EnumCon_descriptor, new java.lang.String[] { "Tycon", "EnumConInternedStr", }); internal_static_daml_lf_2_Expr_StructCon_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(5); internal_static_daml_lf_2_Expr_StructCon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_StructCon_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_2_Expr_StructProj_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(6); internal_static_daml_lf_2_Expr_StructProj_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_StructProj_descriptor, new java.lang.String[] { "FieldInternedStr", "Struct", }); internal_static_daml_lf_2_Expr_StructUpd_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(7); internal_static_daml_lf_2_Expr_StructUpd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_StructUpd_descriptor, new java.lang.String[] { "FieldInternedStr", "Struct", "Update", }); internal_static_daml_lf_2_Expr_App_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(8); internal_static_daml_lf_2_Expr_App_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_App_descriptor, new java.lang.String[] { "Fun", "Args", }); internal_static_daml_lf_2_Expr_TyApp_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(9); internal_static_daml_lf_2_Expr_TyApp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_TyApp_descriptor, new java.lang.String[] { "Expr", "Types", }); internal_static_daml_lf_2_Expr_Abs_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(10); internal_static_daml_lf_2_Expr_Abs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_Abs_descriptor, new java.lang.String[] { "Param", "Body", }); internal_static_daml_lf_2_Expr_TyAbs_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(11); internal_static_daml_lf_2_Expr_TyAbs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_TyAbs_descriptor, new java.lang.String[] { "Param", "Body", }); internal_static_daml_lf_2_Expr_Nil_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(12); internal_static_daml_lf_2_Expr_Nil_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_Nil_descriptor, new java.lang.String[] { "Type", }); internal_static_daml_lf_2_Expr_Cons_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(13); internal_static_daml_lf_2_Expr_Cons_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_Cons_descriptor, new java.lang.String[] { "Type", "Front", "Tail", }); internal_static_daml_lf_2_Expr_OptionalNone_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(14); internal_static_daml_lf_2_Expr_OptionalNone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_OptionalNone_descriptor, new java.lang.String[] { "Type", }); internal_static_daml_lf_2_Expr_OptionalSome_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(15); internal_static_daml_lf_2_Expr_OptionalSome_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_OptionalSome_descriptor, new java.lang.String[] { "Type", "Value", }); internal_static_daml_lf_2_Expr_ToAny_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(16); internal_static_daml_lf_2_Expr_ToAny_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ToAny_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_2_Expr_FromAny_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(17); internal_static_daml_lf_2_Expr_FromAny_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_FromAny_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_2_Expr_ToAnyException_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(18); internal_static_daml_lf_2_Expr_ToAnyException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ToAnyException_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_2_Expr_FromAnyException_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(19); internal_static_daml_lf_2_Expr_FromAnyException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_FromAnyException_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_2_Expr_Throw_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(20); internal_static_daml_lf_2_Expr_Throw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_Throw_descriptor, new java.lang.String[] { "ReturnType", "ExceptionType", "ExceptionExpr", }); internal_static_daml_lf_2_Expr_ToInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(21); internal_static_daml_lf_2_Expr_ToInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ToInterface_descriptor, new java.lang.String[] { "InterfaceType", "TemplateType", "TemplateExpr", }); internal_static_daml_lf_2_Expr_FromInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(22); internal_static_daml_lf_2_Expr_FromInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_FromInterface_descriptor, new java.lang.String[] { "InterfaceType", "TemplateType", "InterfaceExpr", }); internal_static_daml_lf_2_Expr_CallInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(23); internal_static_daml_lf_2_Expr_CallInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_CallInterface_descriptor, new java.lang.String[] { "InterfaceType", "MethodInternedName", "InterfaceExpr", }); internal_static_daml_lf_2_Expr_ViewInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(24); internal_static_daml_lf_2_Expr_ViewInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ViewInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_2_Expr_SignatoryInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(25); internal_static_daml_lf_2_Expr_SignatoryInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_SignatoryInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_2_Expr_ObserverInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(26); internal_static_daml_lf_2_Expr_ObserverInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ObserverInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_2_Expr_UnsafeFromInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(27); internal_static_daml_lf_2_Expr_UnsafeFromInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_UnsafeFromInterface_descriptor, new java.lang.String[] { "InterfaceType", "TemplateType", "ContractIdExpr", "InterfaceExpr", }); internal_static_daml_lf_2_Expr_ToRequiredInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(28); internal_static_daml_lf_2_Expr_ToRequiredInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ToRequiredInterface_descriptor, new java.lang.String[] { "RequiredInterface", "RequiringInterface", "Expr", }); internal_static_daml_lf_2_Expr_FromRequiredInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(29); internal_static_daml_lf_2_Expr_FromRequiredInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_FromRequiredInterface_descriptor, new java.lang.String[] { "RequiredInterface", "RequiringInterface", "Expr", }); internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(30); internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_UnsafeFromRequiredInterface_descriptor, new java.lang.String[] { "RequiredInterface", "RequiringInterface", "ContractIdExpr", "InterfaceExpr", }); internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(31); internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_InterfaceTemplateTypeRep_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_2_Expr_ChoiceController_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(32); internal_static_daml_lf_2_Expr_ChoiceController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ChoiceController_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "ContractExpr", "ChoiceArgExpr", }); internal_static_daml_lf_2_Expr_ChoiceObserver_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(33); internal_static_daml_lf_2_Expr_ChoiceObserver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_ChoiceObserver_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "ContractExpr", "ChoiceArgExpr", }); internal_static_daml_lf_2_Expr_Experimental_descriptor = internal_static_daml_lf_2_Expr_descriptor.getNestedTypes().get(34); internal_static_daml_lf_2_Expr_Experimental_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Expr_Experimental_descriptor, new java.lang.String[] { "Name", "Type", }); internal_static_daml_lf_2_CaseAlt_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_daml_lf_2_CaseAlt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_CaseAlt_descriptor, new java.lang.String[] { "Default", "Variant", "BuiltinCon", "Nil", "Cons", "OptionalNone", "OptionalSome", "Enum", "Body", "Sum", }); internal_static_daml_lf_2_CaseAlt_Variant_descriptor = internal_static_daml_lf_2_CaseAlt_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_CaseAlt_Variant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_CaseAlt_Variant_descriptor, new java.lang.String[] { "Con", "VariantInternedStr", "BinderInternedStr", }); internal_static_daml_lf_2_CaseAlt_Enum_descriptor = internal_static_daml_lf_2_CaseAlt_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_CaseAlt_Enum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_CaseAlt_Enum_descriptor, new java.lang.String[] { "Con", "ConstructorInternedStr", }); internal_static_daml_lf_2_CaseAlt_Cons_descriptor = internal_static_daml_lf_2_CaseAlt_descriptor.getNestedTypes().get(2); internal_static_daml_lf_2_CaseAlt_Cons_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_CaseAlt_Cons_descriptor, new java.lang.String[] { "VarHeadInternedStr", "VarTailInternedStr", }); internal_static_daml_lf_2_CaseAlt_OptionalSome_descriptor = internal_static_daml_lf_2_CaseAlt_descriptor.getNestedTypes().get(3); internal_static_daml_lf_2_CaseAlt_OptionalSome_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_CaseAlt_OptionalSome_descriptor, new java.lang.String[] { "VarBodyInternedStr", }); internal_static_daml_lf_2_Case_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_daml_lf_2_Case_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Case_descriptor, new java.lang.String[] { "Scrut", "Alts", }); internal_static_daml_lf_2_Block_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_daml_lf_2_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Block_descriptor, new java.lang.String[] { "Bindings", "Body", }); internal_static_daml_lf_2_Pure_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_daml_lf_2_Pure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Pure_descriptor, new java.lang.String[] { "Type", "Expr", }); internal_static_daml_lf_2_Update_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_daml_lf_2_Update_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_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_2_Update_Create_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_Update_Create_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_Create_descriptor, new java.lang.String[] { "Template", "Expr", }); internal_static_daml_lf_2_Update_CreateInterface_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_Update_CreateInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_CreateInterface_descriptor, new java.lang.String[] { "Interface", "Expr", }); internal_static_daml_lf_2_Update_Exercise_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(2); internal_static_daml_lf_2_Update_Exercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_Exercise_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "Cid", "Arg", }); internal_static_daml_lf_2_Update_SoftExercise_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(3); internal_static_daml_lf_2_Update_SoftExercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_SoftExercise_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "Cid", "Arg", }); internal_static_daml_lf_2_Update_DynamicExercise_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(4); internal_static_daml_lf_2_Update_DynamicExercise_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_DynamicExercise_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "Cid", "Arg", }); internal_static_daml_lf_2_Update_ExerciseInterface_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(5); internal_static_daml_lf_2_Update_ExerciseInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_ExerciseInterface_descriptor, new java.lang.String[] { "Interface", "ChoiceInternedStr", "Cid", "Arg", "Guard", }); internal_static_daml_lf_2_Update_ExerciseByKey_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(6); internal_static_daml_lf_2_Update_ExerciseByKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_ExerciseByKey_descriptor, new java.lang.String[] { "Template", "ChoiceInternedStr", "Key", "Arg", }); internal_static_daml_lf_2_Update_Fetch_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(7); internal_static_daml_lf_2_Update_Fetch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_Fetch_descriptor, new java.lang.String[] { "Template", "Cid", }); internal_static_daml_lf_2_Update_SoftFetch_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(8); internal_static_daml_lf_2_Update_SoftFetch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_SoftFetch_descriptor, new java.lang.String[] { "Template", "Cid", }); internal_static_daml_lf_2_Update_FetchInterface_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(9); internal_static_daml_lf_2_Update_FetchInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_FetchInterface_descriptor, new java.lang.String[] { "Interface", "Cid", }); internal_static_daml_lf_2_Update_EmbedExpr_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(10); internal_static_daml_lf_2_Update_EmbedExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_EmbedExpr_descriptor, new java.lang.String[] { "Type", "Body", }); internal_static_daml_lf_2_Update_RetrieveByKey_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(11); internal_static_daml_lf_2_Update_RetrieveByKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_RetrieveByKey_descriptor, new java.lang.String[] { "Template", "Key", }); internal_static_daml_lf_2_Update_TryCatch_descriptor = internal_static_daml_lf_2_Update_descriptor.getNestedTypes().get(12); internal_static_daml_lf_2_Update_TryCatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Update_TryCatch_descriptor, new java.lang.String[] { "ReturnType", "TryExpr", "VarInternedStr", "CatchExpr", }); internal_static_daml_lf_2_Scenario_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_daml_lf_2_Scenario_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Scenario_descriptor, new java.lang.String[] { "Pure", "Block", "Commit", "MustFailAt", "Pass", "GetTime", "GetParty", "EmbedExpr", "Sum", }); internal_static_daml_lf_2_Scenario_Commit_descriptor = internal_static_daml_lf_2_Scenario_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_Scenario_Commit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Scenario_Commit_descriptor, new java.lang.String[] { "Party", "Expr", "RetType", }); internal_static_daml_lf_2_Scenario_EmbedExpr_descriptor = internal_static_daml_lf_2_Scenario_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_Scenario_EmbedExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Scenario_EmbedExpr_descriptor, new java.lang.String[] { "Type", "Body", }); internal_static_daml_lf_2_TemplateChoice_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_daml_lf_2_TemplateChoice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_TemplateChoice_descriptor, new java.lang.String[] { "Location", "NameInternedStr", "Consuming", "Controllers", "Observers", "ArgBinder", "RetType", "Update", "SelfBinderInternedStr", "Authorizers", }); internal_static_daml_lf_2_InterfaceInstanceBody_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_daml_lf_2_InterfaceInstanceBody_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_InterfaceInstanceBody_descriptor, new java.lang.String[] { "Methods", "View", }); internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor = internal_static_daml_lf_2_InterfaceInstanceBody_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_InterfaceInstanceBody_InterfaceInstanceMethod_descriptor, new java.lang.String[] { "MethodInternedName", "Value", }); internal_static_daml_lf_2_DefTemplate_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_daml_lf_2_DefTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefTemplate_descriptor, new java.lang.String[] { "TyconInternedDname", "ParamInternedStr", "Precond", "Signatories", "Agreement", "Choices", "Observers", "Location", "Key", "Implements", }); internal_static_daml_lf_2_DefTemplate_DefKey_descriptor = internal_static_daml_lf_2_DefTemplate_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_DefTemplate_DefKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefTemplate_DefKey_descriptor, new java.lang.String[] { "Type", "KeyExpr", "Maintainers", }); internal_static_daml_lf_2_DefTemplate_Implements_descriptor = internal_static_daml_lf_2_DefTemplate_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_DefTemplate_Implements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefTemplate_Implements_descriptor, new java.lang.String[] { "Interface", "Body", "Location", }); internal_static_daml_lf_2_InterfaceMethod_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_daml_lf_2_InterfaceMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_InterfaceMethod_descriptor, new java.lang.String[] { "Location", "MethodInternedName", "Type", }); internal_static_daml_lf_2_DefInterface_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_daml_lf_2_DefInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefInterface_descriptor, new java.lang.String[] { "Location", "TyconInternedDname", "Methods", "ParamInternedStr", "Choices", "View", "Requires", }); internal_static_daml_lf_2_DefException_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_daml_lf_2_DefException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefException_descriptor, new java.lang.String[] { "NameInternedDname", "Location", "Message", }); internal_static_daml_lf_2_DefDataType_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_daml_lf_2_DefDataType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefDataType_descriptor, new java.lang.String[] { "Location", "NameInternedDname", "Params", "Serializable", "Record", "Variant", "Enum", "Interface", "DataCons", }); internal_static_daml_lf_2_DefDataType_Fields_descriptor = internal_static_daml_lf_2_DefDataType_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_DefDataType_Fields_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefDataType_Fields_descriptor, new java.lang.String[] { "Fields", }); internal_static_daml_lf_2_DefDataType_EnumConstructors_descriptor = internal_static_daml_lf_2_DefDataType_descriptor.getNestedTypes().get(1); internal_static_daml_lf_2_DefDataType_EnumConstructors_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefDataType_EnumConstructors_descriptor, new java.lang.String[] { "ConstructorsInternedStr", }); internal_static_daml_lf_2_DefTypeSyn_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_daml_lf_2_DefTypeSyn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefTypeSyn_descriptor, new java.lang.String[] { "Location", "NameInternedDname", "Params", "Type", }); internal_static_daml_lf_2_DefValue_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_daml_lf_2_DefValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefValue_descriptor, new java.lang.String[] { "Location", "NameWithType", "Expr", "IsTest", }); internal_static_daml_lf_2_DefValue_NameWithType_descriptor = internal_static_daml_lf_2_DefValue_descriptor.getNestedTypes().get(0); internal_static_daml_lf_2_DefValue_NameWithType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_DefValue_NameWithType_descriptor, new java.lang.String[] { "NameInternedDname", "Type", }); internal_static_daml_lf_2_FeatureFlags_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_daml_lf_2_FeatureFlags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_FeatureFlags_descriptor, new java.lang.String[] { "ForbidPartyLiterals", "DontDivulgeContractIdsInCreateArguments", "DontDiscloseNonConsumingChoicesToObservers", }); internal_static_daml_lf_2_Module_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_daml_lf_2_Module_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Module_descriptor, new java.lang.String[] { "NameInternedDname", "Flags", "Synonyms", "DataTypes", "Values", "Templates", "Exceptions", "Interfaces", }); internal_static_daml_lf_2_InternedDottedName_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_daml_lf_2_InternedDottedName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_InternedDottedName_descriptor, new java.lang.String[] { "SegmentsInternedStr", }); internal_static_daml_lf_2_UpgradedPackageId_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_daml_lf_2_UpgradedPackageId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_UpgradedPackageId_descriptor, new java.lang.String[] { "UpgradedPackageIdInternedStr", }); internal_static_daml_lf_2_PackageMetadata_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_daml_lf_2_PackageMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_PackageMetadata_descriptor, new java.lang.String[] { "NameInternedStr", "VersionInternedStr", "UpgradedPackageId", }); internal_static_daml_lf_2_Package_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_daml_lf_2_Package_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_daml_lf_2_Package_descriptor, new java.lang.String[] { "Modules", "InternedStrings", "InternedDottedNames", "Metadata", "InternedTypes", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy